Uploaded image for project: 'Maven Eclipse Plugin (RETIRED)'
  1. Maven Eclipse Plugin (RETIRED)
  2. MECLIPSE-676

linkedResources: <location> vs <locationURI>

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.8
    • 2.9
    • Core : .project
    • 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.

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            lutzh Lutz Hühnken
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: