Karl-Heinz Marbaise created MJAVADOC-405:
--------------------------------------------

             Summary: Running Tests if offline
                 Key: MJAVADOC-405
                 URL: https://jira.codehaus.org/browse/MJAVADOC-405
             Project: Maven Javadoc Plugin
          Issue Type: Improvement
    Affects Versions: 2.10
            Reporter: Karl-Heinz Marbaise


If i ran the full test via mvn -Prun-its clean verify i will get the following 
errors 

The does happen if i have no internet connection....I have locally configured a 
Nexus repository Manager. But it looks like some tests are downloading 
artifacts directly from central (http://repo.maven.apache.org/maven2)  instead 
via the configured nexus repository...

{code}
1 warning
[WARNING] Javadoc Warnings
[WARNING] javadoc: warning - Multiple sources of package comments found for 
package "resources.test"
[INFO] Fixed Javadoc frame injection vulnerability (CVE-2013-1571) in 1 files.
[INFO] Fixed Javadoc frame injection vulnerability (CVE-2013-1571) in 1 files.
[INFO] Fixed Javadoc frame injection vulnerability (CVE-2013-1571) in 1 files.
[INFO] Fixed Javadoc frame injection vulnerability (CVE-2013-1571) in 1 files.
[INFO]
1 warning
[WARNING] Javadoc Warnings
[WARNING] warning: [options] bootstrap class path not set in conjunction with 
-source 1.6
[INFO] Fixed Javadoc frame injection vulnerability (CVE-2013-1571) in 1 files.
[INFO] Fixed Javadoc frame injection vulnerability (CVE-2013-1571) in 1 files.
[INFO] Fixed Javadoc frame injection vulnerability (CVE-2013-1571) in 1 files.
[INFO] Fixed Javadoc frame injection vulnerability (CVE-2013-1571) in 1 files.
[WARNING] Source files encoding has not been set, using platform encoding 
UTF-8, i.e. build is platform dependent!
[WARNING] Source files encoding has not been set, using platform encoding 
UTF-8, i.e. build is platform dependent!
[WARNING] Unsupported option <locale/> with variant 'fr_CA_wrong', trying to 
use <locale/> without variant, i.e. 'fr_CA'
[WARNING] Source files encoding has not been set, using platform encoding 
UTF-8, i.e. build is platform dependent!
[INFO] Fixed Javadoc frame injection vulnerability (CVE-2013-1571) in 1 files.
[WARNING] Unable to get resource 
'org.apache.maven.plugin-tools:maven-plugin-tools-javadoc:pom:2.4.2' from 
repository central (http://repo.maven.apache.org/maven2): Error transferring 
file: repo.maven.apache.org
[WARNING] Unable to get resource 
'org.apache.maven.plugin-tools:maven-plugin-tools-javadoc:pom:2.4.2' from 
repository central (http://repo.maven.apache.org/maven2): Error transferring 
file: repo.maven.apache.org
[INFO] Fixed Javadoc frame injection vulnerability (CVE-2013-1571) in 1 files.
[INFO] Fixed Javadoc frame injection vulnerability (CVE-2013-1571) in 1 files.
[INFO] Fixed Javadoc frame injection vulnerability (CVE-2013-1571) in 1 files.
[INFO] snapshot 
org.apache.maven.plugins.maven-javadoc-plugin.unit:stylesheetfile-test:1.0-SNAPSHOT:
 checking for updates from central
[WARNING] repository metadata for: 'snapshot 
org.apache.maven.plugins.maven-javadoc-plugin.unit:stylesheetfile-test:1.0-SNAPSHOT'
 could not be retrieved from repository: central due to an error: Error 
transferring file: repo.maven.apache.org
[INFO] Repository 'central' will be blacklisted
[INFO] Fixed Javadoc frame injection vulnerability (CVE-2013-1571) in 1 files.
[INFO] Fixed Javadoc frame injection vulnerability (CVE-2013-1571) in 1 files.
[INFO] Fixed Javadoc frame injection vulnerability (CVE-2013-1571) in 1 files.
[INFO] snapshot 
org.apache.maven.plugins.maven-javadoc-plugin.unit:helpfile-test:1.0-SNAPSHOT: 
checking for updates from central
[WARNING] repository metadata for: 'snapshot 
org.apache.maven.plugins.maven-javadoc-plugin.unit:helpfile-test:1.0-SNAPSHOT' 
could not be retrieved from repository: central due to an error: Error 
transferring file: repo.maven.apache.org
[INFO] Repository 'central' will be blacklisted
[INFO] Fixed Javadoc frame injection vulnerability (CVE-2013-1571) in 1 files.
[INFO] Fixed Javadoc frame injection vulnerability (CVE-2013-1571) in 1 files.
[INFO] Fixed Javadoc frame injection vulnerability (CVE-2013-1571) in 1 files.
Tests run: 24, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 32.58 sec <<< 
FAILURE! - in org.apache.maven.plugin.javadoc.JavadocReportTest
testTagletArtifacts(org.apache.maven.plugin.javadoc.JavadocReportTest)  Time 
elapsed: 0.249 sec  <<< ERROR!
org.apache.maven.plugin.MojoExecutionException: An error has occurred in 
JavaDocs report generation: Unable to find artifact:groupId = 
'org.apache.maven.plugin-tools'
artifactId = 'maven-plugin-tools-javadoc'
version = '2.4.2'
        at 
org.apache.maven.plugin.javadoc.AbstractJavadocMojo.failOnError(AbstractJavadocMojo.java:5906)
        at 
org.apache.maven.plugin.javadoc.JavadocReport.execute(JavadocReport.java:319)
        at 
org.apache.maven.plugin.javadoc.JavadocReportTest.testTagletArtifacts(JavadocReportTest.java:994)
Caused by: org.apache.maven.reporting.MavenReportException: Unable to find 
artifact:groupId = 'org.apache.maven.plugin-tools'
artifactId = 'maven-plugin-tools-javadoc'
version = '2.4.2'
        at 
org.apache.maven.plugin.javadoc.AbstractJavadocMojo.addTagletsFromTagletArtifacts(AbstractJavadocMojo.java:4920)
        at 
org.apache.maven.plugin.javadoc.AbstractJavadocMojo.addStandardDocletOptions(AbstractJavadocMojo.java:4740)
        at 
org.apache.maven.plugin.javadoc.AbstractJavadocMojo.executeReport(AbstractJavadocMojo.java:1959)
        at 
org.apache.maven.plugin.javadoc.JavadocReport.generate(JavadocReport.java:130)
        at 
org.apache.maven.plugin.javadoc.JavadocReport.execute(JavadocReport.java:315)
        ... 23 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable 
to download the artifact from any repository
  org.apache.maven.plugin-tools:maven-plugin-tools-javadoc:pom:2.4.2
from the specified remote repositories:
  central (http://repo.maven.apache.org/maven2)
        at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:228)
        at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
        at 
org.apache.maven.plugin.javadoc.AbstractJavadocMojo.createAndResolveArtifact(AbstractJavadocMojo.java:3375)
        at 
org.apache.maven.plugin.javadoc.AbstractJavadocMojo.addTagletsFromTagletArtifacts(AbstractJavadocMojo.java:4912)
        ... 27 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to 
download the artifact from any repository
        at 
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:404)
        at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
        ... 30 more

Running org.apache.maven.plugin.javadoc.JavadocUtilTest
Tests run: 8, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.314 sec <<< 
FAILURE! - in org.apache.maven.plugin.javadoc.JavadocUtilTest
testIsValidPackageList(org.apache.maven.plugin.javadoc.JavadocUtilTest)  Time 
elapsed: 0.616 sec  <<< ERROR!
java.net.UnknownHostException: maven.apache.org: nodename nor servname 
provided, or not known
        at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
        at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:894)
        at 
java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1286)
        at java.net.InetAddress.getAllByName0(InetAddress.java:1239)
        at java.net.InetAddress.getAllByName(InetAddress.java:1155)
        at java.net.InetAddress.getAllByName(InetAddress.java:1091)
        at 
