You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Hari shankar <ha...@gmail.com> on 2010/11/03 15:53:38 UTC
[Dependent jar path as property value] Error
Am trying to use something like
<plugins>
<plugin>
<groupId>org.sonatype.tycho</groupId>
<artifactId>maven-osgi-test-plugin</artifactId>
<version>0.9.0</version>
<configuration>
<argLine>-Xmx512M -javaagent:*${jacoco.agent.path}*
=destfile=C:/coverage.exec</argLine>
But for some reasons, the property is NOT getting substituted correctly (as
evident by seeing cmd arguments passed when tests are invoked and build
fails). Can someone please have a look.
<properties>
* <jacoco.agent.path>${org.jacoco:agent:jar}</jacoco.agent.path>*
<test>testing</test>
</properties>
*The value expected is the dependent jar's absolute path* and i have defined
dependency too
<dependencies>
<dependency>
<groupId>org.jacoco</groupId>
<artifactId>agent</artifactId>
<version>0.4.0.20100604151516</version>
</dependency>
</dependencies>
and it is present in local repo too.
But when i try to echo it in a antrun maven configuration (just to cross
verify), correct path is getting printed.
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<phase>verify</phase>
<configuration>
<target>
<property name="jacoco_agent_path"
value="${jacoco.agent.path}"/>
<echo
message="${jacoco_agent_path}"></echo>
</target>
</configuration>
<goals>