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 [5/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-365/src/main/java/foo/Included.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-365/src/main/java/foo/Included.java?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-365/src/main/java/foo/Included.java (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-365/src/main/java/foo/Included.java Sat Nov 4 11:01:38 2017
@@ -0,0 +1,31 @@
+package foo;
+
+/*
+ * 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!
+ */
+public class Included
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "Hello World!" );
+ }
+}
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-365/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-365/verify.bsh?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-365/verify.bsh (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-365/verify.bsh Sat Nov 4 11:01:38 2017
@@ -0,0 +1,39 @@
+
+/*
+ * 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.*;
+
+File includedFile = new File( basedir, "target/site/apidocs/foo/Included.html" );
+File excludedFile = new File( basedir, "target/site/apidocs/foo/Excluded.html" );
+
+if ( !includedFile.exists() )
+{
+ System.err.println( includedFile.getAbsolutePath() + " is missing." );
+ return false;
+}
+
+if ( excludedFile.exists() )
+{
+ System.err.println( excludedFile.getAbsolutePath() + " is not excluded." );
+ return false;
+}
+
+return true;
\ No newline at end of file
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-369/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-369/invoker.properties?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-369/invoker.properties (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-369/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 verify site
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-369/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-369/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-369/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-369/pom.xml Sat Nov 4 11:01:38 2017
@@ -0,0 +1,102 @@
+<?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-369</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>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <version>1.3.1</version>
+ <executions>
+ <execution>
+ <id>default-enforce</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <alwaysPass/>
+ </rules>
+ <fail>true</fail>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ <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>
+ <reportSets>
+ <reportSet>
+ <reports>
+ <report>javadoc-no-fork</report>
+ <report>test-javadoc-no-fork</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+ </plugins>
+ </reporting>
+</project>
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-369/src/main/java/com/mycompany/myapp/App.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-369/src/main/java/com/mycompany/myapp/App.java?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-369/src/main/java/com/mycompany/myapp/App.java (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-369/src/main/java/com/mycompany/myapp/App.java Sat Nov 4 11:01:38 2017
@@ -0,0 +1,31 @@
+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!
+ */
+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-369/src/test/java/com/mycompany/myapp/AppTest.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-369/src/test/java/com/mycompany/myapp/AppTest.java?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-369/src/test/java/com/mycompany/myapp/AppTest.java (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-369/src/test/java/com/mycompany/myapp/AppTest.java Sat Nov 4 11:01:38 2017
@@ -0,0 +1,57 @@
+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.
+ */
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest
+ extends TestCase
+{
+ /**
+ * Create the test case
+ *
+ * @param testName name of the test case
+ */
+ public AppTest( String testName )
+ {
+ super( testName );
+ }
+
+ /**
+ * @return the suite of tests being tested
+ */
+ public static Test suite()
+ {
+ return new TestSuite( AppTest.class );
+ }
+
+ /**
+ * Rigourous Test :-)
+ */
+ public void testApp()
+ {
+ assertTrue( true );
+ }
+}
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-369/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-369/verify.bsh?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-369/verify.bsh (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-369/verify.bsh Sat Nov 4 11:01:38 2017
@@ -0,0 +1,40 @@
+
+/*
+ * 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.*;
+
+File indexFile = new File( basedir, "target/site/apidocs/index.html" );
+
+if ( !indexFile.exists() )
+{
+ System.err.println( indexFile.getAbsolutePath() + " is missing." );
+ return false;
+}
+
+File buildLog = new File( basedir, "build.log" );
+String content = IOUtil.toString( new FileInputStream( buildLog ) );
+String needle = ">>> maven-javadoc-plugin";
+if ( content.contains( needle ) )
+{
+ System.err.println( "build.log contains '" + needle + "'" );
+ return false;
+}
+return true;
\ No newline at end of file
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/invoker.properties?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/invoker.properties (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/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:javadoc
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/pom.xml Sat Nov 4 11:01:38 2017
@@ -0,0 +1,60 @@
+<?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-384</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-compiler-plugin</artifactId>
+ <version>2.3.2</version>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>@project.version@</version>
+ <configuration>
+ <excludePackageNames>
+ *.internal.*,
+ com.foo.bar.impl,
+ </excludePackageNames>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+</project>
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/src/main/java/com/foo/bar/Api.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/src/main/java/com/foo/bar/Api.java?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/src/main/java/com/foo/bar/Api.java (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/src/main/java/com/foo/bar/Api.java Sat Nov 4 11:01:38 2017
@@ -0,0 +1,25 @@
+package com.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.
+ */
+
+/** This is a dummy API for our pretend-API */
+public class Api {
+
+}
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/src/main/java/com/foo/bar/impl/NotApi.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/src/main/java/com/foo/bar/impl/NotApi.java?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/src/main/java/com/foo/bar/impl/NotApi.java (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/src/main/java/com/foo/bar/impl/NotApi.java Sat Nov 4 11:01:38 2017
@@ -0,0 +1,25 @@
+package com.foo.bar.impl;
+
+/*
+ * 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.
+ */
+
+/** Not API */
+public class NotApi {
+
+}
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/src/main/java/com/foo/bar/internal/NotApi.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/src/main/java/com/foo/bar/internal/NotApi.java?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/src/main/java/com/foo/bar/internal/NotApi.java (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/src/main/java/com/foo/bar/internal/NotApi.java Sat Nov 4 11:01:38 2017
@@ -0,0 +1,25 @@
+package com.foo.bar.internal;
+
+/*
+ * 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.
+ */
+
+/** Not API */
+public class NotApi {
+
+}
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/src/main/java/com/foo/bar/internal/other/NotApi.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/src/main/java/com/foo/bar/internal/other/NotApi.java?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/src/main/java/com/foo/bar/internal/other/NotApi.java (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/src/main/java/com/foo/bar/internal/other/NotApi.java Sat Nov 4 11:01:38 2017
@@ -0,0 +1,25 @@
+package com.foo.bar.internal;
+
+/*
+ * 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.
+ */
+
+/** Not API */
+public class NotApi {
+
+}
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/verify.bsh?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/verify.bsh (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-384/verify.bsh Sat Nov 4 11:01:38 2017
@@ -0,0 +1,46 @@
+
+/*
+ * 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.*;
+
+File[] nonExistingJavadocFiles = new File[] {
+ new File( basedir, "target/site/apidocs/com/foo/bar/impl/NotApi.html" ),
+ new File( basedir, "target/site/apidocs/com/foo/bar/internal/NotApi.html" ),
+ new File( basedir, "target/site/apidocs/com/foo/bar/internal/other/NotApi.html" ),
+};
+
+for ( File javadocFile : nonExistingJavadocFiles )
+{
+ if ( javadocFile.exists() )
+ {
+ System.err.println( javadocFile.getAbsolutePath() + " is present." );
+ return false;
+ }
+}
+
+File javadocFile = new File ( basedir, "target/site/apidocs/com/foo/bar/Api.html" );
+if ( !javadocFile.exists() )
+{
+ System.err.println( javadocFile.getAbsolutePath() + " is missing." );
+ return false;
+}
+
+return true;
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-407/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-407/invoker.properties?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-407/invoker.properties (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-407/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:javadoc
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-407/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-407/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-407/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-407/pom.xml Sat Nov 4 11:01:38 2017
@@ -0,0 +1,75 @@
+<?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-407</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-compiler-plugin</artifactId>
+ <version>2.3.2</version>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>@pom.version@</version>
+ <configuration>
+ <quiet>true</quiet>
+ <links>
+ <link>http://tomcat.apache.org/tomcat-6.0-doc/api</link>
+ </links>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.tomcat</groupId>
+ <artifactId>catalina</artifactId>
+ <version>6.0.41</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tomcat</groupId>
+ <artifactId>juli</artifactId>
+ <version>6.0.41</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+</project>
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-407/src/main/java/foo/Bar.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-407/src/main/java/foo/Bar.java?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-407/src/main/java/foo/Bar.java (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-407/src/main/java/foo/Bar.java Sat Nov 4 11:01:38 2017
@@ -0,0 +1,34 @@
+package foo;
+
+/*
+ * 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.IOException;
+
+import org.apache.catalina.authenticator.AuthenticatorBase;
+import org.apache.catalina.util.StringManager;
+import org.apache.juli.logging.Log;
+import org.apache.juli.logging.LogFactory;
+
+public class Bar extends AuthenticatorBase {
+
+ protected final Log logger = LogFactory.getLog(getClass());
+ protected final StringManager sm = StringManager.getManager(getClass().getPackage().getName());
+
+}
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-407/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-407/verify.bsh?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-407/verify.bsh (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-407/verify.bsh Sat Nov 4 11:01:38 2017
@@ -0,0 +1,32 @@
+
+/*
+ * 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.*;
+
+File javadocFile = new File( basedir, "target/site/apidocs/foo/Bar.html" );
+
+if ( !javadocFile.exists() )
+{
+ System.err.println( javadocFile.getAbsolutePath() + " is missing." );
+ return false;
+}
+
+return true;
\ No newline at end of file
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-414/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-414/invoker.properties?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-414/invoker.properties (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-414/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:test-javadoc
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-414/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-414/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-414/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-414/pom.xml Sat Nov 4 11:01:38 2017
@@ -0,0 +1,55 @@
+<?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-414</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>jar</packaging>
+
+ <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>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+</project>
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-414/src/main/java/mjavadoc414/App.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-414/src/main/java/mjavadoc414/App.java?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-414/src/main/java/mjavadoc414/App.java (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-414/src/main/java/mjavadoc414/App.java Sat Nov 4 11:01:38 2017
@@ -0,0 +1,30 @@
+package mjavadoc414;
+
+/*
+ * 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 App
+{
+
+ public void method()
+ {
+ System.out.println( "method() called." );
+ }
+
+}
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-414/src/test/java/mjavadoc414/test/AppTest.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-414/src/test/java/mjavadoc414/test/AppTest.java?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-414/src/test/java/mjavadoc414/test/AppTest.java (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-414/src/test/java/mjavadoc414/test/AppTest.java Sat Nov 4 11:01:38 2017
@@ -0,0 +1,43 @@
+package mjavadoc414.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.
+ */
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+import mjavadoc414.App;
+
+public class AppTest extends TestCase
+{
+
+ public AppTest( String testName )
+ {
+ super( testName );
+ }
+
+ /**
+ * Tests {@link mjavadoc414.App}.
+ */
+ public void testApp()
+ {
+ new App().method();
+ }
+
+}
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-414/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-414/verify.bsh?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-414/verify.bsh (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-414/verify.bsh Sat Nov 4 11:01:38 2017
@@ -0,0 +1,47 @@
+
+/*
+ * 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.*;
+
+File indexFile = new File( basedir, "target/site/testapidocs/mjavadoc414/test/AppTest.html" );
+
+if ( !indexFile.exists() )
+{
+ System.err.println( indexFile.getAbsolutePath() + " is missing." );
+ return false;
+}
+
+File buildLog = new File( basedir, "build.log" );
+String content = IOUtil.toString( new FileInputStream( buildLog ) );
+String importError = "error: cannot find symbol";
+if ( content.contains( importError ) )
+{
+ System.err.println( "build.log contains '" + importError + "'" );
+ return false;
+}
+
+String referenceWarning = "Tag @link: reference not found: mjavadoc414.App";
+if ( content.contains( referenceWarning ) )
+{
+ System.err.println( "build.log contains '" + referenceWarning + "'" );
+ return false;
+}
+return true;
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-437/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-437/invoker.properties?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-437/invoker.properties (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-437/invoker.properties Sat Nov 4 11:01:38 2017
@@ -0,0 +1,19 @@
+# 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-437/module1/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-437/module1/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-437/module1/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-437/module1/pom.xml Sat Nov 4 11:01:38 2017
@@ -0,0 +1,36 @@
+<?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>mjavadoc437</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it</groupId>
+ <artifactId>mjavadoc437-module1</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <name>Test MJAVADOC-437 Module 1</name>
+
+</project>
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-437/module1/src/main/java/com/example/foo/Foo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-437/module1/src/main/java/com/example/foo/Foo.java?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-437/module1/src/main/java/com/example/foo/Foo.java (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-437/module1/src/main/java/com/example/foo/Foo.java Sat Nov 4 11:01:38 2017
@@ -0,0 +1,33 @@
+package com.example.foo;
+
+/*
+ * 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 Foo.
+ */
+public class Foo
+{
+ /**
+ * Frobnicates the foo.
+ */
+ public void frobnicate()
+ {
+ }
+}
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-437/module2/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-437/module2/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-437/module2/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-437/module2/pom.xml Sat Nov 4 11:01:38 2017
@@ -0,0 +1,50 @@
+<?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>mjavadoc437</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it</groupId>
+ <artifactId>mjavadoc437-module2</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <name>Test MJAVADOC-437 Module 2</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.plugins.maven-javadoc-plugin.it</groupId>
+ <artifactId>mjavadoc437-module1</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <!-- This is just some external dependency to trigger the bug -->
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ <version>2.2</version>
+ </dependency>
+ </dependencies>
+
+</project>
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-437/module2/src/main/java/com/example/bar/Bar.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-437/module2/src/main/java/com/example/bar/Bar.java?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-437/module2/src/main/java/com/example/bar/Bar.java (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-437/module2/src/main/java/com/example/bar/Bar.java Sat Nov 4 11:01:38 2017
@@ -0,0 +1,50 @@
+package com.example.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 org.apache.commons.io.ByteOrderMark;
+
+/**
+ * This is a Bar.
+ */
+public class Bar
+{
+ /**
+ * Glibbifies the bar.
+ * <p>
+ * NOTE: The parameter using an external dependency is essential to
+ * make the test fail with maven-javadoc-plugin 2.10.3.
+ * </p>
+ * <p>
+ * If one dependency fails to be resolved (the one on module1), all
+ * dependencies of the current module will be skipped.
+ * </p>
+ * <p>
+ * As a result, in the generated Javadoc, ByteOrderMark will be missing
+ * the package prefix.
+ * </p>
+ *
+ * @param bom byte order mark
+ */
+ public void glibbify(ByteOrderMark bom)
+ {
+ // empty
+ }
+}
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-437/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-437/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-437/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-437/pom.xml Sat Nov 4 11:01:38 2017
@@ -0,0 +1,52 @@
+<?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>mjavadoc437</artifactId>
+ <packaging>pom</packaging>
+ <version>1.0-SNAPSHOT</version>
+ <name>Test MJAVADOC-437</name>
+
+ <modules>
+ <module>module1</module>
+ <module>module2</module>
+ </modules>
+
+ <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>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+</project>
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-437/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-437/verify.bsh?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-437/verify.bsh (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-437/verify.bsh Sat Nov 4 11:01:38 2017
@@ -0,0 +1,69 @@
+
+/*
+ * 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.*;
+
+// In JDK 7, javadoc terminates with exit code 0 even when there are errors.
+// To find an error, we either have to parse the build.log generated by
+// maven-invoker-plugin, or look at the generated HTML files.
+// The latter is approach is more stable, as it does not depend on a given
+// javadoc version or the error message formatting.
+// Our module2 has a dependency on commons-io, and class Bar has a parameter
+// of type org.apache.commons.io.ByteOrderMark. In the generated Javadoc,
+// this parameter type should occur with its fully qualified name.
+// If the package prefix is missing, we know that maven-javadoc-plugin
+// failed to resolve the classpath dependencies.
+
+boolean result = true;
+
+try
+{
+ File javadoc = new File( basedir, "target/site/apidocs/com/example/bar/Bar.html" );
+ if ( !javadoc.exists() )
+ {
+ System.err.println( javadoc + " is missing" );
+ return false;
+ }
+
+ FileReader fr = new FileReader( javadoc );
+ BufferedReader br = new BufferedReader( fr );
+ String line;
+ while ( ( line = br.readLine() ) != null )
+ {
+ if ( line.contains( "org.apache.commons.io" ) )
+ {
+ result = true;
+ break;
+ }
+ }
+ br.close();
+ if ( !result )
+ {
+ System.err.println( "package name org.apache.commons.io not found" );
+ }
+ return result;
+}
+catch ( Exception e )
+{
+ e.printStackTrace();
+ return false;
+}
+
+return result;
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-494_aggregate-repositories/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-494_aggregate-repositories/invoker.properties?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-494_aggregate-repositories/invoker.properties (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-494_aggregate-repositories/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 = javadoc:aggregate
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-494_aggregate-repositories/module1/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-494_aggregate-repositories/module1/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-494_aggregate-repositories/module1/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-494_aggregate-repositories/module1/pom.xml Sat Nov 4 11:01:38 2017
@@ -0,0 +1,46 @@
+<?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/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.maven.plugins.javadoc.it</groupId>
+ <artifactId>mjavadoc494</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>mjavadoc494-module1</artifactId>
+
+ <repositories>
+ <repository>
+ <id>local.private</id>
+ <url>@mrm.3rdparty.url@</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.plugins.javadoc.its</groupId>
+ <artifactId>lib</artifactId>
+ <version>1.0</version>
+ </dependency>
+ </dependencies>
+
+</project>
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-494_aggregate-repositories/module1/src/main/java/com/example/foo/Foo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-494_aggregate-repositories/module1/src/main/java/com/example/foo/Foo.java?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-494_aggregate-repositories/module1/src/main/java/com/example/foo/Foo.java (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-494_aggregate-repositories/module1/src/main/java/com/example/foo/Foo.java Sat Nov 4 11:01:38 2017
@@ -0,0 +1,33 @@
+package com.example.foo;
+
+/*
+ * 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 Foo.
+ */
+public class Foo
+{
+ /**
+ * Frobnicates the foo.
+ */
+ public void frobnicate()
+ {
+ }
+}
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-494_aggregate-repositories/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-494_aggregate-repositories/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-494_aggregate-repositories/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-494_aggregate-repositories/pom.xml Sat Nov 4 11:01:38 2017
@@ -0,0 +1,58 @@
+<?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/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.plugins.javadoc.it</groupId>
+ <artifactId>mjavadoc494</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+
+ <url>https://issues.apache.org/jira/browse/MJAVADOC-494</url>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+
+ <repositories>
+ <repository>
+ <id>local.central</id>
+ <url>@mrm.repository.url@</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>@project.version@</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+ <modules>
+ <module>module1</module>
+ </modules>
+
+</project>
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-498_modulepath/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-498_modulepath/invoker.properties?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-498_modulepath/invoker.properties (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-498_modulepath/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.java.version = 1.9+
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-498_modulepath/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-498_modulepath/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-498_modulepath/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-498_modulepath/pom.xml Sat Nov 4 11:01:38 2017
@@ -0,0 +1,77 @@
+<?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/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.plugins.javadoc.it</groupId>
+ <artifactId>mjavadoc489</artifactId>
+ <version>1.0-SNAPSHOT</version>
+
+ <url>https://issues.apache.org/jira/browse/MJAVADOC-489</url>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-lang3</artifactId>
+ <version>3.6</version>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.12</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.7.0</version>
+ <configuration>
+ <release>9</release>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>@project.version@</version>
+ <executions>
+ <execution>
+ <id></id>
+ <goals>
+ <goal>jar</goal>
+ <goal>test-jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-498_modulepath/src/main/java/com/foo/MyClass.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-498_modulepath/src/main/java/com/foo/MyClass.java?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-498_modulepath/src/main/java/com/foo/MyClass.java (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-498_modulepath/src/main/java/com/foo/MyClass.java Sat Nov 4 11:01:38 2017
@@ -0,0 +1,25 @@
+package com.foo;
+
+/*
+ * 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 MyClass
+{
+
+}
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-498_modulepath/src/main/java/module-info.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-498_modulepath/src/main/java/module-info.java?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-498_modulepath/src/main/java/module-info.java (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-498_modulepath/src/main/java/module-info.java Sat Nov 4 11:01:38 2017
@@ -0,0 +1,22 @@
+/*
+ * 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.
+ */
+
+module M.N {
+ requires org.apache.commons.lang3;
+}
\ No newline at end of file
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-498_modulepath/src/test/java/com/foo/MyTest.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-498_modulepath/src/test/java/com/foo/MyTest.java?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-498_modulepath/src/test/java/com/foo/MyTest.java (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-498_modulepath/src/test/java/com/foo/MyTest.java Sat Nov 4 11:01:38 2017
@@ -0,0 +1,35 @@
+package com.foo;
+
+/*
+ * 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 static org.junit.Assert.assertNotNull;
+import org.junit.Test;
+
+public class MyTest
+{
+ private MyClass myClass = new MyClass();
+
+ @Test
+ public void testClass() throws Exception
+ {
+ assertNotNull( myClass );
+ }
+
+}
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-498_modulepath/verify.groovy
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-498_modulepath/verify.groovy?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-498_modulepath/verify.groovy (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/MJAVADOC-498_modulepath/verify.groovy Sat Nov 4 11:01:38 2017
@@ -0,0 +1,21 @@
+/*
+ * 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.
+ */
+def log = new File( basedir, 'build.log').text
+
+assert log.count( " --module-path" ) == 2
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/additional-dependencies-non-aggregate/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/additional-dependencies-non-aggregate/invoker.properties?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/additional-dependencies-non-aggregate/invoker.properties (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/additional-dependencies-non-aggregate/invoker.properties Sat Nov 4 11:01:38 2017
@@ -0,0 +1,19 @@
+# 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
+invoker.java.version = 1.6+
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/additional-dependencies-non-aggregate/module1/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/additional-dependencies-non-aggregate/module1/pom.xml?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/additional-dependencies-non-aggregate/module1/pom.xml (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/additional-dependencies-non-aggregate/module1/pom.xml Sat Nov 4 11:01:38 2017
@@ -0,0 +1,53 @@
+<?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>additional-dependencies-non-aggregate</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>module1</artifactId>
+ <name>module1</name>
+ <version>1.0-SNAPSHOT</version>
+
+ <dependencies>
+ <dependency>
+ <groupId>net.sf.ehcache</groupId>
+ <artifactId>ehcache-core</artifactId>
+ <version>2.4.2</version>
+ </dependency>
+ <dependency>
+ <groupId>org.dbunit</groupId>
+ <artifactId>dbunit</artifactId>
+ <version>2.2</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.2</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/additional-dependencies-non-aggregate/module1/src/main/java/edu/jhu/library/HelloWorld.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/additional-dependencies-non-aggregate/module1/src/main/java/edu/jhu/library/HelloWorld.java?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/additional-dependencies-non-aggregate/module1/src/main/java/edu/jhu/library/HelloWorld.java (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/additional-dependencies-non-aggregate/module1/src/main/java/edu/jhu/library/HelloWorld.java Sat Nov 4 11:01:38 2017
@@ -0,0 +1,43 @@
+package edu.jhu.library;
+
+/*
+ * 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 net.sf.ehcache.Cache;
+import net.sf.ehcache.CacheManager;
+import net.sf.ehcache.Element;
+import net.sf.ehcache.Status;
+import net.sf.ehcache.store.MemoryStoreEvictionPolicy;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: esm
+ * Date: May 17, 2008
+ * Time: 11:26:25 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class HelloWorld
+{
+ private CacheManager cacheManager = CacheManager.getInstance();
+
+ public String hello( String s )
+ {
+ return s;
+ }
+}
Added: maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/additional-dependencies-non-aggregate/module1/src/test/java/edu/jhu/library/Mjavadoc180Test.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/additional-dependencies-non-aggregate/module1/src/test/java/edu/jhu/library/Mjavadoc180Test.java?rev=1814274&view=auto
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/additional-dependencies-non-aggregate/module1/src/test/java/edu/jhu/library/Mjavadoc180Test.java (added)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/it/projects/additional-dependencies-non-aggregate/module1/src/test/java/edu/jhu/library/Mjavadoc180Test.java Sat Nov 4 11:01:38 2017
@@ -0,0 +1,44 @@
+package edu.jhu.library;
+
+/*
+ * 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 junit.framework.TestCase;
+import org.dbunit.database.IDatabaseConnection;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: esm
+ * Date: May 17, 2008
+ * Time: 11:28:04 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class Mjavadoc180Test
+ extends TestCase
+{
+ /**
+ * This is some test javadoc. This test method has a phony dependency on DB Unit.
+ */
+ public void testMJAVADOC180()
+ {
+ IDatabaseConnection phony = null;
+ final HelloWorld hw = new HelloWorld();
+ assertTrue( "Hello World".equals( hw.hello( "Hello World" ) ) );
+ }
+}