You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Chris Robison <ch...@gmail.com> on 2012/02/06 23:37:19 UTC

Remove SNAPSHOT from build version

I want to create an internal build of ActiveMQ and I've been trying to
remove SNAPSHOT from all the versions and JAR file names. I've tried
versions:use-releases and versions:set, but it only seems to partially
work. When I look into the zip file or tarball that gets created, a lot of
the JAR files still have SNAPSHOT in the name. What is the process to
create a "release"?

Chris

Re: Remove SNAPSHOT from build version

Posted by Gary Tully <ga...@gmail.com>.
You can use some of the maven:release plugin, the process is documented at:
http://activemq.apache.org/release-guide.html
but you will need to find that arg that stops it creating a branch.

The simplest thing for you may just be find and replace:

something like:

find . -type f -name 'pom.xml' -print | grep -v .svn | grep -v target
| while read filename
do (   echo "Editing $filename"   sed
's/<version>xxx-SNAPSHOT<\/version>/<version>xx<\/version>/g;'
$filename > $filename.sed
mv $filename.sed $filename # replace output files with original
) done


On 6 February 2012 22:37, Chris Robison <ch...@gmail.com> wrote:
> I want to create an internal build of ActiveMQ and I've been trying to
> remove SNAPSHOT from all the versions and JAR file names. I've tried
> versions:use-releases and versions:set, but it only seems to partially
> work. When I look into the zip file or tarball that gets created, a lot of
> the JAR files still have SNAPSHOT in the name. What is the process to
> create a "release"?
>
> Chris



-- 
http://fusesource.com
http://blog.garytully.com