zDev - M2E - WTP OSS
  1. zDev - M2E - WTP OSS
  2. MECLIPSEWTP-209

Maven Integration for WTP creating duplicate pom.properties files

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Out of scope
    • Affects Version/s: 0.14.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Eclipse 3.7/STS 2.8.1
      Java 1.6.0_29
      Maven Integration for WTP 0.14.0.20110928-2045 org.maven.ide.eclipse.wtp.feature.feature.group
    • Global Rank:
      19809

      Description

      Please let me know if this isn't the right place for this.

      I've recently started using SpringSource tool suite (2.8.1), which is eclipse indigo with a few plugins pre-installed I believe.

      I've found that if I create a new maven project, and then create a jar file from that I get duplicate pom.properties and pom.xml files in the resultant jar file. In the attached jar they are in:

      META-INF\maven\test\test\

      One of the plugins that is installed is the Maven Integration for WTP (0.14.0), which I believe is this project. When I remove that plugin I don't get the duplicates any more.

      I have also seen this issue with a straight eclipse install, once I pulled in a web project, which pulled in the WTP stuff. Its only really an issue because we then run JiBX on the jar file, which doesn't like the duplicate files. If its possible to turn off the integration on a per project level that could work, because the project that's a problem isn't a web project - is that possible?

      Hopefully this is the right place for this. Is there any more information I can provide? Is there anything I can do to work around the issue?

      Thanks,

      Matt

        Activity

        Hide
        Fred Bricon added a comment -

        It seems the maven archiver doesn't like when the output directory already contains the maven descriptors. I think the duplicate files thing should be fixed in the maven archiver plugin. You should raise an issue on the CodeHaus JIRA

        Anyway, you need to execute a clean build when running a CLI build (mvn clean package)

        In Eclipse, Maven descriptors are generated by org.sonatype.m2e.mavenarchiver, a dependency of m2e-wtp. If you want to be able to disable their generation, I suggest you speak up on https://github.com/sonatype/m2eclipse-extras/issues/9

        Closing issue as out of scope.

        Show
        Fred Bricon added a comment - It seems the maven archiver doesn't like when the output directory already contains the maven descriptors. I think the duplicate files thing should be fixed in the maven archiver plugin. You should raise an issue on the CodeHaus JIRA Anyway, you need to execute a clean build when running a CLI build (mvn clean package) In Eclipse, Maven descriptors are generated by org.sonatype.m2e.mavenarchiver , a dependency of m2e-wtp. If you want to be able to disable their generation, I suggest you speak up on https://github.com/sonatype/m2eclipse-extras/issues/9 Closing issue as out of scope.

          People

          • Assignee:
            Fred Bricon
            Reporter:
            Matthew Harrison
            Last Updated By:
            Fred Bricon
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Date of First Response: