diff --git a/src/it/projects/examples/exclude-package-names/invoker.properties b/src/it/projects/examples/exclude-package-names/invoker.properties
new file mode 100644
index 00000000..026438d3
--- /dev/null
+++ b/src/it/projects/examples/exclude-package-names/invoker.properties
@@ -0,0 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# this plugins expects tools.jar, hence Java 8 or before
+invoker.java.version=9-
+invoker.goals=javadoc:javadoc
diff --git a/src/it/projects/examples/exclude-package-names/pom.xml b/src/it/projects/examples/exclude-package-names/pom.xml
new file mode 100644
index 00000000..0648022f
--- /dev/null
+++ b/src/it/projects/examples/exclude-package-names/pom.xml
@@ -0,0 +1,69 @@
+
+
+
+ 4.0.0
+
+ org.apache.maven.plugins.javadoc.example
+ exclude-package-names
+ 1.0.0-SNAPSHOT
+
+
+ UTF-8
+ @maven.compiler.source@
+ @maven.compiler.target@
+
+
+ http://maven.apache.org/plugins/maven-javadoc-plugin/examples/exclude-package-names.html
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ @project.version@
+
+
+ com.mycompany.myapp.package1.*:com.mycompany.myapp.package2:com.mycompany.myapp.package2.*:*.util
+
+
+
+
+
+
diff --git a/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/Include.java b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/Include.java
new file mode 100644
index 00000000..61caf7ca
--- /dev/null
+++ b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/Include.java
@@ -0,0 +1,29 @@
+package com.mycompany.myapp;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * This is an Include
+ *
+ * @since 3.3.0
+ */
+public interface Include
+{
+}
diff --git a/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package1/Include.java b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package1/Include.java
new file mode 100644
index 00000000..ba592a8f
--- /dev/null
+++ b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package1/Include.java
@@ -0,0 +1,29 @@
+package com.mycompany.myapp.package1;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * This is an Include
+ *
+ * @since 3.3.0
+ */
+public interface Include
+{
+}
diff --git a/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package1/subpackage1/Exclude.java b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package1/subpackage1/Exclude.java
new file mode 100644
index 00000000..b12c2526
--- /dev/null
+++ b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package1/subpackage1/Exclude.java
@@ -0,0 +1,29 @@
+package com.mycompany.myapp.package1.subpackage1;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * This is a Exclude.
+ *
+ * @since 3.3.0
+ */
+public interface Exclude
+{
+}
diff --git a/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package1/subpackage2/Exclude.java b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package1/subpackage2/Exclude.java
new file mode 100644
index 00000000..bf8306a2
--- /dev/null
+++ b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package1/subpackage2/Exclude.java
@@ -0,0 +1,29 @@
+package com.mycompany.myapp.package1.subpackage2;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * This is a Exclude.
+ *
+ * @since 3.3.0
+ */
+public interface Exclude
+{
+}
diff --git a/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package1/subpackage3/Exclude.java b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package1/subpackage3/Exclude.java
new file mode 100644
index 00000000..f8d54f83
--- /dev/null
+++ b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package1/subpackage3/Exclude.java
@@ -0,0 +1,29 @@
+package com.mycompany.myapp.package1.subpackage3;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * This is a Exclude.
+ *
+ * @since 3.3.0
+ */
+public interface Exclude
+{
+}
diff --git a/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package1/util/Exclude.java b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package1/util/Exclude.java
new file mode 100644
index 00000000..1e819db9
--- /dev/null
+++ b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package1/util/Exclude.java
@@ -0,0 +1,29 @@
+package com.mycompany.myapp.package1.util;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * This is a Exclude.
+ *
+ * @since 3.3.0
+ */
+public interface Exclude
+{
+}
diff --git a/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package2/Exclude.java b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package2/Exclude.java
new file mode 100644
index 00000000..3e2a4cf9
--- /dev/null
+++ b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package2/Exclude.java
@@ -0,0 +1,29 @@
+package com.mycompany.myapp.package2;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * This is a Exclude.
+ *
+ * @since 3.3.0
+ */
+public interface Exclude
+{
+}
diff --git a/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package2/subpackage4/Exclude.java b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package2/subpackage4/Exclude.java
new file mode 100644
index 00000000..f27631e2
--- /dev/null
+++ b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package2/subpackage4/Exclude.java
@@ -0,0 +1,29 @@
+package com.mycompany.myapp.package2.subpackage4;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * This is a Exclude.
+ *
+ * @since 3.3.0
+ */
+public interface Exclude
+{
+}
diff --git a/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package2/subpackage5/Exclude.java b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package2/subpackage5/Exclude.java
new file mode 100644
index 00000000..23185c2d
--- /dev/null
+++ b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package2/subpackage5/Exclude.java
@@ -0,0 +1,29 @@
+package com.mycompany.myapp.package2.subpackage5;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * This is a Exclude.
+ *
+ * @since 3.3.0
+ */
+public interface Exclude
+{
+}
diff --git a/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package2/util/Exclude.java b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package2/util/Exclude.java
new file mode 100644
index 00000000..7f04d69b
--- /dev/null
+++ b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package2/util/Exclude.java
@@ -0,0 +1,29 @@
+package com.mycompany.myapp.package2.util;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * This is a Exclude.
+ *
+ * @since 3.3.0
+ */
+public interface Exclude
+{
+}
diff --git a/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package3/Include.java b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package3/Include.java
new file mode 100644
index 00000000..d6918b99
--- /dev/null
+++ b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package3/Include.java
@@ -0,0 +1,29 @@
+package com.mycompany.myapp.package3;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * This is an Include
+ *
+ * @since 3.3.0
+ */
+public interface Include
+{
+}
diff --git a/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package3/subpackage6/Include.java b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package3/subpackage6/Include.java
new file mode 100644
index 00000000..2ac5e33e
--- /dev/null
+++ b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package3/subpackage6/Include.java
@@ -0,0 +1,29 @@
+package com.mycompany.myapp.packge3.subpackage6;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * This is an Include
+ *
+ * @since 3.3.0
+ */
+public interface Include
+{
+}
diff --git a/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package3/subpackage6/subsubpackage1/Include.java b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package3/subpackage6/subsubpackage1/Include.java
new file mode 100644
index 00000000..baaf254c
--- /dev/null
+++ b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package3/subpackage6/subsubpackage1/Include.java
@@ -0,0 +1,29 @@
+package com.mycompany.myapp.package3.subpackage6.subsubpackage1;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * This is an Include
+ *
+ * @since 3.3.0
+ */
+public interface Include
+{
+}
diff --git a/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package3/subpackage6/subsubpackage2/Include.java b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package3/subpackage6/subsubpackage2/Include.java
new file mode 100644
index 00000000..cde92204
--- /dev/null
+++ b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package3/subpackage6/subsubpackage2/Include.java
@@ -0,0 +1,29 @@
+package com.mycompany.myapp.package3.subpackage6.subsubpackage2;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * This is an Include
+ *
+ * @since 3.3.0
+ */
+public interface Include
+{
+}
diff --git a/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package3/subpackage7/Include.java b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package3/subpackage7/Include.java
new file mode 100644
index 00000000..fad7e017
--- /dev/null
+++ b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package3/subpackage7/Include.java
@@ -0,0 +1,29 @@
+package com.mycompany.myapp.package3.subpackage7;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * This is an Include
+ *
+ * @since 3.3.0
+ */
+public interface Include
+{
+}
diff --git a/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package3/util/Exclude.java b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package3/util/Exclude.java
new file mode 100644
index 00000000..1fb09d02
--- /dev/null
+++ b/src/it/projects/examples/exclude-package-names/src/main/java/com/mycompany/myapp/package3/util/Exclude.java
@@ -0,0 +1,29 @@
+package com.mycompany.myapp.package3.util;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * This is a Exclude.
+ *
+ * @since 3.3.0
+ */
+public interface Exclude
+{
+}
diff --git a/src/it/projects/examples/exclude-package-names/verify.groovy b/src/it/projects/examples/exclude-package-names/verify.groovy
new file mode 100644
index 00000000..42f0db06
--- /dev/null
+++ b/src/it/projects/examples/exclude-package-names/verify.groovy
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+File packages = new File( basedir, 'target/site/apidocs/packages' )
+
+def expectedPackages = ['com.mycompany.myapp',
+ 'com.mycompany.myapp.package1',
+ 'com.mycompany.myapp.package3',
+ 'com.mycompany.myapp.package3.subpackage6',
+ 'com.mycompany.myapp.package3.subpackage6.subsubpackage1',
+ 'com.mycompany.myapp.package3.subpackage6.subsubpackage2',
+ 'com.mycompany.myapp.package3.subpackage7'] as Set
+
+assert expectedPackages == packages.readLines() as Set
diff --git a/src/main/java/org/apache/maven/plugins/javadoc/JavadocUtil.java b/src/main/java/org/apache/maven/plugins/javadoc/JavadocUtil.java
index 6e5e650a..9404a9b2 100644
--- a/src/main/java/org/apache/maven/plugins/javadoc/JavadocUtil.java
+++ b/src/main/java/org/apache/maven/plugins/javadoc/JavadocUtil.java
@@ -379,7 +379,7 @@ protected static List getIncludedFiles( File sourceDirectory, String[] f
if ( !excluded )
{
- files.add( file );
+ files.add( file.replace( '\\', '/' ) );
}
}
diff --git a/src/site/apt/examples/exclude-package-names.apt.vm b/src/site/apt/examples/exclude-package-names.apt.vm
index 8245e291..8793823e 100644
--- a/src/site/apt/examples/exclude-package-names.apt.vm
+++ b/src/site/apt/examples/exclude-package-names.apt.vm
@@ -57,44 +57,4 @@ com.mycompany.myapp.package3.util
You could have the following configuration:
-+-----+
-
- ...
- (or )
-
-
- org.apache.maven.plugins
- maven-javadoc-plugin
- ${project.version}
-
-
- com.mycompany.myapp.package1.*:com.mycompany.myapp.package2:*.util.*
- ...
-
-
- ...
-
- ...
- (or )
- ...
-
-+-----+
+%{snippet|id=excludePackageNames|file=target/it/examples/exclude-package-names/pom.xml}