Uploaded image for project: 'Maven WAR Plugin'
  1. Maven WAR Plugin
  2. MWAR-69

Secondary artifacts aren't being attached

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1-alpha-1
    • None
    • None

    Description

      If I do configure the maven-war-plugin to create a secondary artifact, then that artifact isn't attached. I do believe, this is because the following code snippet is missing:

      Index: src/main/java/org/apache/maven/plugin/war/WarMojo.java
      ===================================================================
      — src/main/java/org/apache/maven/plugin/war/WarMojo.java (revision 433193)
      +++ src/main/java/org/apache/maven/plugin/war/WarMojo.java (working copy)
      @@ -192,6 +192,10 @@

      { artifact.setFile( warFile ); }

      + else
      +

      { + projectHelper.attachArtifact( getProject(). "war", warFile ); + }

      }
      }
      }

      Attachments

        1. maven-secondary-artifact.patch
          0.5 kB
          Jochen Walz

        Activity

          People

            snicoll Stephane Nicoll
            jochen.wiedmann@gmail.com Jochen Wiedmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: