You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "nicolas de loof (JIRA)" <ji...@codehaus.org> on 2009/10/15 10:08:26 UTC

[jira] Closed: (MECLIPSE-558) Ignoring listed AspectJ dependencies

     [ http://jira.codehaus.org/browse/MECLIPSE-558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

nicolas de loof closed MECLIPSE-558.
------------------------------------

    Resolution: Fixed
      Assignee: nicolas de loof

Completed: At revision: 825429  


> Ignoring listed AspectJ dependencies
> ------------------------------------
>
>                 Key: MECLIPSE-558
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-558
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>          Components: AJDT support
>    Affects Versions: 2.6, 2.7
>            Reporter: Dale Peakall
>            Assignee: nicolas de loof
>             Fix For: 2.8
>
>
> When AJDT support is enabled, the plugin ignores any dependencies that include the term "aspectj" in the artifactId: these include aspectjrt.jar, aspectjweaver.jar and aspectjtools.jar.  Instead the project gets created with a link to the AspectJ Runtime Library "Folder" which just contains aspectjrt.jar.  However, if the project depends on the other AspectJ artifacts, e.g. aspectjweaver.jar (because it uses load-time-weaving) it is broken and no amount of POM tweaking will get it back in there.
> Using the <ajdtVersion>none</ajdtVersion> is fine if the project doesn't include any aspects - but if it does it needs AJDT to compile the aspect - but also needs the other AspectJ artifacts (that were specified in the POM) to run Unit Tests etc.
> At a minimum the plugin should be modified to only replace aspectjrt.  However, I am generally uncomfortable with the whole replacement concept.  As long as projects specify the appropriate dependencies then AJDT will be able to compile and run the project (i.e. the special "AspectJ Runtime Library" folder is not required).  This will also ensure that a consistent version of AspectJ is used (the version provided by Eclipse need not be the same as specified in the POM).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira