Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.8
-
None
-
Elipse 3.6, mvn 2.2.1, Mac OS X 10.6.5
Description
When creating a link to another folder in Eclipse 3.6, it will generate a snippet like this in the .project:
<linkedResources>
<link>
<name>src/main/webapp/docroot/myfolder</name>
<type>2</type>
<locationURI>FOLDER_VAR/otherfolder/myfolder</locationURI>
</link>
</linkedResources>
When running eclipse:eclipse, the parsing / update of .project will fail with:
java.lang.IllegalArgumentException: No location node.
at org.apache.maven.plugin.eclipse.LinkedResource.<init>(LinkedResource.java:110)
at org.apache.maven.plugin.eclipse.writers.EclipseProjectWriter.write(EclipseProjectWriter.java:155)
at org.apache.maven.plugin.eclipse.EclipsePlugin.writeConfiguration(EclipsePlugin.java:1139)
Apparently, the plugin expects the element <location> rather than <locationURI>, which seems to be a bug.