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