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
>

Reply via email to