You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Danny MacMillan <fl...@nekulturny.org> on 2007/06/13 20:13:00 UTC

How do I use release:perform to deploy artifacts other than jar files?

Hi,

My project is a utility program comprised of Java source files that are 
compiled into a jar, plus other ancillary files (configuration files, 
batch files, etc.).  I use the assembly plugin to produce a zip file 
containing all files relevant to the project, including the compiled Jar 
file.  That works great.

Now I want to create a release.  I was able to successfully run 
release:prepare and release:perform, but it deployed into the repository 
just the jar file, when what I want to deploy is the zip file.  Is that 
possible?

The project will never be a dependency of any other project.  I want to 
deploy it so I have a centrally maintained and archived copy of the 
exact version I will be deploying to the client.  The release plugin 
seems to be the best way to do it because it keeps the version numbers 
in sync with the repository tags, etc.  Not to mention that the maven 
repository seems like a "safe" place to put it (my IT environment is ... 
interesting).

I would really appreciate any guidance.

-- 
Danny MacMillan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How do I use release:perform to deploy artifacts other than jar files?

Posted by Antonio Petrelli <an...@gmail.com>.
2007/6/13, Danny MacMillan <fl...@nekulturny.org>:
>
> Now I want to create a release.  I was able to successfully run
> release:prepare and release:perform, but it deployed into the repository
> just the jar file, when what I want to deploy is the zip file.  Is that
> possible?



Sure, see:
http://maven.apache.org/plugins/maven-assembly-plugin/usage.html
and go to the paragraph "Building an Assembly as Part of the Build
Lifecycle".
See also this working example (Tiles):
http://svn.apache.org/repos/asf/tiles/framework/trunk/assembly/pom.xml

HTH
Antonio