I\'m using Maven 3.0.3. I need to define a variable in my script (\"env\"). I have a
section in my pom in which I define the variable per &
I know it was a long time ago, but I had this problem just now, so... You should do that:
<profile>
<id>dev</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<env>dev</env>
<url>http://localhost:8080/manager</url>
<server>nnadbmon-dev-tomcat</server>
</properties>
</profile>
The documentation for what I think you want is http://maven.apache.org/pom.html#Activation