I'm trying to do almost exactly the same thing (different agent jar,
though).  Rather than trying to have the agent point to the repo, I used
the dependency plugin to copy the jar from the repository to a location
under the build directory, then reference it there. 

That much is working okay.  What isn't working now is the fact that my
java agent has dependencies of its own that aren't in the surefire
classpath.  Wayne gave me something to try to get around this problem.

I'll keep you posted on whether I'm able to get it all working.  Please
do the same for me if you're able to get it working on your end.  

..David..


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jacek
Laskowski
Sent: Thursday, April 05, 2007 7:52 AM
To: [email protected]
Subject: How to pass M2 properties to surefire plugin's argLine

Hi,

I wonder how people work out the issue with passing properties to
surefire plugin's argLine attribute? I'd like to execute tests with
Cayenne's java agent and don't know how to point it out to the artifact
in the m2 local repo.

I'd like to run m2-ized project with the following in its pom.xml:

  <plugin>
    <artifactId>maven-surefire-plugin</artifactId>
    <configuration>
      <forkMode>once</forkMode>
 
<argLine>-javaagent:${maven.repo.local}/org/apache/cayenne/cayenne-agent
/3.0-SNAPSHOT/cayenne-agent-3.0-SNAPSHOT.jar</argLine>
    </configuration>
  </plugin>

maven.repo.local property's not resolved. How can I achieve that it is.

Any help appreciated.

Jacek

--
Jacek Laskowski
http://www.JacekLaskowski.pl

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to