Maven WAR Plugin
  1. Maven WAR Plugin
  2. MWAR-176

when archiveClasses is true, jar file has incorrect name

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 2.1-alpha-2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      jdk 1.6 - maven 2.0.9
    • Number of attachments :
      1

      Description

      I have a parent pom which defines a build number using the build number plugin. My project's finalName is of the form :
      $

      {artifcatId}

      _$

      {version}

      _$

      {buildNumber}

      The war is correctly named, but the when using archiveClasses the jar is not named properly: it is named the same but without replacing the buildNumber property, e.g:
      "myAtifcat_1.0_${buildNumber}

      .jar"

      It works fine if the build number is defined in the pom itself. This happens if the buidlNumber is defined in a parent pom.

        Issue Links

          Activity

          Hide
          Dennis Lundberg added a comment -

          Can you give us a POM that shows the configurations needed to reproduce this?

          Show
          Dennis Lundberg added a comment - Can you give us a POM that shows the configurations needed to reproduce this?
          Hide
          Hugues Narjoux added a comment -

          The parent pom with the war plugin declaration

          Show
          Hugues Narjoux added a comment - The parent pom with the war plugin declaration
          Hide
          Hugues Narjoux added a comment -

          I attached a sample parent pom which contains the declaration of the war plugin and the build number plugin.

          The child pom does not contain anything special, except inheriting the parent pom.

          Show
          Hugues Narjoux added a comment - I attached a sample parent pom which contains the declaration of the war plugin and the build number plugin. The child pom does not contain anything special, except inheriting the parent pom.
          Hide
          Dennis Lundberg added a comment -

          I tried this using the latest trunk and it will use the name "artifactId-1.0.jar" for the included jar file.

          Show
          Dennis Lundberg added a comment - I tried this using the latest trunk and it will use the name "artifactId-1.0.jar" for the included jar file.
          Hide
          Stéphane Nicoll added a comment -

          Reported with a patch and a full discussion in MWAR-215.

          Show
          Stéphane Nicoll added a comment - Reported with a patch and a full discussion in MWAR-215 .

            People

            • Assignee:
              Stéphane Nicoll
              Reporter:
              Hugues Narjoux
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: