Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5872

pom.xml for axis2-webapp is incompatible with Eclipse

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.7.6
    • 1.7.7
    • modules
    • None

    Description

      Im trying to get the current trunk to work in Eclipse using Maven plugins and following the guide on the project site by essentially checking out and executing "mvn -DskipTests=true install eclipse:eclipse". This works mostly, but one problem is the created build path for the project axis2-webapp.

      pom.xml of that project references the resource ".../kernel/conf", that resource is transferred to be an Eclipse source folder and the problem with those is that they can't be outside the current project easily. While one is able to link arbitrary source folders into the project, that's not what the Maven plugin is doing. Instead it translates the path to some absolute one and simply adds it as is, but Eclipse uses it as some relative path because by design all those source folder paths need to be relativ to the current project, without leaving it. Things like ".." don't work as well in the dialogs of Eclipse.

      The file ".classpath" of Eclipse contains the following entry and you can see how Eclipse uses that in the attached screenshots, it simply doesn't work. Removing the resource of pom.xml resolves the issue, but I guess it's there for some reason, you surely need the properties files of "../kernel/conf".

      <classpathentry kind="src" path="C:/Users/tschoening/Documents/Eclipse/Java Axis2/axis2/modules/kernel/conf" including=".properties" excluding="/.java"/>

      So how about putting the properties files directly in the "conf" folder of axis2-webapp instead of referencing them? This would make Eclipse user's life much easier.

      While I know that copying those files is a bit bad, the only other alternatives are svn:externals or symlinks on file system level. svn:externals don't work with GitHub[1], but a lot of people seem to use your project mirror there, and symlinks on file system level are most likely only implemented in GIT/SVN-clients for Linux, not Windows. Windows-Eclipse users like me would need another workaround for that problem. In the end, it doesn't look like those properties file change that often...

      Would be nice if you could fix this somehow. The only workaround I have currently is to remove that source folder manually and/or add the needed one using other Eclipse mechanisms. But I guess you would prefer as well that creating project files etc. works automatically as much as possible.

      [1]: https://help.github.com/articles/subversion-properties-supported-by-github/

      Attachments

        1. Eclipse build path error axis2-webapp.png
          389 kB
          Thorsten Schöning
        2. axis2-webapp Eclipse compat.patch
          2 kB
          Thorsten Schöning

        Activity

          People

            Unassigned Unassigned
            tschoening Thorsten Schöning
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: