Is there a way to use the path to a jar in the local respository using
variables in the pom?
I know I can use the dependency plugin to copy the jar to my target
directory, but I would prefer to just use the location in the repo. For
example,
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>once</forkMode>
<argLine>-javaagent:${aspectjweaver.groupId}/${aspectjweaver.artifactid}
/${aspectjweaver.version}/${aspectjweaver.jar}</argLine>
</configuration>
</plugin>