Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.2
-
Fix Version/s: 2.6
-
Component/s: AJDT support
-
Labels:None
-
Patch Submitted:Yes
-
Number of attachments :3
Description
Please add support for the AJDT plugin.
I have modified the eclipse plugin for our site with the needed changes. I have attached the modifications that I made for someone to look at and incorporate into the plugin.
-
- ajdt.patch
- 13/Mar/07 5:21 PM
- 23 kB
- Carlos Sanchez
-
Hide
- maven-eclipse-plugin.zip
- 28/May/08 2:10 PM
- 122 kB
- Eric Berry
-
- src/main/.../eclipse/EclipseCleanMojo.java 7 kB
- src/main/java/.../eclipse/EclipsePlugin.java 65 kB
- src/main/.../writers/EclipseAjdtWriter.java 6 kB
- src/main/.../EclipseClasspathWriter.java 22 kB
- src/main/.../EclipseWriterConfig.java 15 kB
- src/main/java/.../ide/IdeDependency.java 15 kB
- src/site/apt/examples/ajdt-projects.apt 2 kB
- src/site/apt/index.apt 3 kB
- src/test/.../EclipseAjdtPluginTest.java 3 kB
- src/test/resources/.../expected/.classpath 0.9 kB
- src/test/resources/.../expected/.project 0.4 kB
- src/test/resources/project-ajdt1/pom.xml 1 kB
- src/test/resources/.../expected/.classpath 0.9 kB
- src/test/resources/.../expected/.project 0.4 kB
- src/test/resources/project-ajdt2/pom.xml 1 kB
- src/test/resources/.../expected/.classpath 1.0 kB
- src/test/resources/.../expected/.project 0.4 kB
- src/test/resources/project-ajdt3/pom.xml 2 kB
- src/test/resources/.../expected/.classpath 1 kB
- src/test/resources/.../expected/.project 0.4 kB
- src/test/.../org.eclipse.ajdt.ui.prefs 0.6 kB
- src/test/resources/project-ajdt4/pom.xml 2 kB
- src/test/resources/.../expected/.classpath 1 kB
- src/test/resources/.../expected/.project 0.4 kB
- src/test/.../org.eclipse.ajdt.ui.prefs 0.6 kB
- src/test/resources/project-ajdt5/pom.xml 2 kB
- src/test/resources/.../expected/.classpath 0.8 kB
- src/test/resources/.../expected/.project 0.4 kB
- src/test/.../org.eclipse.ajdt.ui.prefs 0.6 kB
- src/test/resources/project-ajdt6/pom.xml 2 kB
-
Hide
- maven-eclipse-plugin.zip
- 30/Nov/06 1:31 PM
- 14 kB
- Eric Berry
-
- EclipseWriterConfig.java 9 kB
- EclipseAjdtWriter.java 6 kB
- EclipseCleanMojo.java 6 kB
- EclipsePlugin.java 43 kB
Issue Links
- is depended upon by
-
MECLIPSE-544
aspectj libraries do not get included anymore with 2.6
-
- is duplicated by
-
MECLIPSE-270
Add support for classpathentry attributes
-
-
MASPECTJ-46
Create eclipse goal on aspectJ plugin that supports AJDT 1.5
-
- is related to
-
MECLIPSE-547
Maven Eclipse plugin 2.6 with AJDT changes are not backwards compatible.
-
- relates to
-
MECLIPSE-313
AJDT feature
-
Activity
This has been updated for maven-eclipse-plugin 2.5.1 and also ajdt version 1.5.3. I have also included tests and updates to the site build to show how to use it.
Hopefully one of the commiters will be willing to look at this and incorporate it.
Fixed and snapshot 2.6-20080902.232029-1 deployed. If you can test it ....
Is the site staged anywhere (to be able to see documentation of new parameters)
It will be in few hours here :
http://maven.apache.org/plugins/maven-eclipse-plugin-2.6-SNAPSHOT/
I can understand the wish for a AJDT-Plugin support, but I cannot understand
why this must have such an impact on projects that do not use that plugin.
As we do not use that plugin we now are having the problem that our projects
do not compile for the reason of the missing jars :-/
In my eyes this AJDT-Plugin Feature MUST be implemented in a more generic way.
Read the eclipse configurations whether that plugin is installed or something else.
But do not force other Projects to use the AJDT Plugin, just because the are workin
with AOP!!!!
Please open an new issue if this one creates a problem for you. A 2.7 is already on rails.
Alexander, In the configuration of the eclipse plugin add <ajdtVersion>none</ajdtVersion>. This should fix the problem.
There is hidden documentation here http://maven.apache.org/plugins/maven-eclipse-plugin/examples/ajdt-projects.html that describes how to use the ajdt plugin.
I agree with Alexander, and I've created a new issue: http://jira.codehaus.org/browse/MECLIPSE-547
According to the comments on MECLIPSE-270, this jira task replaces/duplicates that task. MECLIPSE-270 is about adding attributes to classpathentries in .classpath.
Can someone please elaborate how this can be accomplished in the pom.xml? This feature lacks documentation on the project website.
Regards
The documentation about ajdt is here : http://maven.apache.org/plugins/maven-eclipse-plugin/examples/ajdt-projects.html
You can find several exemples here : http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-eclipse-plugin/src/test/resources/projects/
If some docs are missing, do not hesitate to open an issue. We'll try to improve it.
We know there are many lacks in it.
Arnaud: thanks for the link.
After plundering around, I found that adding wtp version 2.0 to the pom automatically added the required attributes to the classpathentries like this:
<classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.15/log4j-1.2.15.jar" sourcepath="M2_REPO/log4j/log4j/1.2.15/log4j-1.2.15-sources.jar">
<attributes>
<attribute value="/WEB-INF/lib" name="org.eclipse.jst.component.dependency"/>
</attributes>
</classpathentry>
A nice feature was that the attribute was only added if the maven dependency scope was compile or runtime. Small question though: If the scope is provided, the maven eclipse plugin doesn't add any attribute to the corresponding classpathentry. The wtp plugin for eclipse seems to support the following attribute for entries that are not to be deployed:
"org.eclipse.jst.component.nondependency"
Maybe you should add this for scope provided? Just a thought..
Thanks again!
Previous attachment in diff format