You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by to...@gi-de.com on 2008/04/29 09:39:33 UTC
Eclipse Plugin and using variables?
Hi,
in my pom.xml I have the following:
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.4</version>
</plugin>
...
<properties>
<tomcatPath>${env.JBOSS_HOME}/server/default/deploy/jbossweb-tomcat55.sar</tomcatPath>
</properties>
...
<dependency>
<groupId>tomcat</groupId>
<artifactId>tomcat-util</artifactId>
<version>5.5</version>
<scope>system</scope>
<systemPath>${tomcatPath}/tomcat-util.jar</systemPath>
</dependency>
...
When I now call mvn eclipse:eclipse the generated *.classpath results to
an expanded classpath:
<classpath>
...
<classpathentry kind="lib"
path="C:/eap/jboss-4.0.5.GA/server/default/deploy/jbossweb-tomcat55.sar/tomcat-util.jar"/>
...
</classpath>
Is it possible to generate a .classpath file, that keeps using the
variable JBOSS_HOME?
For M2_REPO for example the path is not expanded.
Thanx, Torsten