Hello Ilya,
I'm using AspectJ too. I have this in the dependency section of my pom:
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>1.5.4</version>
</dependency>
The plugin section is like this:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
<configuration>
<complianceLevel>1.5</complianceLevel>
</configuration>
</plugin>
Hope it helps.
________________________________
Pierre
----- Original Message ----
From: Ilya Ermolov <[EMAIL PROTECTED]>
To: [email protected]
Sent: Wednesday, July 23, 2008 7:30:55 AM
Subject: AspectJ in Maven2
My project contains aspect library but it isn't compiles by Maven.
I have following declaration:
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<fork>true</fork>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
but Maven show me some errors like:
C:\workspace\exception-handling\src\ru\vtsft\exceptions\ExceptionHandling.aj:211:0::0
Syntax error, parameterized types are only available if source level is 5.0
error at private static ThreadLocal<Stack<JoinPoint>> traceStack = new
hreadLocal<Stack<JoinPoint>>() {
Eclipse compiles this code without errors. I'm going crazy %]
--
View this message in context:
http://www.nabble.com/AspectJ-in-Maven2-tp18608731p18608731.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__________________________________________________________________
Ask a question on any topic and get answers from real people. Go to Yahoo!
Answers and share what you know at http://ca.answers.yahoo.com