[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] Maven2 integration test and aspectjweaver
|
- From: "Kaare Nilsen" <kaare.nilsen@xxxxxxxxx>
- Date: Thu, 11 Jan 2007 17:06:17 +0100
- Delivered-to: aspectj-users@eclipse.org
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=I+zUuvgXUKCbakbG45xOOqhPLMCVyGgEDGIDs+d8qTliVjw27JT+n4hzv9Z8UCwjhy/Mj4U6Sl7NzYRIbOVbAODQMq282Wen9uWFuPrDfuDR5yak3r1RscrbOUiCVlI1iHFKt2dfWh4+8v2gJLU3Zl++VGJn+UFpqN9AW++Gm4k=
To use LTW with maven2 you will need to use eighter MAVEN_OPTS or
setting it on the argLine option in the surefire plugin..
example (linux/bash)
export MAVEN_OPTS=-javaagent:/fully/qualified/path/to/aspectjweaver-1.5a.jar
mvn test
or (in the pom.xml)
<project>
[...]
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>pertest</forkMode>
<argLine>-javaagent:${maven.repo.local}/aspectj/aspectjweaver/1.5.2a/aspectjweaver-1.5.2a.jar</argLine>
</configuration>
</plugin>
</plugins>
</build>
[...]
</project>
(may bee spelling errors :))
On 02/09/06, Dennis Cieplik <dcieplik@xxxxxxx> wrote:
Hi,
I've got problems to run maven integration test with aspectjweaver. I supplied -javaagent:aspectjweaver-1.5a.jar via cmd line, but without any success. Load time weaving works under eclipse, but fails from command line. I also tried to adjust pom.xml, googled ...
Environment:
Maven 2.0.4
AspectJ 1.5a (libraries from spring)
jdk1.5.0_06
Perhaps somebody ran into similiar problems and could privide some hints?
TIA
Dennis
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users