Seems like this also is present in the latest snapshot of the plugin:
if ( complianceLevel.equals( "1.3" ) || complianceLevel.equals( "1.4" )
|| complianceLevel.equals( "1.5" ) )
{
ajcOptions.add( "-" + complianceLevel );
}
You could for instance download the source and see if it is possible to just
add "1.6" to the check on complianceLevel. The latest snapshot uses aspectj
version 1.5.4 so I guess it must be set to 1.6.1 to support Java 1.6, which
probably is the cause of the check in the first place.
Source trunk: https://svn.codehaus.org/mojo/trunk/mojo/aspectj-maven-plugin/
Snapshot repo:
http://snapshots.repository.codehaus.org/org/codehaus/mojo/aspectj-maven-plugin/1.1-SNAPSHOT/
I don't know if this will solve anything and without introducing any other
conflicts, but it may be worth a shot since it involves only 2 small changes.
If it works, you could do a private release of the plugin to your
organization's repo (if any) and/or submit a patch to the plugin project.
- Rune
> From: vicki [EMAIL PROTECTED]
> Sent: 2008-08-13 05:02:59 CEST
> To: [email protected]
> Subject: Re: Can maven-compiler-plugin compile with aspectJ compiler?
>
>
> This plugin was my first choice. I absolutely cannot get it to work. I deal
> with java 1.6 in my project, and when I set the source tag in this plugin's
> configuration to 1.6, the plugin complains that this source value isn't
> valid. I looked into the source of the plugin, and it looks like all source
> values it checks against are 1.3 and 1.5 or something like that. If I set a
> value of a source to 1.5, so the plugin doesn't complain anymore, it
> downloads aspectj artifacts that can't compile generics and annotations.
> Dealing with this plugin in java 1.6 context was such hell, that I am
> finally switching to use antrun to instrument my project artifact classes
> with my aspectj aspects.
>
>
> Rune Flobakk wrote:
> >
> > Give aspectj-maven-plugin a try:
> > http://mojo.codehaus.org/aspectj-maven-plugin/
> >
> > - Rune
> >
> > vicki skrev:
> >> I could not confirm that aspectj can be used as compilerId in
> >> maven-compiler-plugin configuration. All my attempts to use aspectj maven
> >> plugin failed in either compile or run time.
> >> Thanks,
> >> Vicki
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Can-maven-compiler-plugin-compile-with-aspectJ-compiler--tp18953234p18956217.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]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]