> Op Mon, 20 Jan 2014 21:28:49 +0100 schreef Jim Garrison
> > I have a simple project that uses the assembly plugin to build a
> > jar-with-dependencies and then a zip file containing the
> > jar-with-dependencies and a shell script.  When I run "mvn deploy" it
> > deploys all three artifacts (the original jar, the jwd and the zip
> > file) to Nexus.
> >
> > Is there a way to prevent deployment of the jar and jwd, and only
> > upload the zip file to Nexus?  I've read the maven-deploy-plugin
> > documentation page but there doesn't seem to be a way to prevent those
> > artifacts from being deployed.
>
> From: Robert Scholte
> Sent: Monday, January 20, 2014 2:00 PM
> To: Maven Users List
> Subject: Re: maven-deploy-plugin: exclude specific project artifact(s)?
> 
> Make sure it is not attached to the project.
> For assembly-plugin, see
> http://maven.apache.org/plugins/maven-assembly-plugin/single-
> mojo.html#attach
> Set this value to false.

I can do that for the jar-with-dependencies but I don't see a way to "unattach" 
the primary jar from the project.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to