October 10, 2008

Using Maven maven-assembly-plugin to build Env packages

Most web application require configurations based on the environment, Dev, Int, Stage and Prod do not always match each other...

I tend to keep these env configurations outside the war file. I use the maven-assembly-plugin to create tar files that gets deployed to the maven repository.

the following is how i use it..


after all that ... you need the xml files that desc how the files should be packaged

here is an example of one of them...

<assembly xmlns="" xmlns:xsi=""

note that is used to keep the maven version

here is how i setup that up

not that we have filtering = true

and this is the file... which at the end of the day the tar file will have the pom verison


No comments:

Post a Comment