Re: Build failed in Jenkins: core-integration-testing-maven-3-embedded #7571
I could not figure out why this job, that launches core ITs in embedded mode, does fail: il looks that it's more strict on avoiding downloading dependencies during ITs but I can't reproduce the failure on my desktop: I don't understand what makes the repository so strict Any idea? Regards, Hervé Le samedi 25 mars 2017, 10:37:58 CET Apache Jenkins Server a écrit : > See > <https://builds.apache.org/job/core-integration-testing-maven-3-embedded/75 > 71/display/redirect?page=changes> > > Changes: > > [hboutemy] upgraded parent pom to benefit from site staging configuration > > -- > [...truncated 1.46 MB...] > [INFO] > [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ servlet --- > [INFO] No tests to run. > [INFO] > [INFO] > > [INFO] Building enterprise java beans 1.0 > [INFO] > > [INFO] > [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ ejbs > --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered > resources, i.e. build is platform dependent! [INFO] Copying 1 resource > [INFO] > [INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ ejbs --- > [INFO] No sources to compile > [INFO] > [INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) > @ ejbs --- [WARNING] Using platform encoding (UTF-8 actually) to copy > filtered resources, i.e. build is platform dependent! [INFO] skip non > existing resourceDirectory > <https://builds.apache.org/job/core-integration-testing-maven-3-embedded/ws > /core-integration-testing-trunk/core-it-suite/target/test-classes/mng-5898/e > jbs/src/test/resources> [INFO] > [INFO] --- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ > ejbs --- [INFO] No sources to compile > [INFO] > [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ ejbs --- > [INFO] No tests to run. > [INFO] > [INFO] > > [INFO] Building ear assembly 1.0 > [INFO] > > [INFO] > [INFO] --- maven-ear-plugin:2.8:generate-application-xml > (default-generate-application-xml) @ ear --- [INFO] Downloading: > file:target/null/org/codehaus/plexus/plexus-archiver/2.1.2/plexus-archiver- > 2.1.2.pom [WARNING] The POM for > org.codehaus.plexus:plexus-archiver:jar:2.1.2 is missing, no dependency > information available [INFO] Downloading: > file:target/null/org/apache/maven/shared/maven-filtering/1.0-beta-2/maven-f > iltering-1.0-beta-2.pom [WARNING] The POM for > org.apache.maven.shared:maven-filtering:jar:1.0-beta-2 is missing, no > dependency information available [INFO] > > [INFO] Reactor Summary: > [INFO] > [INFO] project SUCCESS [ 0.001 > s] [INFO] sub projects ... SUCCESS [ > 0.000 s] [INFO] logging > SUCCESS [ 0.407 s] [INFO] core project classes > ... SUCCESS [ 0.030 s] [INFO] servlets > ... SUCCESS [ 0.000 s] [INFO] > servlet SUCCESS [ 0.011 s] > [INFO] enterprise java beans .. SUCCESS [ > 0.048 s] [INFO] ear assembly ... > FAILURE [ 0.033 s] [INFO] > > [INFO] BUILD FAILURE > [INFO] > > [INFO] Total time: 0.561 s > [INFO] Finished at: 2017-03-25T10:29:59Z > [INFO] Final Memory: 15M/279M > [INFO] > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-ear-plugin:2.8:generate-application-xml > (default-generate-application-xml) on project ear: Execution > default-generate-application-xml of goal > org.apache.maven.plugins:maven-ear-plugin:2.8:generate-application-xml > failed: Plugin org.apache.maven.plugins:maven-ear-plugin:2.8 or one of its > dependencies could not be resolved: The following artifacts could not be > resolved: org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.6, > org.apache.maven:maven-error-diagnostics:jar:2.0.6, > org.apache.maven:maven-plugin-descriptor:jar:2.0.6: Failure to find > org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.6 in > file:target/null was
Re: git commit: fix ITs when current path contains a Unix symbolic link (failures reproduced on ASF Jenkins https://builds.apache.org/job/core-integration-testing-maven-3-embedded)
wooo hooo! here it is, at last: Core ITs are now ok for jobs using symbolic links https://builds.apache.org/view/M-R/view/Maven%20Core%20ITs/ Regards, Hervé Le lundi 10 mars 2014 07:27:36 Hervé BOUTEMY a écrit : just for information, before someone asks: I know I broke one Jenkins job when hoping to fix another one... I'll continue my tests tonight to fix these jobs *at the same time* :) Regards, Herve Le dimanche 9 mars 2014 19:43:48 hbout...@apache.org a écrit : Repository: maven-integration-testing Updated Branches: refs/heads/master 9f11d8d70 - b79791ee7 fix ITs when current path contains a Unix symbolic link (failures reproduced on ASF Jenkins https://builds.apache.org/job/core-integration-testing-maven-3-embedded) Project: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/repo Commit: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/commit/b7 9 791ee Tree: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/tree/b797 9 1ee Diff: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/diff/b797 9 1ee Branch: refs/heads/master Commit: b79791ee7dfc7c1f943ed03ded2875e1b5073503 Parents: 9f11d8d Author: Hervé Boutemy hbout...@apache.org Authored: Sun Mar 9 20:43:44 2014 +0100 Committer: Hervé Boutemy hbout...@apache.org Committed: Sun Mar 9 20:43:44 2014 +0100 -- .../maven/it/MavenITmng2201PluginConfigInterpolationTest.java| 2 +- .../org/apache/maven/it/MavenITmng3475BaseAlignedDirTest.java| 2 +- .../maven/it/MavenITmng3747PrefixedPathExpressionTest.java | 2 +- .../org/apache/maven/it/MavenITmng3760BaseUriPropertyTest.java | 4 ++-- .../java/org/apache/maven/it/MavenITmng3827PluginConfigTest.java | 2 +- .../apache/maven/it/MavenITmng3864PerExecPluginConfigTest.java | 2 +- .../apache/maven/it/MavenITmng3877BasedirAlignedModelTest.java | 2 +- .../maven/it/MavenITmng3904NestedBuildDirInterpolationTest.java | 2 +- .../apache/maven/it/MavenITmng3944BasedirInterpolationTest.java | 4 ++-- .../org/apache/maven/it/MavenITmng3951AbsolutePathsTest.java | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) -- http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/b797 91 ee/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2201PluginCo nfi gInterpolationTest.java -- diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2201PluginConf i gInterpolationTest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2201PluginConf i gInterpolationTest.java index 39e5585..13ba7ed 100644 --- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2201PluginConf i gInterpolationTest.java +++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2201PluginConf i gInterpolationTest.java @@ -53,7 +53,7 @@ public class MavenITmng2201PluginConfigInterpolationTest verifier.verifyErrorFreeLog(); verifier.resetStreams(); -testDir = testDir.getCanonicalFile(); +//testDir = testDir.getCanonicalFile(); Properties props = verifier.loadProperties( target/config.properties ); assertEquals( new File( testDir, target ), new File( props.getProperty( stringParam ) ) ); http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/b797 91 ee/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3475BaseAlig ned DirTest.java -- diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3475BaseAligne d DirTest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3475BaseAligne d DirTest.java index 0baebdf..f3a4e6c 100644 --- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3475BaseAligne d DirTest.java +++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3475BaseAligne d DirTest.java @@ -56,7 +56,7 @@ public class MavenITmng3475BaseAlignedDirTest verifier.verifyErrorFreeLog(); verifier.resetStreams(); -testDir = testDir.getCanonicalFile(); +//testDir = testDir.getCanonicalFile(); Properties configProps = verifier.loadProperties( target/config.properties ); http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/b797 91 ee/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3747Prefixed Pat hExpressionTest.java -- diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3747PrefixedPa t hExpressionTest.java b/core
Re: git commit: fix ITs when current path contains a Unix symbolic link (failures reproduced on ASF Jenkins https://builds.apache.org/job/core-integration-testing-maven-3-embedded)
Congratz! Op Wed, 12 Mar 2014 08:07:31 +0100 schreef Hervé BOUTEMY herve.bout...@free.fr: wooo hooo! here it is, at last: Core ITs are now ok for jobs using symbolic links https://builds.apache.org/view/M-R/view/Maven%20Core%20ITs/ Regards, Hervé Le lundi 10 mars 2014 07:27:36 Hervé BOUTEMY a écrit : just for information, before someone asks: I know I broke one Jenkins job when hoping to fix another one... I'll continue my tests tonight to fix these jobs *at the same time* :) Regards, Herve Le dimanche 9 mars 2014 19:43:48 hbout...@apache.org a écrit : Repository: maven-integration-testing Updated Branches: refs/heads/master 9f11d8d70 - b79791ee7 fix ITs when current path contains a Unix symbolic link (failures reproduced on ASF Jenkins https://builds.apache.org/job/core-integration-testing-maven-3-embedded) Project: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/repo Commit: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/commit/b7 9 791ee Tree: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/tree/b797 9 1ee Diff: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/diff/b797 9 1ee Branch: refs/heads/master Commit: b79791ee7dfc7c1f943ed03ded2875e1b5073503 Parents: 9f11d8d Author: Hervé Boutemy hbout...@apache.org Authored: Sun Mar 9 20:43:44 2014 +0100 Committer: Hervé Boutemy hbout...@apache.org Committed: Sun Mar 9 20:43:44 2014 +0100 -- .../maven/it/MavenITmng2201PluginConfigInterpolationTest.java| 2 +- .../org/apache/maven/it/MavenITmng3475BaseAlignedDirTest.java| 2 +- .../maven/it/MavenITmng3747PrefixedPathExpressionTest.java | 2 +- .../org/apache/maven/it/MavenITmng3760BaseUriPropertyTest.java | 4 ++-- .../java/org/apache/maven/it/MavenITmng3827PluginConfigTest.java | 2 +- .../apache/maven/it/MavenITmng3864PerExecPluginConfigTest.java | 2 +- .../apache/maven/it/MavenITmng3877BasedirAlignedModelTest.java | 2 +- .../maven/it/MavenITmng3904NestedBuildDirInterpolationTest.java | 2 +- .../apache/maven/it/MavenITmng3944BasedirInterpolationTest.java | 4 ++-- .../org/apache/maven/it/MavenITmng3951AbsolutePathsTest.java | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) -- http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/b797 91 ee/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2201PluginCo nfi gInterpolationTest.java -- diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2201PluginConf i gInterpolationTest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2201PluginConf i gInterpolationTest.java index 39e5585..13ba7ed 100644 --- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2201PluginConf i gInterpolationTest.java +++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2201PluginConf i gInterpolationTest.java @@ -53,7 +53,7 @@ public class MavenITmng2201PluginConfigInterpolationTest verifier.verifyErrorFreeLog(); verifier.resetStreams(); -testDir = testDir.getCanonicalFile(); +//testDir = testDir.getCanonicalFile(); Properties props = verifier.loadProperties( target/config.properties ); assertEquals( new File( testDir, target ), new File( props.getProperty( stringParam ) ) ); http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/b797 91 ee/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3475BaseAlig ned DirTest.java -- diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3475BaseAligne d DirTest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3475BaseAligne d DirTest.java index 0baebdf..f3a4e6c 100644 --- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3475BaseAligne d DirTest.java +++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3475BaseAligne d DirTest.java @@ -56,7 +56,7 @@ public class MavenITmng3475BaseAlignedDirTest verifier.verifyErrorFreeLog(); verifier.resetStreams(); -testDir = testDir.getCanonicalFile(); +//testDir = testDir.getCanonicalFile(); Properties configProps = verifier.loadProperties( target/config.properties ); http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/b797 91 ee/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3747Prefixed Pat hExpressionTest.java -- diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3747PrefixedPa t
Re: git commit: fix ITs when current path contains a Unix symbolic link (failures reproduced on ASF Jenkins https://builds.apache.org/job/core-integration-testing-maven-3-embedded)
just for information, before someone asks: I know I broke one Jenkins job when hoping to fix another one... I'll continue my tests tonight to fix these jobs *at the same time* :) Regards, Herve Le dimanche 9 mars 2014 19:43:48 hbout...@apache.org a écrit : Repository: maven-integration-testing Updated Branches: refs/heads/master 9f11d8d70 - b79791ee7 fix ITs when current path contains a Unix symbolic link (failures reproduced on ASF Jenkins https://builds.apache.org/job/core-integration-testing-maven-3-embedded) Project: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/repo Commit: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/commit/b79 791ee Tree: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/tree/b7979 1ee Diff: http://git-wip-us.apache.org/repos/asf/maven-integration-testing/diff/b7979 1ee Branch: refs/heads/master Commit: b79791ee7dfc7c1f943ed03ded2875e1b5073503 Parents: 9f11d8d Author: Hervé Boutemy hbout...@apache.org Authored: Sun Mar 9 20:43:44 2014 +0100 Committer: Hervé Boutemy hbout...@apache.org Committed: Sun Mar 9 20:43:44 2014 +0100 -- .../maven/it/MavenITmng2201PluginConfigInterpolationTest.java| 2 +- .../org/apache/maven/it/MavenITmng3475BaseAlignedDirTest.java| 2 +- .../maven/it/MavenITmng3747PrefixedPathExpressionTest.java | 2 +- .../org/apache/maven/it/MavenITmng3760BaseUriPropertyTest.java | 4 ++-- .../java/org/apache/maven/it/MavenITmng3827PluginConfigTest.java | 2 +- .../apache/maven/it/MavenITmng3864PerExecPluginConfigTest.java | 2 +- .../apache/maven/it/MavenITmng3877BasedirAlignedModelTest.java | 2 +- .../maven/it/MavenITmng3904NestedBuildDirInterpolationTest.java | 2 +- .../apache/maven/it/MavenITmng3944BasedirInterpolationTest.java | 4 ++-- .../org/apache/maven/it/MavenITmng3951AbsolutePathsTest.java | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) -- http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/b79791 ee/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2201PluginConfi gInterpolationTest.java -- diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2201PluginConfi gInterpolationTest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2201PluginConfi gInterpolationTest.java index 39e5585..13ba7ed 100644 --- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2201PluginConfi gInterpolationTest.java +++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2201PluginConfi gInterpolationTest.java @@ -53,7 +53,7 @@ public class MavenITmng2201PluginConfigInterpolationTest verifier.verifyErrorFreeLog(); verifier.resetStreams(); -testDir = testDir.getCanonicalFile(); +//testDir = testDir.getCanonicalFile(); Properties props = verifier.loadProperties( target/config.properties ); assertEquals( new File( testDir, target ), new File( props.getProperty( stringParam ) ) ); http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/b79791 ee/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3475BaseAligned DirTest.java -- diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3475BaseAligned DirTest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3475BaseAligned DirTest.java index 0baebdf..f3a4e6c 100644 --- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3475BaseAligned DirTest.java +++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3475BaseAligned DirTest.java @@ -56,7 +56,7 @@ public class MavenITmng3475BaseAlignedDirTest verifier.verifyErrorFreeLog(); verifier.resetStreams(); -testDir = testDir.getCanonicalFile(); +//testDir = testDir.getCanonicalFile(); Properties configProps = verifier.loadProperties( target/config.properties ); http://git-wip-us.apache.org/repos/asf/maven-integration-testing/blob/b79791 ee/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3747PrefixedPat hExpressionTest.java -- diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3747PrefixedPat hExpressionTest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3747PrefixedPat hExpressionTest.java index dea9ae0..62fb2ad 100644 --- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3747PrefixedPat hExpressionTest.java +++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3747PrefixedPat hExpressionTest.java @@ -54,7 +54,7 @@ public class
maven 3 embedded
hi i'm trying to update my application using the maven 2 embedder to maven 3, and i cannot get the plexus component system to resolve/lookup the components outside of my unit tests, ie. when the same code is executed from a shell. i have gone through the source code for the hudson/jenkins plugin, the maven-core (3.0.3) unit tests, the maven-embedder (3.0.3) MavenCli classes, and attempted to configure things in the ways they do and it still does not work, mostly with this error: org.codehaus.plexus.component.repository.exception.ComponentLookupException : java.util.NoSuchElementException role: org.apache.maven.Maven some more info: - the mavenexecutionrequest building etc. all works, it's just when i get to the plexusContainer.lookup(Maven.class) that it fails. - in brief i create my container like: this.classWorld = new ClassWorld( plexus.core, Thread.currentThread().getContextClassLoader() ); ContainerConfiguration containerConfiguration = new DefaultContainerConfiguration() .setClassWorld(this.classWorld) .setRealm( setupContainerRealm( ) ) .setName( maven ); this.container = new DefaultPlexusContainer( containerConfiguration ); - i can successfully lookup a Maven instance in my maven unit tests (within my maven build) - in the standalone app plexus can find *my* components, but not mavens - i have tried copying the contents of the maven-core META-INF/plexus/components.xml to my components.xml, no luck - most of the plexus guides concerning the class loading/resolving pieces are empty: http://plexus.codehaus.org/guides/developer-guide/index.html it all points to a classloading issue, but i know the required maven classes are on the classpath (albeit in separate jars) as when i remove the jar i get a classnotfoundexception as you would expect. anyway, i've been pulling my hair out for a few days now and so any help is greatly appreciated. thanks larry - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org
maven 3 embedded
hi i'm trying to update my application using the maven 2 embedder to maven 3, and i cannot get the plexus component system to resolve/lookup the components outside of my unit tests, ie. when the same code is executed from a shell. i have gone through the source code for the hudson/jenkins plugin, the maven-core (3.0.3) unit tests, the maven-embedder (3.0.3) MavenCli classes, and attempted to configure things in the ways they do and it still does not work, mostly with this error: org.codehaus.plexus.component.repository.exception.ComponentLookupException : java.util.NoSuchElementException role: org.apache.maven.Maven some more info: - the mavenexecutionrequest building etc. all works, it's just when i get to the plexusContainer.lookup(Maven.class) that it fails. - in brief i create my container like: this.classWorld = new ClassWorld( plexus.core, Thread.currentThread().getContextClassLoader() ); ContainerConfiguration containerConfiguration = new DefaultContainerConfiguration() .setClassWorld(this.classWorld) .setRealm( setupContainerRealm( ) ) .setName( maven ); this.container = new DefaultPlexusContainer( containerConfiguration ); - i can successfully lookup a Maven instance in my maven unit tests (within my maven build) - in the standalone app plexus can find *my* components, but not mavens - i have tried copying the contents of the maven-core META-INF/plexus/components.xml to my components.xml, no luck - most of the plexus guides concerning the class loading/resolving pieces are empty: http://plexus.codehaus.org/guides/developer-guide/index.html it all points to a classloading issue, but i know the required maven classes are on the classpath (albeit in separate jars) as when i remove the jar i get a classnotfoundexception as you would expect. anyway, i've been pulling my hair out for a few days now and so any help is greatly appreciated. thanks larry - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org