[
https://jira.codehaus.org/browse/MASPECTJ-106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=287972#comment-287972
]
Dan Rollo commented on MASPECTJ-106:
------------------------------------
Adding a dep on the tools jar appears to have fixed the warning:
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjtools</artifactId>
<version>1.6.12</version>
</dependency>
> Compiler warning with aspectj-maven-plugin: expected 1.6.11 found 1.6.12
> ------------------------------------------------------------------------
>
> Key: MASPECTJ-106
> URL: https://jira.codehaus.org/browse/MASPECTJ-106
> Project: Mojo AspectJ Plugin
> Issue Type: Bug
> Affects Versions: 1.4
> Environment: Windows, jdk 1.6
> Reporter: Dan Rollo
> Priority: Minor
>
> An aspectj compiler warning starting appearing when I use the
> aspectj-maven-plugin (version 1.4) with in a project with a dependency on
> org.aspectj:aspectjrt:1.6.12.
> This warning goes away if the aspectjrt dependency version is lowered to
> 1.6.11.
> There does not seem to be a problem caused by the warning, but maybe there is
> a
> better way to use a newer version of aspectj with this plugin that avoids the
> warning? (And/Or is another approach documented somewhere?)
> The warning emitted is:
> [artifact:mvn] [WARNING] bad version number found in
> C:\Users\...\.m2\repository\org\aspectj\aspectjrt\1.6.12\aspectjrt-1.6.12.jar
> expected 1.6.11 found 1.6.12
> Steps to Reproduce:
> 1. Maven 3.0.3, pom.xml with dependency on org.aspectj:aspectjrt:1.6.12.
> 2. Use aspectj-maven-plugin to run aspectj compiler.
> 3. The warning below is emitted by the aspectj plugin/compiler:
> [artifact:mvn] [WARNING] bad version number found in
> C:\Users\...\.m2\repository\org\aspectj\aspectjrt\1.6.12\aspectjrt-1.6.12.jar
> expected 1.6.11 found 1.6.12.
> Note: This particular warning was emitted by the maven-ant-tasks, but I don't
> think that is relevant.
> (I reported this issue to the aspectJ group here:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=368190
> then I later realized it might belong with the plugin instead.)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email