This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have maven project with packaging="maven-plugin". When we execute "install" phase on plugin, it 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 anything to create manifest fil? Could you please help me to fix this issue?
Caused by: org.apache.maven.plugin.MojoExecutionException: Error assembling JAR
... 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.
... 30 more
Usually, Maven creates the MANIFEST.MF file automatically when it creates a JAR. Unless you told the Jar plugin that you have a MANIFEST file that you would like to use. So does your pom.xml specific the MANIFEST.MF file? Also, in you source control system, where is the MANIFEST.MF file located?
My guess is that you manually placed a MANIFEST.MF file into the target directory and never did a "clean" within Eclipse, therefore Eclipse happily picks up the file you proved. When you build from Hudson, you get a fresh project directory with only the files from source control.