I would like in a maven2 POM to define a property with a different value if I am packaging a SNAPSHOT or a RELEASE (a non SNAPSHOT) of my project.
I know ...
I know I can retrieve some settings.xml parameters using properties, like, for example ${settings.localRepository} to get the location of the local repository.
Now imagine my settings.xml contains the following servers definition:
I am running a Maven (2) release build with with: mvn -f release.xml clean deploy
and want to get the currently running pom file name (release.xml) into a property or mojo.
Is ...
http://maven.apache.org/pom.html#Properties says property "values are accessible anywhere within a POM".
Should this read "are accessible in most places within a POM"?
I can specify the version of a dependency no problem ...
At the moment we're going to migrating all of our cvs projects to git.
Our custom script is using the git converter and everything is fine.
Now i would like to ...
We use maven resource filtering in a pretty large project. Over time the pom profiles have grown significantly and we suspect that many properties defined there are not even in use ...
I would like to escape a property in pom.xml. Not in ressources, I know it is possible with a filter. For example I try to use launch4j plugin like this :
Is there a way to inherit properties from parent pom.
E.g: I want to replace ${publish.dir} in child pom with the value from parent pom.
parent pom:<properties> <publish.dir>/tmp/publish</publish.dir> </properties> ...
I am trying to setup my project to use different virtual-host names depending on the environment.
I know I could create directories with a separate jboss-web.xml file in each directory. But ...