Try to add the source parameter to your aspectj plugin. [1]

[1] http://mojo.codehaus.org/aspectj-maven-plugin/compile-mojo.html#source

Hth,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



-----Original Message-----
From: Ilya Ermolov [mailto:[EMAIL PROTECTED]
Sent: Wed 7/23/2008 13:30
To: [email protected]
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]


Reply via email to