Hi, Please find complete console output of Hudson job below.
---------------------------------------------- Found mavenVersion 3.0.2 from file jar:file:/opt/apache/maven/apache-maven-3.0.2/lib/maven-core-3.0.2.jar!/META-INF/maven/org.apache.maven/maven-core/pom.properties No emails were triggered. Parsing POMs downloaded artifact http://wrepos2.mdc.cginet:8080/nexus/content/groups/public//com/cgi/wealth/wm-java-pom/1.10-SNAPSHOT/maven-metadata.xml downloaded artifact http://wrepos2.mdc.cginet:8080/nexus/content/groups/public//com/cgi/wealth/wm-base-pom/1.4-SNAPSHOT/maven-metadata.xml downloaded artifact http://wrepos2.mdc.cginet:8080/nexus/content/groups/public//com/cgi/wealth/wm-platform-pom/1.5-SNAPSHOT/maven-metadata.xml downloaded artifact http://wrepos2.mdc.cginet:8080/nexus/content/groups/public//com/cgi/wealth/common/deps/wm-thirdparty-mgmt-deps/0.1-SNAPSHOT/maven-metadata.xml [devsupport-errorcode-plugin] $ /usr/java/jdk1.6.0_20/bin/java -Xms256m -Xmx512m -XX:MaxPermSize=128m -cp /opt/hudson/hudson_7070/slaves/slave1/maven3-agent.jar:/opt/apache/maven/apache-maven-3.0.2/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /opt/apache/maven/apache-maven-3.0.2 /opt/hudson/hudson_7070/slaves/slave1/slave.jar /opt/hudson/hudson_7070/slaves/slave1/maven3-interceptor.jar 48520 <===[HUDSON REMOTING CAPACITY]===>channel started Downloading: http://wrepos2.mdc.cginet:8080/nexus/content/groups/public/com/cgi/wealth/common/deps/wm-thirdparty-mgmt-deps/0.1-SNAPSHOT/maven-metadata.xml Downloaded: http://wrepos2.mdc.cginet:8080/nexus/content/groups/public/com/cgi/wealth/common/deps/wm-thirdparty-mgmt-deps/0.1-SNAPSHOT/maven-metadata.xml (383 B at 22.0 KB/sec)[WARNING] [WARNING] Some problems were encountered while building the effective model for com.cgi.wealth:errorcode-maven-plugin:maven-plugin:0.1-SNAPSHOT[WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.[WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.[WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.[WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.[WARNING] [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building errorcode-maven-plugin Maven Mojo 0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ Downloading: http://wrepos2.mdc.cginet:8080/nexus/content/groups/public/com/cgi/wealth/common/deps/wm-test-deps/0.1-SNAPSHOT/maven-metadata.xml Downloaded: http://wrepos2.mdc.cginet:8080/nexus/content/groups/public/com/cgi/wealth/common/deps/wm-test-deps/0.1-SNAPSHOT/maven-metadata.xml (372 B at 22.7 KB/sec) Downloading: http://wrepos2.mdc.cginet:8080/nexus/content/groups/public/com/cgi/wealth/common/deps/wm-external-mgmt-deps/0.1-SNAPSHOT/maven-metadata.xml Downloaded: http://wrepos2.mdc.cginet:8080/nexus/content/groups/public/com/cgi/wealth/common/deps/wm-external-mgmt-deps/0.1-SNAPSHOT/maven-metadata.xml (381 B at 28.6 KB/sec) [WARNING] The artifact com.ibatis:ibatis-sqlmap:jar:2.1.0.565 has been relocated to com.ibatis:ibatis2-sqlmap:jar:2.1.0.565[WARNING] The artifact com.ibatis:ibatis-common:jar:2.1.0.565 has been relocated to com.ibatis:ibatis2-common:jar:2.1.0.565[INFO] [INFO] Deleting /opt/hudson/hudson_7070/slaves/slave1/workspace/devsupport-errorcode-plugin/target [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ errorcode-maven-plugin --- [INFO] [INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven-version) @ errorcode-maven-plugin --- [INFO] [INFO] The requirePluginVersions rule is currently not compatible with Maven3. [INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-build-stability) @ errorcode-maven-plugin --- [INFO] [INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-jdk-version) @ errorcode-maven-plugin --- [INFO] [INFO] --- build-helper-maven-plugin:1.5:parse-version (parse-project-version) @ errorcode-maven-plugin --- [INFO] [INFO] --- buildnumber-maven-plugin:1.0-beta-4:create (generate-timestamp) @ errorcode-maven-plugin --- [INFO] Storing buildNumber: 20110405075457 at timestamp: 1302004497885 [INFO] Executing: /bin/sh -c cd /opt/hudson/hudson_7070/slaves/slave1/workspace/devsupport-errorcode-plugin && svn --non-interactive info [INFO] Working directory: /opt/hudson/hudson_7070/slaves/slave1/workspace/devsupport-errorcode-plugin [INFO] Storing buildScmBranch: trunk [INFO] Checking for local modifications: skipped. [INFO] [INFO] Updating project files from SCM: skipped. [INFO] Executing: /bin/sh -c cd /opt/hudson/hudson_7070/slaves/slave1/workspace/devsupport-errorcode-plugin && svn --non-interactive info [INFO] Working directory: /opt/hudson/hudson_7070/slaves/slave1/workspace/devsupport-errorcode-plugin [INFO] Storing buildNumber: 40636 at timestamp: 1302004498793 [INFO] Executing: /bin/sh -c cd /opt/hudson/hudson_7070/slaves/slave1/workspace/devsupport-errorcode-plugin && svn --non-interactive info [INFO] Working directory: /opt/hudson/hudson_7070/slaves/slave1/workspace/devsupport-errorcode-plugin [INFO] [INFO] Storing buildScmBranch: trunk --- buildnumber-maven-plugin:1.0-beta-4:create (generate-scm-revision) @ errorcode-maven-plugin --- [INFO] [INFO] --- gmaven-plugin:1.0:execute (generate-build-version) @ errorcode-maven-plugin --- [INFO] [INFO] --- maven-plugin-plugin:2.6:descriptor (default-descriptor) @ errorcode-maven-plugin --- [INFO] Using 'UTF-8' encoding to read mojo metadata. [INFO] Applying mojo extractor for language: java [INFO] Mojo extractor for language: java found 1 mojo descriptors. [INFO] Applying mojo extractor for language: bsh [INFO] Mojo extractor for language: bsh found 0 mojo descriptors. [INFO] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ errorcode-maven-plugin --- [INFO] Copying 6 resources [INFO] [INFO] Compiling 6 source files to /opt/hudson/hudson_7070/slaves/slave1/workspace/devsupport-errorcode-plugin/target/classes [INFO] --- maven-compiler-plugin:2.3.1:compile (default-compile) @ errorcode-maven-plugin --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /opt/hudson/hudson_7070/slaves/slave1/workspace/devsupport-errorcode-plugin/src/test/resources [INFO] [INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ errorcode-maven-plugin --- [INFO] No sources to compile [INFO] [INFO] --- maven-compiler-plugin:2.3.1:testCompile (default-testCompile) @ errorcode-maven-plugin --- [INFO] [INFO] No tests to run. [INFO] --- maven-surefire-plugin:2.5:test (default-test) @ errorcode-maven-plugin --- [HUDSON] Recording test results[WARNING] Ignoring project type maven-plugin - supportedProjectTypes = [jar] [INFO] [INFO] --- maven-bundle-plugin:2.1.0:manifest (bundle-manifest) @ errorcode-maven-plugin --- [INFO] [INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ errorcode-maven-plugin --- mojoFailed org.apache.maven.plugins:maven-jar-plugin:2.3.1(default-jar) projectFailed com.cgi.wealth:errorcode-maven-plugin:0.1-SNAPSHOT [HUDSON] Archiving /opt/hudson/hudson_7070/slaves/slave1/workspace/devsupport-errorcode-plugin/pom.xml to /opt/apache/hudson-home10/jobs/devsupport-errorcode-plugin/modules/com.cgi.wealth$errorcode-maven-plugin/builds/2011-04-05_07-54-36/archive/com.cgi.wealth/errorcode-maven-plugin/0.1-SNAPSHOT/pom.xml sessionEnded [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 19.295s [INFO] Finished at: Tue Apr 05 07:55:06 EDT 2011 [INFO] Final Memory: 24M/316M [INFO] ------------------------------------------------------------------------ mavenExecutionResult exceptions not empty org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.3.1:jar (default-jar) on project errorcode-maven-plugin: Error assembling JAR at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:145) at hudson.maven.Maven3Builder.call(Maven3Builder.java:124) at hudson.maven.Maven3Builder.call(Maven3Builder.java:71) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: org.apache.maven.plugin.MojoExecutionException: Error assembling JAR at org.apache.maven.plugin.jar.AbstractJarMojo.createArchive(AbstractJarMojo.java:223) at org.apache.maven.plugin.jar.AbstractJarMojo.execute(AbstractJarMojo.java:235) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 27 more Caused by: org.codehaus.plexus.archiver.ArchiverException: Manifest file: /opt/hudson/hudson_7070/slaves/slave1/workspace/devsupport-errorcode-plugin/target/classes/META-INF/MANIFEST.MF does not exist. at org.codehaus.plexus.archiver.jar.JarArchiver.setManifest(JarArchiver.java:211) at org.apache.maven.archiver.MavenArchiver.createArchive(MavenArchiver.java:510) at org.apache.maven.plugin.jar.AbstractJarMojo.createArchive(AbstractJarMojo.java:216) ... 30 more channel stopped On Tue, Apr 5, 2011 at 6:34 PM, Yegor Bugayenko <[email protected]>wrote: > The difference is somewhere in your environment (settings.xml file or the > command line parameters of mvn). How do you call mvn from Hudson? Can you > show the first few lines of Hudson console output? > > — > Yegor Bugayenko, PMP®, SCEA > > > > On Tue, Apr 5, 2011 at 2:12 PM, Prashu Negu <[email protected]> wrote: > >> Hi, >> >> I have maven project with packaging="maven-plugin". The "install" phase >> works fine in eclipse IDE but, when i try to build it using Hudson, I get >> below error. It is not creating MANIFEST file. Do we need to explicetely >> configure to create manifest fil? Could you please help me to fix this >> issue? >> >> >> ---------------------------- >> Caused by: org.apache.maven.plugin.MojoExecutionException: Error >> assembling >> JAR >> at >> >> org.apache.maven.plugin.jar.AbstractJarMojo.createArchive(AbstractJarMojo.java:223) >> at >> >> org.apache.maven.plugin.jar.AbstractJarMojo.execute(AbstractJarMojo.java:235) >> at >> >> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107) >> at >> >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) >> ... 27 more >> Caused by: org.codehaus.plexus.archiver.ArchiverException: Manifest file: >> >> /opt/hudson/hudson_7070/slaves/slave1/workspace/devsupport-errorcode-plugin/target/classes/META-INF/MANIFEST.MF >> does not exist. >> at >> >> org.codehaus.plexus.archiver.jar.JarArchiver.setManifest(JarArchiver.java:211) >> at >> >> org.apache.maven.archiver.MavenArchiver.createArchive(MavenArchiver.java:510) >> at >> >> org.apache.maven.plugin.jar.AbstractJarMojo.createArchive(AbstractJarMojo.java:216) >> ... 30 more >> >> Thanks, >> Prashant >> > >