org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)
        at 
org.apache.http.impl.conn.DefaultClientConnectionOperator.resolveHostname(DefaultClientConnectionOperator.java:278)
        at 
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:162)
        at 
org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
        at 
org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:645)
        at 
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:480)
        at 
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
        at 
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
        at 
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784)
        at 
org.apache.maven.plugin.javadoc.JavadocUtil.isValidPackageList(JavadocUtil.java:1683)
        at 
org.apache.maven.plugin.javadoc.JavadocUtilTest.testIsValidPackageList(JavadocUtilTest.java:305)

Running org.apache.maven.plugin.javadoc.stubs.TestJavadocMavenProjectStub
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in 
org.apache.maven.plugin.javadoc.stubs.TestJavadocMavenProjectStub
Running org.apache.maven.plugin.javadoc.TestJavadocReportTest
[INFO]
5 warnings
[WARNING] Javadoc Warnings
[WARNING] 
/Users/kama/Downloads/maven-javadoc-plugin-2.10/src/test/resources/unit/test-javadoc-test/src/test/java/maven/AppTest.java:22:
 error: package junit.framework does not exist
[WARNING] import junit.framework.Test;
[WARNING] ^
[WARNING] 
/Users/kama/Downloads/maven-javadoc-plugin-2.10/src/test/resources/unit/test-javadoc-test/src/test/java/maven/AppTest.java:23:
 error: package junit.framework does not exist
[WARNING] import junit.framework.TestCase;
[WARNING] ^
[WARNING] 
/Users/kama/Downloads/maven-javadoc-plugin-2.10/src/test/resources/unit/test-javadoc-test/src/test/java/maven/AppTest.java:24:
 error: package junit.framework does not exist
[WARNING] import junit.framework.TestSuite;
[WARNING] ^
[WARNING] 
/Users/kama/Downloads/maven-javadoc-plugin-2.10/src/test/resources/unit/test-javadoc-test/src/test/java/maven/AppTest.java:30:
 error: cannot find symbol
[WARNING] extends TestCase
[WARNING] ^
[WARNING] symbol: class TestCase
[WARNING] 
/Users/kama/Downloads/maven-javadoc-plugin-2.10/src/test/resources/unit/test-javadoc-test/src/test/java/maven/AppTest.java:45:
 error: cannot find symbol
[WARNING] public static Test suite()
[WARNING] ^
[WARNING] symbol:   class Test
[WARNING] location: class AppTest
[INFO] Fixed Javadoc frame injection vulnerability (CVE-2013-1571) in 1 files.
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.944 sec - in 
org.apache.maven.plugin.javadoc.TestJavadocReportTest

Results :

Tests in error:
  org.apache.maven.plugin.javadoc.JavadocReportTest#testTagletArtifacts 
MojoExecutionException
  org.apache.maven.plugin.javadoc.JavadocUtilTest#testIsValidPackageList 
UnknownHostException

Tests run: 55, Failures: 0, Errors: 2, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:16.115s
[INFO] Finished at: Tue Sep 16 21:22:23 CEST 2014
[INFO] Final Memory: 35M/513M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on 
project maven-javadoc-plugin: There are test failures.
[ERROR]
[ERROR] Please refer to 
/Users/kama/Downloads/maven-javadoc-plugin-2.10/target/surefire-reports for the 
individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
{code}




--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to