Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Re: Compiler problem when building with Maven (part1 solved)

Andy Clement schrieb:
> I see you are on AspectJ1.6.5 - can you upgrade?
...
> There were one or two bugs fixed related to those during 1.6.6

On Aug 1, 2008, at 7:40 AM, Benjamin Bentmann wrote:
http://old.nabble.com/aspectj-maven-plugin-version-to18765856.html#a18765856
> you can add dependencies to the plugin's class path. These should 
> come up front the normal plugin dependencies so in principle that 
> should allow you to override the AspectJ version (as long as it's 
> binary compatible).

Dave Whittaker schrieb:
> ...but in the past I've used specific dependencies for the plugin 
> itself to override the version of the compiler it used.

Many thanks to all of you!
By applying this trick, the problem with the IllegalStateExeption
could be solved. Just for the record: We're now placing
aspecttools-1.6.6 on the classpath of the plugin

Cheers
Hermann V.

====================================================

    <plugin>
     <groupId>org.codehaus.mojo</groupId>
     <artifactId>aspectj-maven-plugin</artifactId>
     <version>1.3-SNAPSHOT</version>
     <dependencies>
       <dependency>
          <groupId>org.aspectj</groupId>
          <artifactId>aspectjrt</artifactId>
          <version>1.6.6</version>
       </dependency>
       <dependency>
          <groupId>org.aspectj</groupId>
          <artifactId>aspectjtools</artifactId>
          <version>1.6.6</version>
       </dependency>
     </dependencies>
     <executions>


Back to the top