Re: cocoon-sample tests in cocoon-3.0.0-beta-1
Francesco Chicchiriccò <[email protected]> Mon, 12 Sep 2016 14:49:10 +0200
| Newsgroups | gmane.text.xml.cocoon.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, are you on Windows? On Linux, Cocoon 3 with JDK 1.6 works fine, as also reported by Jenkins: https://builds.apache.org/view/A-D/view/Cocoon/job/Cocoon%203.0/275/ I'd suggest to clean up your local ~/.m2/repository directory, as there might be some corrupted artifacts leading to the strange errors below. Please check also my other reply on this thread. Regards. On 12/09/2016 14:11, Hans-Heinrich Braun wrote: > I reduced compile to jave 1.6 and i get the following error : > > > [WARNING] Error injecting: > org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo > java.lang.NoClassDefFoundError: > org/apache/maven/shared/artifact/filter/collection/ArtifactFilterException > .... > Caused by: java.lang.ClassNotFoundException: > org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException > at > org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) > at > org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) > at > org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) > at > org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) > > ..... > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-remote-resources-plugin:1.4:process > (default) on project cocoon-sample: Execution default of goal > org.apache.maven.plugins:maven-remote-resources-plugin:1.4:process > failed: A required class was missing while executing > org.apache.maven.plugins:maven-remote-resources-plugin:1.4:process: > org/apache/maven/shared/artifact/filter/collection/ArtifactFilterException > [ERROR] ----------------------------------------------------- > [ERROR] realm = > plugin>org.apache.maven.plugins:maven-remote-resources-plugin:1.4 > [ERROR] strategy = > org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy > [ERROR] urls[0] = > file:/home/braun/.m2/repository/org/apache/maven/plugins/maven-remote-resources-plugin/1.4/maven-remote-resources-plugin-1.4.jar > [ERROR] urls[1] = > file:/home/braun/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.6/maven-reporting-api-2.0.6.jar > [ERROR] urls[2] = > file:/home/braun/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.jar > [ERROR] urls[3] = > file:/home/braun/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar > [ERROR] urls[4] = > file:/home/braun/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar > [ERROR] urls[5] = > file:/home/braun/.m2/repository/org/apache/maven/shared/maven-artifact-resolver/1.0/maven-artifact-resolver-1.0.jar > [ERROR] urls[6] = > file:/home/braun/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/1.0/maven-common-artifact-filters-1.0.jar > [ERROR] urls[7] = > file:/home/braun/.m2/repository/org/apache/maven/shared/maven-filtering/1.1/maven-filtering-1.1.jar > [ERROR] urls[8] = > file:/home/braun/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.4/plexus-build-api-0.0.4.jar > [ERROR] urls[9] = > file:/home/braun/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar > [ERROR] urls[10] = > file:/home/braun/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.12/plexus-interpolation-1.12.jar > [ERROR] urls[11] = > file:/home/braun/.m2/repository/org/codehaus/plexus/plexus-resources/1.0-alpha-5/plexus-resources-1.0-alpha-5.jar > [ERROR] urls[12] = > file:/home/braun/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.12/plexus-utils-1.5.12.jar > [ERROR] urls[13] = > file:/home/braun/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.8/plexus-velocity-1.1.8.jar > [ERROR] urls[14] = > file:/home/braun/.m2/repository/commons-collections/commons-collections/3.1/commons-collections-3.1.jar > [ERROR] urls[15] = > file:/home/braun/.m2/repository/org/apache/velocity/velocity/1.7/velocity-1.7.jar > [ERROR] urls[16] = > file:/home/braun/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar > [ERROR] Number of foreign imports: 1 > [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: > null]] > [ERROR] > [ERROR] -----------------------------------------------------: > org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException > [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/PluginContainerException > > > > ------------------------------------------------------------------------ > *Von:* Francesco Chicchiriccò <[email protected]> > *An:* [email protected] > *Gesendet:* 10:58 Montag, 12.September 2016 > *Betreff:* Re: cocoon-sample tests in cocoon-3.0.0-beta-1 > > On 12/09/2016 10:51, hansheinrichbraun wrote: > > > the tests in cocoon-sample don't run anymore first the test complains > > that maven-resources-remote-plugin 1.4 has no readable pom > > > Hi, > could you please provide some more details? > > I have just checked up the Cocoon 3 sources from > > https://svn.apache.org/repos/asf/cocoon/cocoon3/trunk > > the, after setting JAVA_HOME to JDK 1.6, I have launched > > mvn clean install > > and built successfully: > > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] Apache Cocoon 3: Parent ........................... SUCCESS [ > 0.722 s] > [INFO] Apache Cocoon 3: Utilities ........................ SUCCESS [ > 1.186 s] > [INFO] Apache Cocoon 3: Pipeline ......................... SUCCESS [ > 0.262 s] > [INFO] Apache Cocoon 3: SAX .............................. SUCCESS [ > 2.958 s] > [INFO] Apache Cocoon 3: CLI .............................. SUCCESS [ > 1.053 s] > [INFO] Apache Cocoon 3: Sitemap .......................... SUCCESS [ > 0.571 s] > [INFO] Apache Cocoon 3: Controller ....................... SUCCESS [ > 0.167 s] > [INFO] Apache Cocoon 3: Servlet .......................... SUCCESS [ > 0.277 s] > [INFO] Apache Cocoon 3: Optional ......................... SUCCESS [ > 4.093 s] > [INFO] Apache cocoon 3: Databases integration components . SUCCESS [ > 0.205 s] > [INFO] Apache Cocoon 3: Monitoring ....................... SUCCESS [ > 2.756 s] > [INFO] Apache Cocoon 3: REST support ..................... SUCCESS [ > 1.190 s] > [INFO] Apache Cocoon 3: Profiling ........................ SUCCESS [ > 0.534 s] > [INFO] Apache Cocoon 3: Optional REST components ......... SUCCESS [ > 0.844 s] > [INFO] Apache Cocoon 3: String Templates ................. SUCCESS [ > 0.673 s] > [INFO] Apache Cocoon 3: Shiro integration ................ SUCCESS [ > 0.295 s] > [INFO] Apache Cocoon 3: StAX ............................. SUCCESS [ > 1.045 s] > [INFO] Apache Cocoon 3: Wicket Integration ............... SUCCESS [ > 0.315 s] > [INFO] Apache Cocoon 3: All dependencies ................. SUCCESS [ > 0.251 s] > [INFO] Apache Cocoon 3: Databases sample integration ..... SUCCESS [ > 0.567 s] > [INFO] Apache Cocoon 3: Sample ........................... SUCCESS [ > 15.005 s] > [INFO] Apache Cocoon 3: Shiro sample integration ......... SUCCESS [ > 0.634 s] > [INFO] Apache Cocoon 3: Root ............................. SUCCESS [ > 0.039 s] > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD SUCCESS > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 35.933 s > [INFO] Finished at: 2016-09-12T10:56:48+01:00 > [INFO] Final Memory: 55M/630M > [INFO] > ------------------------------------------------------------------------ -- Francesco Chicchiriccò Tirasa - Open Source Excellence http://www.tirasa.net/ Involved at The Apache Software Foundation: member, Syncope PMC chair, Cocoon PMC, Olingo PMC, CXF Committer, OpenJPA Committer, PonyMail PPMC http://home.apache.org/~ilgrosso/