Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-218

Duplicate pom.properties files being created

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Auto Closed
    • None
    • None
    • maven-archiver
    • None
    • Spring Tool Suite 2.8.1
      JDK 1.6.0_29
      Maven Integration for WTP 0.14.0

    Description

      When using STS, if you create a new maven project (skip archetype selection), when running a maven install from inside eclipse you end up with a jar file as per the attached.

      This has two copies of the pom.properties, and pom.xml files in the META-INF directory (this causes knock on problems for us when running JiBX).

      It seems the reason that the final jar file has the duplicates in is that the target directory that is being jar'd up already contains these files, so they are being pulled in, and then the archiver is creating its own.

      I think it would be good if the archiver checked to see if the files where already there before creating them, if it doesn't already?

      Attachments

        1. test-0.0.1-SNAPSHOT.jar
          2 kB
          Matthew Harrison

        Activity

          People

            Unassigned Unassigned
            mattharr14 Matthew Harrison
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: