You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2017/11/04 11:01:45 UTC

svn commit: r1814274 [3/8] - in /maven/plugins/trunk/maven-javadoc-plugin: ./ src/it/ src/it/MJAVADOC-110/ src/it/MJAVADOC-126/ src/it/MJAVADOC-137/ src/it/MJAVADOC-172/ src/it/MJAVADOC-180/ src/it/MJAVADOC-181/ src/it/MJAVADOC-194/ src/it/MJAVADOC-250...

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-181/library/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-181/library/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-181/library/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-181/library/pom.xml Sat Nov  4 11:01:38 2017
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it</groupId>
+    <artifactId>parent</artifactId>
+    <version>1.0-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>library</artifactId>
+  <packaging>pom</packaging>
+  <version>1.0-SNAPSHOT</version>
+  <name>Library</name>
+
+  <modules>
+    <module>module-a</module>
+    <module>module-b</module>
+  </modules>
+
+  <reporting>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-javadoc-plugin</artifactId>
+        <version>@pom.version@</version>
+        <configuration>
+          <aggregate>true</aggregate>
+          <groups>
+            <group>
+              <title>First Module</title>
+              <packages>aaa</packages>
+            </group>
+            <group>
+              <title>Second Module</title>
+              <packages>bbb</packages>
+            </group>
+          </groups>
+        </configuration>        
+      </plugin>
+    </plugins>
+  </reporting>
+</project>

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-181/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-181/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-181/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-181/pom.xml Sat Nov  4 11:01:38 2017
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it</groupId>
+  <artifactId>parent</artifactId>
+  <packaging>pom</packaging>
+  <version>1.0-SNAPSHOT</version>
+  <name>Parent</name>
+  <url>http://java.foo.net</url>
+
+  <modules>
+    <module>library</module>
+    <module>application</module>
+  </modules>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <build>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-site-plugin</artifactId>
+          <version>@sitePluginVersion@</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-javadoc-plugin</artifactId>
+          <version>@pom.version@</version>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+  </build>
+
+  <reporting>
+    <excludeDefaults>true</excludeDefaults>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-javadoc-plugin</artifactId>
+        <version>@pom.version@</version>
+        <reportSets>
+          <reportSet>
+            <configuration>
+              <tags>
+                <tag><name>m.foo</name><placement>optm</placement><head>Foo:</head></tag>
+                <tag><name>author</name></tag>
+                <tag><name>version</name></tag>
+                <tag><name>m.bar</name><placement>tcmf</placement><head>Bar:</head></tag>
+                <tag><name>see</name></tag>
+              </tags>
+            </configuration>
+            <reports>
+              <report>javadoc</report>
+            </reports>
+          </reportSet>
+        </reportSets>
+      </plugin>
+    </plugins>
+  </reporting>
+</project>

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-181/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-181/verify.bsh?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-181/verify.bsh (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-181/verify.bsh Sat Nov  4 11:01:38 2017
@@ -0,0 +1,67 @@
+
+/*
+ * 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.
+ */
+
+import java.io.*;
+
+boolean result = true;
+
+try
+{
+    // Generated files checks
+    File apidocs = new File( basedir, "application/target/site/apidocs" );
+    if ( !apidocs.isDirectory() )
+    {
+        System.err.println( apidocs.getAbsolutePath() + " dir is missing or a directory." );
+        return false;
+    }
+    apidocs = new File( basedir, "library/module-a/target/site/apidocs" );
+    if ( !apidocs.isDirectory() )
+    {
+        System.err.println( apidocs.getAbsolutePath() + " dir is missing or a directory." );
+        return false;
+    }
+    apidocs = new File( basedir, "library/module-b/target/site/apidocs" );
+    if ( !apidocs.isDirectory() )
+    {
+        System.err.println( apidocs.getAbsolutePath() + " dir is missing or a directory." );
+        return false;
+    }
+
+    // Not existing files
+    apidocs = new File( basedir, "target/site/apidocs" );
+    if ( apidocs.exists() )
+    {
+        System.err.println( apidocs.getAbsolutePath() + " has been generated." );
+        return false;
+    }
+    apidocs = new File( basedir, "library/target/site/apidocs" );
+    if ( apidocs.exists() )
+    {
+        System.err.println( apidocs.getAbsolutePath() + " has been generated." );
+        return false;
+    }
+}
+catch( RuntimeException e )
+{
+    e.printStackTrace();
+    return false;
+}
+
+return result;

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/invoker.properties?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/invoker.properties (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/invoker.properties Sat Nov  4 11:01:38 2017
@@ -0,0 +1,18 @@
+# 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.
+
+invoker.goals=clean javadoc:aggregate

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/module1/generated-src/main/java/test/GeneratedTest1.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/module1/generated-src/main/java/test/GeneratedTest1.java?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/module1/generated-src/main/java/test/GeneratedTest1.java (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/module1/generated-src/main/java/test/GeneratedTest1.java Sat Nov  4 11:01:38 2017
@@ -0,0 +1,34 @@
+package test;
+
+/*
+ * 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.
+ */
+
+/**
+ */
+public class GeneratedTest1
+{
+	/**
+	 * Default constructor.
+	 */
+	public GeneratedTest1()
+	{
+		super();
+	}
+
+}

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/module1/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/module1/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/module1/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/module1/pom.xml Sat Nov  4 11:01:38 2017
@@ -0,0 +1,42 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!--
+  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.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it</groupId>
+    <artifactId>testProject</artifactId>
+    <version>1.0.0.0-SNAPSHOT</version>
+    <relativePath>../</relativePath>
+  </parent>
+
+  <artifactId>module1</artifactId>
+  <version>1.0.0.0-SNAPSHOT</version>
+  <name>Module 1 of the Javadoc Test Project</name>
+  <packaging>jar</packaging>
+
+  <build>
+    <defaultGoal>install</defaultGoal>
+    <directory>target</directory>
+    <sourceDirectory>src/main/java</sourceDirectory>
+    <outputDirectory>target/classes</outputDirectory>
+    <finalName>${artifactId}-${version}</finalName>
+  </build>
+</project>

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/module1/src/main/java/test/Test1.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/module1/src/main/java/test/Test1.java?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/module1/src/main/java/test/Test1.java (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/module1/src/main/java/test/Test1.java Sat Nov  4 11:01:38 2017
@@ -0,0 +1,34 @@
+package test;
+
+/*
+ * 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.
+ */
+
+/**
+ */
+public class Test1
+{
+	/**
+	 * Default constructor.
+	 */
+	public Test1()
+	{
+		super();
+	}
+
+}

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/module2/generated-src/main/java/test/GeneratedTest2.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/module2/generated-src/main/java/test/GeneratedTest2.java?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/module2/generated-src/main/java/test/GeneratedTest2.java (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/module2/generated-src/main/java/test/GeneratedTest2.java Sat Nov  4 11:01:38 2017
@@ -0,0 +1,34 @@
+package test;
+
+/*
+ * 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.
+ */
+
+/**
+ */
+public class GeneratedTest2
+{
+	/**
+	 * Default constructor.
+	 */
+	public GeneratedTest2()
+	{
+		super();
+	}
+
+}

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/module2/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/module2/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/module2/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/module2/pom.xml Sat Nov  4 11:01:38 2017
@@ -0,0 +1,42 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!--
+  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.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it</groupId>
+    <artifactId>testProject</artifactId>
+    <version>1.0.0.0-SNAPSHOT</version>
+    <relativePath>../</relativePath>
+  </parent>
+
+  <artifactId>module2</artifactId>
+  <version>1.0.0.0-SNAPSHOT</version>
+  <name>Module 2 of the Javadoc Test Project</name>
+  <packaging>jar</packaging>
+
+  <build>
+    <defaultGoal>install</defaultGoal>
+    <directory>target</directory>
+    <sourceDirectory>src/main/java</sourceDirectory>
+    <outputDirectory>target/classes</outputDirectory>
+    <finalName>${artifactId}-${version}</finalName>
+  </build>
+</project>

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/module2/src/main/java/test/Test2.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/module2/src/main/java/test/Test2.java?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/module2/src/main/java/test/Test2.java (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/module2/src/main/java/test/Test2.java Sat Nov  4 11:01:38 2017
@@ -0,0 +1,34 @@
+package test;
+
+/*
+ * 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.
+ */
+
+/**
+ */
+public class Test2
+{
+	/**
+	 * Default constructor.
+	 */
+	public Test2()
+	{
+		super();
+	}
+
+}

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/pom.xml Sat Nov  4 11:01:38 2017
@@ -0,0 +1,93 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!--
+  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.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it</groupId>
+  <artifactId>testProject</artifactId>
+  <version>1.0.0.0-SNAPSHOT</version>
+  <name>Javadoc Test Project</name>
+  <packaging>pom</packaging>
+
+  <modules>
+    <module>module1</module>
+    <module>module2</module>
+  </modules>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <build>
+    <defaultGoal>install</defaultGoal>
+    <directory>target</directory>
+    <sourceDirectory>src/main/java</sourceDirectory>
+    <outputDirectory>target/classes</outputDirectory>
+    <finalName>${artifactId}-${version}</finalName>
+
+    <plugins>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>build-helper-maven-plugin</artifactId>
+        <version>1.0</version>
+        <executions>
+          <execution>
+            <id>add-source</id>
+            <phase>generate-sources</phase>
+            <goals>
+              <goal>add-source</goal>
+            </goals>
+            <configuration>
+              <sources>
+                <source>generated-src/main/java</source>
+              </sources>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-javadoc-plugin</artifactId>
+          <version>@pom.version@</version>
+          <executions>
+            <execution>
+              <id>buildJavadoc</id>
+              <phase>package</phase>
+              <goals>
+                <goal>jar</goal>
+              </goals>
+              <configuration>
+                <additionalJOption>-J-Xmx512m</additionalJOption>
+                <quiet>true</quiet>
+                <aggregate>true</aggregate>
+                <links>
+                  <link>http://java.sun.com/j2se/1.5.0/docs/api</link>
+                </links>
+              </configuration>
+            </execution>
+          </executions>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+  </build>
+</project>

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/verify.bsh?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/verify.bsh (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-194/verify.bsh Sat Nov  4 11:01:38 2017
@@ -0,0 +1,82 @@
+
+/*
+ * 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.
+ */
+
+import java.io.*;
+
+boolean result = true;
+
+try
+{
+    File target = new File( basedir, "target" );
+    if ( !target.exists() || !target.isDirectory() )
+    {
+        System.err.println( "target file is missing or a directory." );
+        return false;
+    }
+
+    File apidocs = new File( basedir, "target/site/apidocs" );
+    if ( !apidocs.exists() || !apidocs.isDirectory() )
+    {
+        System.err.println( "target/site/apidocs file is missing or a directory." );
+        return false;
+    }
+
+    File index = new File( apidocs, "index.html" );
+    if ( !index.exists() || !index.isFile() )
+    {
+        System.err.println( "target/site/apidocs/index.html file is missing or not a file." );
+        return false;
+    }
+
+    File test1 = new File( apidocs, "test/Test1.html" );
+    if ( !test1.exists() || !test1.isFile() )
+    {
+        System.err.println( "target/site/apidocs/test/Test1.html file is missing or not a file." );
+        return false;
+    }
+
+    File test2 = new File( apidocs, "test/Test2.html" );
+    if ( !test2.exists() || !test2.isFile() )
+    {
+        System.err.println( "target/site/apidocs/test/Test2.html file is missing or not a file." );
+        return false;
+    }
+
+    File generatedTest1 = new File( apidocs, "test/GeneratedTest1.html" );
+    if ( !generatedTest1.exists() || !generatedTest1.isFile() )
+    {
+        System.err.println( "target/site/apidocs/test/GeneratedTest1.html file is missing or not a file." );
+        return false;
+    }
+
+    File generatedTest2 = new File( apidocs, "test/GeneratedTest2.html" );
+    if ( !generatedTest2.exists() || !generatedTest2.isFile() )
+    {
+        System.err.println( "target/site/apidocs/test/GeneratedTest2.html file is missing or not a file." );
+        return false;
+    }
+}
+catch( IOException e )
+{
+    e.printStackTrace();
+    result = false;
+}
+
+return result;

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-250/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-250/invoker.properties?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-250/invoker.properties (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-250/invoker.properties Sat Nov  4 11:01:38 2017
@@ -0,0 +1,18 @@
+# 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.
+
+invoker.goals=clean javadoc:fix

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-250/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-250/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-250/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-250/pom.xml Sat Nov  4 11:01:38 2017
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  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.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it</groupId>
+  <artifactId>mjavadoc-250</artifactId>
+  <version>1.0-SNAPSHOT</version>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <build>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-javadoc-plugin</artifactId>
+          <version>@pom.version@</version>
+          <configuration>
+            <force>true</force>
+          </configuration>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+  </build>
+
+</project>

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-250/src/main/java/foo/bar/ALotOfLinkTags.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-250/src/main/java/foo/bar/ALotOfLinkTags.java?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-250/src/main/java/foo/bar/ALotOfLinkTags.java (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-250/src/main/java/foo/bar/ALotOfLinkTags.java Sat Nov  4 11:01:38 2017
@@ -0,0 +1,96 @@
+package foo.bar;
+
+/*
+ * 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.
+ */
+
+import java.util.HashSet;
+import java.util.*;
+
+/**
+ * Test linktag parsing in javaDoc of class
+ * <ul>
+ *   <li>{@link Double} should be resolved by the system classloader</li>
+ *   <li>{@link     Float        } should be resolved, despite all the spaces</li>
+ *   <li>{@link HashSet#hashCode()} should be resolved by the explicit import</li>
+ *   <li>{@link    Hashtable#clear()    } should be resolved by the implicit import</li>
+ *   <li>{@link UNKNOWN} should stay they same as it can't be resolved</li>
+ *   <li>{@link ANestedClass} should be resolved as it is a nested class</li>
+ * </ul>
+ */
+public class ALotOfLinkTags
+{
+
+    /**
+     * Test linktag parsing in javaDoc of field
+     * <ul>
+     *   <li>{@link Double} should be resolved by the system classloader</li>
+     *   <li>{@link     Float        } should be resolved, despite all the spaces</li>
+     *   <li>{@link HashSet#hashCode()} should be resolved by the explicit import</li>
+     *   <li>{@link    Hashtable#clear()    } should be resolved by the implicit import</li>
+     *   <li>{@link UNKNOWN} should stay they same as it can't be resolved</li>
+     *   <li>{@link ANestedClass} should be resolved as it is a nested class</li>
+     * </ul>
+     */
+    public Object aField;
+
+    /**
+     * Test linktag parsing in javaDoc of constructor
+     * <ul>
+     *   <li>{@link Double} should be resolved by the system classloader</li>
+     *   <li>{@link     Float        } should be resolved, despite all the spaces</li>
+     *   <li>{@link HashSet#hashCode()} should be resolved by the explicit import</li>
+     *   <li>{@link    Hashtable#clear()    } should be resolved by the implicit import</li>
+     *   <li>{@link UNKNOWN} should stay they same as it can't be resolved</li>
+     *   <li>{@link ANestedClass} should be resolved as it is a nested class</li>
+     * </ul>
+     */
+    public ALotOfLinkTags()
+    {
+    }
+
+    /**
+     * Test linktag parsing in javaDoc of method
+     * <ul>
+     *   <li>{@link Double} should be resolved by the system classloader</li>
+     *   <li>{@link     Float        } should be resolved, despite all the spaces</li>
+     *   <li>{@link HashSet#hashCode()} should be resolved by the explicit import</li>
+     *   <li>{@link    Hashtable#clear()    } should be resolved by the implicit import</li>
+     *   <li>{@link UNKNOWN} should stay they same as it can't be resolved</li>
+     *   <li>{@link ANestedClass} should be resolved as it is a nested class</li>
+     * </ul>
+     */
+    public void aMethod( String[] args )
+    {
+    }
+    
+    /**
+     * Test linktag parsing in javaDoc of nested class
+     * <ul>
+     *   <li>{@link Double} should be resolved by the system classloader</li>
+     *   <li>{@link     Float        } should be resolved, despite all the spaces</li>
+     *   <li>{@link HashSet#hashCode()} should be resolved by the explicit import</li>
+     *   <li>{@link    Hashtable#clear()    } should be resolved by the implicit import</li>
+     *   <li>{@link UNKNOWN} should stay they same as it can't be resolved</li>
+     *   <li>{@link ANestedClass} should be resolved as it is a nested class</li>
+     * </ul>
+     */
+    public class ANestedClass {
+        
+    }
+}

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-250/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-250/verify.bsh?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-250/verify.bsh (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-250/verify.bsh Sat Nov  4 11:01:38 2017
@@ -0,0 +1,86 @@
+/*
+ * 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.
+ */
+
+import java.io.*;
+import org.codehaus.plexus.util.*;
+
+try
+{
+    File javaFile = new File( basedir, "/src/main/java/foo/bar/ALotOfLinkTags.java" );
+    String content = FileUtils.fileRead( javaFile, "UTF-8" );
+    
+    // @link replacement cover classes, methods and constructors
+    // it doesn't cover fields and nested classes (yet), neither package or parameters. 
+    
+    int matches = StringUtils.countMatches( content, "{@link java.lang.Double}" );
+    if ( matches != 3 )
+    {
+    	System.err.println( "Expected {@link java.lang.Double} 3 times, but was " + matches );
+    	return false;
+    }
+    matches = StringUtils.countMatches( content, "{@link Double}" );
+    if ( matches != 2 )
+    {
+    	System.err.println( "Expected {@link Double} 2 times, but was " + matches );
+    	return false;
+    }
+
+    int matches = StringUtils.countMatches( content, "{@link java.lang.Float}" );
+    if ( matches != 3 )
+    {
+    	System.err.println( "Expected {@link java.lang.Float} 3 times, but was " + matches );
+    	return false;
+    }
+
+	matches = StringUtils.countMatches( content, "{@link java.util.HashSet#hashCode()}" ); 
+    if ( matches  != 3 )
+    {
+    	System.err.println( "Expected {@link java.util.HashSet#hashCode()} 3 times, but was " + matches );
+    	return false;
+    }
+
+	matches = StringUtils.countMatches( content, "{@link java.util.Hashtable#clear()}" ); 
+    if ( matches  != 3 )
+    {
+    	System.err.println( "Expected {@link java.util.Hashtable#clear()} 3 times, but was " + matches );
+    	return false;
+    }
+
+	matches = StringUtils.countMatches( content, "{@link foo.bar.ALotOfLinkTags.ANestedClass}" ); 
+    if ( matches  != 3 )
+    {
+    	System.err.println( "Expected {@link foo.bar.ALotOfLinkTags.ANestedClass} 3 times, but was " + matches );
+    	return false;
+    }
+
+	matches = StringUtils.countMatches( content, "{@link UNKNOWN}" ); 
+    if ( matches  != 5 )
+    {
+    	System.err.println( "Expected {@link UNKOWN} 5 times, but was " + matches );
+    	return false;
+    }
+    
+}
+catch( Throwable e )
+{
+    e.printStackTrace();
+    return false;
+}
+
+return true;

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/invoker.properties?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/invoker.properties (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/invoker.properties Sat Nov  4 11:01:38 2017
@@ -0,0 +1,18 @@
+# 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.
+
+invoker.goals=clean site

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/ear/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/ear/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/ear/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/ear/pom.xml Sat Nov  4 11:01:38 2017
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  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.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it.root</groupId>
+    <artifactId>project</artifactId>
+    <version>1.0-SNAPSHOT</version>
+  </parent>
+
+  <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it.root.project</groupId>
+  <artifactId>ear</artifactId>
+  <packaging>ear</packaging>
+
+  <name>ear assembly</name>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it.root.project</groupId>
+      <artifactId>ejbs</artifactId>
+      <type>ejb</type>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it.root.project.servlets</groupId>
+      <artifactId>servlet</artifactId>
+      <type>war</type>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it.root.project</groupId>
+      <artifactId>primary-source</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it.root.project.projects</groupId>
+      <artifactId>logging</artifactId>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-ear-plugin</artifactId>
+        <configuration>
+          <archive>
+            <manifest>
+              <addClasspath>true</addClasspath>
+            </manifest>
+          </archive>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/ejbs/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/ejbs/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/ejbs/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/ejbs/pom.xml Sat Nov  4 11:01:38 2017
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  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.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it.root</groupId>
+    <artifactId>project</artifactId>
+    <version>1.0-SNAPSHOT</version>
+  </parent>
+
+  <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it.root.project</groupId>
+  <artifactId>ejbs</artifactId>
+  <packaging>ejb</packaging>
+
+  <name>enterprise java beans</name>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it.root.project</groupId>
+      <artifactId>primary-source</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it.root.project.projects</groupId>
+      <artifactId>logging</artifactId>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-ejb-plugin</artifactId>
+        <configuration>
+          <archive>
+            <manifest>
+              <addClasspath>true</addClasspath>
+            </manifest>
+          </archive>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/ejbs/src/main/resources/META-INF/ejb-jar.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/ejbs/src/main/resources/META-INF/ejb-jar.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/ejbs/src/main/resources/META-INF/ejb-jar.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/ejbs/src/main/resources/META-INF/ejb-jar.xml Sat Nov  4 11:01:38 2017
@@ -0,0 +1,19 @@
+<?xml version='1.0'?>
+<!--
+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.
+-->

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/pom.xml Sat Nov  4 11:01:38 2017
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  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.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it</groupId>
+    <artifactId>myparent</artifactId>
+    <version>1.0-SNAPSHOT</version>
+    <relativePath>../pom.xml</relativePath>
+  </parent>
+
+  <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it.root</groupId>
+  <artifactId>project</artifactId>
+  <packaging>pom</packaging>
+
+  <name>project</name>
+
+  <modules>
+    <module>projects</module>
+    <!--
+    <module>primary-source</module>
+    <module>servlets</module>
+    <module>ejbs</module>
+    <module>ear</module>
+    -->
+  </modules>
+
+  <dependencyManagement>
+    <dependencies>
+      <dependency>
+        <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it.root.project.projects</groupId>
+        <artifactId>logging</artifactId>
+        <version>${project.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it.root.project</groupId>
+        <artifactId>primary-source</artifactId>
+        <version>${project.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it.root.project.servlets</groupId>
+        <artifactId>servlet</artifactId>
+        <version>${project.version}</version>
+        <type>war</type>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it.root.project</groupId>
+        <artifactId>ejbs</artifactId>
+        <version>${project.version}</version>
+        <type>ejb</type>
+      </dependency>
+    </dependencies>
+  </dependencyManagement>
+</project>

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/primary-source/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/primary-source/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/primary-source/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/primary-source/pom.xml Sat Nov  4 11:01:38 2017
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  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.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it.root</groupId>
+    <artifactId>project</artifactId>
+    <version>1.0-SNAPSHOT</version>
+  </parent>
+
+  <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it.root.project</groupId>
+  <artifactId>primary-source</artifactId>
+  <packaging>jar</packaging>
+  <name>core project classes</name>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it.root.project.projects</groupId>
+      <artifactId>logging</artifactId>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <encoding>iso-8859-1</encoding>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-javadoc-plugin</artifactId>
+        <configuration>
+          <minmemory>128m</minmemory>
+          <maxmemory>512m</maxmemory>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/projects/logging/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/projects/logging/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/projects/logging/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/projects/logging/pom.xml Sat Nov  4 11:01:38 2017
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  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.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it.root.project</groupId>
+    <artifactId>projects</artifactId>
+    <version>1.0-SNAPSHOT</version>
+  </parent>
+
+  <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it.root.project.projects</groupId>
+  <artifactId>logging</artifactId>
+  <packaging>jar</packaging>
+  <name>logging</name>
+</project>

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/projects/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/projects/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/projects/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/projects/pom.xml Sat Nov  4 11:01:38 2017
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  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.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it.root</groupId>
+    <artifactId>project</artifactId>
+    <version>1.0-SNAPSHOT</version>
+  </parent>
+
+  <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it.root.project</groupId>
+  <artifactId>projects</artifactId>
+  <packaging>pom</packaging>
+
+  <name>sub projects</name>
+
+  <modules>
+    <module>logging</module>
+  </modules>
+</project>

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/servlets/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/servlets/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/servlets/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/servlets/pom.xml Sat Nov  4 11:01:38 2017
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  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.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it.root</groupId>
+    <artifactId>project</artifactId>
+    <version>1.0-SNAPSHOT</version>
+  </parent>
+
+  <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it.root.project</groupId>
+  <artifactId>servlets</artifactId>
+  <packaging>pom</packaging>
+  <name>servlets</name>
+
+  <modules>
+    <module>servlet</module>
+  </modules>
+</project>

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/servlets/servlet/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/servlets/servlet/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/servlets/servlet/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/servlets/servlet/pom.xml Sat Nov  4 11:01:38 2017
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  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.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it.root.project</groupId>
+    <artifactId>servlets</artifactId>
+    <version>1.0-SNAPSHOT</version>
+  </parent>
+
+  <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it.root.project.servlets</groupId>
+  <artifactId>servlet</artifactId>
+  <packaging>war</packaging>
+  <name>servlet</name>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it.root.project</groupId>
+      <artifactId>primary-source</artifactId>
+      <scope>provided</scope>
+    </dependency>
+  </dependencies>
+</project>

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/servlets/servlet/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/servlets/servlet/src/main/webapp/WEB-INF/web.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/servlets/servlet/src/main/webapp/WEB-INF/web.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/servlets/servlet/src/main/webapp/WEB-INF/web.xml Sat Nov  4 11:01:38 2017
@@ -0,0 +1,19 @@
+<?xml version='1.0'?>
+<!--
+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.
+-->

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/servlets/servlet/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/servlets/servlet/src/main/webapp/index.jsp?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/servlets/servlet/src/main/webapp/index.jsp (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/myj2ee/servlets/servlet/src/main/webapp/index.jsp Sat Nov  4 11:01:38 2017
@@ -0,0 +1,24 @@
+<!--
+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.
+-->
+
+<html>
+<body>
+<h2>Hello World!</h2>
+</body>
+</html>

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/mymojo/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/mymojo/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/mymojo/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/mymojo/pom.xml Sat Nov  4 11:01:38 2017
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  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.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it</groupId>
+    <artifactId>myparent</artifactId>
+    <version>1.0-SNAPSHOT</version>
+    <relativePath>../pom.xml</relativePath>
+  </parent>
+
+  <groupId>com.mycompany.mymojo</groupId>
+  <artifactId>mymojo</artifactId>
+  <packaging>maven-plugin</packaging>
+  <version>1.0-SNAPSHOT</version>
+
+  <name>mymojo Maven Mojo</name>
+  <url>http://maven.apache.org</url>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-plugin-api</artifactId>
+      <version>2.0</version>
+    </dependency>
+  </dependencies>
+</project>

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/mymojo/src/main/java/com/mycompany/mymojo/MyMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/mymojo/src/main/java/com/mycompany/mymojo/MyMojo.java?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/mymojo/src/main/java/com/mycompany/mymojo/MyMojo.java (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/mymojo/src/main/java/com/mycompany/mymojo/MyMojo.java Sat Nov  4 11:01:38 2017
@@ -0,0 +1,84 @@
+package com.mycompany.mymojo;
+
+/*
+ * 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.
+ */
+
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+
+import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
+
+/**
+ * Goal which touches a timestamp file.
+ *
+ * @goal touch
+ *
+ * @phase process-sources
+ */
+public class MyMojo
+    extends AbstractMojo
+{
+    /**
+     * Location of the file.
+     * @parameter expression="${project.build.directory}"
+     * @required
+     */
+    private File outputDirectory;
+
+    public void execute()
+        throws MojoExecutionException
+    {
+        File f = outputDirectory;
+
+        if ( !f.exists() )
+        {
+            f.mkdirs();
+        }
+
+        File touch = new File( f, "touch.txt" );
+
+        FileWriter w = null;
+        try
+        {
+            w = new FileWriter( touch );
+
+            w.write( "touch.txt" );
+        }
+        catch ( IOException e )
+        {
+            throw new MojoExecutionException( "Error creating file " + touch, e );
+        }
+        finally
+        {
+            if ( w != null )
+            {
+                try
+                {
+                    w.close();
+                }
+                catch ( IOException e )
+                {
+                    // ignore
+                }
+            }
+        }
+    }
+}

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/pom.xml Sat Nov  4 11:01:38 2017
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  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.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it</groupId>
+  <artifactId>myparent</artifactId>
+  <packaging>pom</packaging>
+  <version>1.0-SNAPSHOT</version>
+  <name>Test MJAVADOC-257</name>
+
+  <modules>
+    <module>myj2ee</module>
+    <module>mymojo</module>
+  </modules>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.2</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-plugin-plugin</artifactId>
+          <version>2.5</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-javadoc-plugin</artifactId>
+          <version>@pom.version@</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-site-plugin</artifactId>
+          <version>@sitePluginVersion@</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-project-info-reports-plugin</artifactId>
+          <version>@projectInfoReportsPluginVersion@</version>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+  </build>
+
+  <reporting>
+    <excludeDefaults>true</excludeDefaults>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-javadoc-plugin</artifactId>
+        <version>@pom.version@</version>
+        <configuration>
+          <tagletArtifacts>
+            <tagletArtifact>
+              <groupId>org.apache.maven.plugin-tools</groupId>
+              <artifactId>maven-plugin-tools-javadoc</artifactId>
+              <version>3.3</version>
+            </tagletArtifact>
+          </tagletArtifacts>
+        </configuration>
+        <reportSets>
+          <reportSet>
+            <id>aggregate</id>
+            <configuration>
+              <links>
+                <link>http://java.sun.com/j2se/1.5.0/docs/api</link>
+              </links>
+            </configuration>
+            <reports>
+              <report>aggregate</report>
+              <report>test-aggregate</report>
+            </reports>
+          </reportSet>
+        </reportSets>
+      </plugin>
+    </plugins>
+  </reporting>
+</project>

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/verify.bsh?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/verify.bsh (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-257/verify.bsh Sat Nov  4 11:01:38 2017
@@ -0,0 +1,41 @@
+
+/*
+ * 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.
+ */
+
+import java.io.*;
+
+boolean result = true;
+
+try
+{
+    // Generated files checks
+    File apidocs = new File( basedir, "target/site/apidocs" );
+    if ( !apidocs.exists() || !apidocs.isDirectory() )
+    {
+        System.err.println( apidocs.getAbsolutePath() + " dir is missing or a directory." );
+        return false;
+    }
+}
+catch( RuntimeException e )
+{
+    e.printStackTrace();
+    return false;
+}
+
+return result;

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/invoker.properties?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/invoker.properties (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/invoker.properties Sat Nov  4 11:01:38 2017
@@ -0,0 +1,18 @@
+# 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.
+
+invoker.goals=clean site

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/pom.xml Sat Nov  4 11:01:38 2017
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  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.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it</groupId>
+  <artifactId>myapp</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  <packaging>jar</packaging>
+
+  <name>myapp</name>
+  <url>http://maven.apache.org</url>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-javadoc-plugin</artifactId>
+          <version>@pom.version@</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-site-plugin</artifactId>
+          <version>@sitePluginVersion@</version>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+  </build>
+
+  <reporting>
+    <excludeDefaults>true</excludeDefaults>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-javadoc-plugin</artifactId>
+        <version>@pom.version@</version>
+        <configuration>
+          <stylesheetfile>${basedir}/src/main/javadoc/stylesheet.css</stylesheetfile>
+          <docfilessubdirs>true</docfilessubdirs>
+          <noqualifier>all</noqualifier>
+        </configuration>
+      </plugin>
+    </plugins>
+  </reporting>
+</project>

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/src/main/java/com/mycompany/myapp/App.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/src/main/java/com/mycompany/myapp/App.java?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/src/main/java/com/mycompany/myapp/App.java (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/src/main/java/com/mycompany/myapp/App.java Sat Nov  4 11:01:38 2017
@@ -0,0 +1,33 @@
+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.
+ */
+
+/**
+ * Hello world!
+ *
+ * <img src="doc-files/maven-feather.png" alt="Maven">
+ */
+public class App
+{
+    public static void main( String[] args )
+    {
+        System.out.println( "Hello World!" );
+    }
+}

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/src/main/javadoc/com/mycompany/myapp/doc-files/maven-feather.png
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/src/main/javadoc/com/mycompany/myapp/doc-files/maven-feather.png?rev=1814274&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/src/main/javadoc/com/mycompany/myapp/doc-files/maven-feather.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/src/main/javadoc/com/mycompany/myapp/resources/maven-feather.png
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/src/main/javadoc/com/mycompany/myapp/resources/maven-feather.png?rev=1814274&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/src/main/javadoc/com/mycompany/myapp/resources/maven-feather.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/src/main/javadoc/resources/bg.jpg
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/src/main/javadoc/resources/bg.jpg?rev=1814274&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/src/main/javadoc/resources/bg.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/src/main/javadoc/resources/bg.psd
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/src/main/javadoc/resources/bg.psd?rev=1814274&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/src/main/javadoc/resources/bg.psd
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/src/main/javadoc/resources/inherit.gif
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/src/main/javadoc/resources/inherit.gif?rev=1814274&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/src/main/javadoc/resources/inherit.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/src/main/javadoc/resources/inherit.psd
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-259/src/main/javadoc/resources/inherit.psd?rev=1814274&view=auto
==============================================================================
Binary file - no diff available.