Skip to main content

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

I think this will do it. I haven't used the Maven AJ plugin for a while, but in the past I've used specific dependencies for the plugin itself to override the version of the compiler it used. This is from an old POM of mine:


			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>aspectj-maven-plugin</artifactId>
				<dependencies>
				<dependency>
					<groupId>aspectj</groupId>
					<artifactId>aspectjrt</artifactId>
					<version>1.6.1</version>
				</dependency>
				<dependency>
					<groupId>aspectj</groupId>
					<artifactId>aspectjtools</artifactId>
					<version>1.6.1</version>
				</dependency>
				</dependencies>
				<executions>
					<execution>
						<goals>
							<goal>compile</goal>
							<goal>test-compile</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<showWeaveInfo>true</showWeaveInfo>
					<verbose>true</verbose>
					<complianceLevel>1.5</complianceLevel>
					<source>1.5</source>
					<target>1.5</target>
				</configuration>
			</plugin>

Obviously you would have to change the groupId/artifactId/version as necessary.

On Nov 10, 2009, at 12:32 PM, Andy Clement wrote:

ah... that may leave me a little out of my depth, I'm no maven expert.
Hopefully someone who knows about these things can chip in -
Simoooooooooone? :)

Andy

2009/11/10 prg@xxxxxxxxxxxxxxx <prg@xxxxxxxxxxxxxxx>:
Andy Clement schrieb:
I guess you probably half suspect what I'm going to say :)

:-D

I see you are on AspectJ1.6.5 - can you upgrade?  The problem in the
original attachment is due to 'P' signatures (an internal optimized
type of signature we use) leaking out into the class files we create.
There were one or two bugs fixed related to those during 1.6.6
development (eg. https://bugs.eclipse.org/bugs/show_bug.cgi? id=284297
- slightly different manifestation but the same underlying issue).


Hi Andy,

indeed I'd absolutely *love* to upgrade, but our capabilities are
somewhat limited,  so to say  ;-)

We're already using org.codehaus.mojo:aspectj-maven-plugin:1.3- SNAPSHOT
Which seems to be the latest we can get, am I right? Or is there any
possibility to get a more recent compiler version there?

thanks,
Hermann
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users



Back to the top