You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Arun P Johny <ar...@greytip.com> on 2007/08/23 07:34:59 UTC
Need the value of ${maven.compiler.target} in ant task
Hi all,
In my pom.xml, I've configured plugins as shown below. The ant task
will execute a war-build.xml file.
My problem is I need the values of ${maven.compiler.target} inside my
war-build.xml, is it possible.
With this configuration I'm not getting the value
What are the changes required to get it.
I'm using maven 2.0.6
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<fork>true</fork>
<executable>D:/ProgramFiles/Java/jdk1.6.0_01/bin/javac</executable>
<compilerVersion>5</compilerVersion>
<source>5</source>
<target>5</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warSourceDirectory>web</warSourceDirectory>
<goals>
<goal>exploded</goal>
</goals>
</configuration>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>copy-stuff</id>
<phase>compile</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<ant antfile="war_build.xml">
<property value="${build-home}"
name="build-home" />
<property
value="${project.build.directory}/${artifactId}-${version}"
name="target.path" />
<property
value="${project.build.directory}/classes" name="target.class" />
<property
value="${artifactId}-${version}" name="version.name" />
<property
value="${maven.compiler.target}" name="maven.compiler.target" />
</ant>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
Thanks in advance
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org