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

Clean required when dependencies are updated

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.2.3
    • None
    • None
    • None

    Description

      mvn clean is required when a dependency version is updated in a war project pom file; otherwise, both the old and new version of the dependency will appear in the lib directory of the war.

      Steps to recreate:

      1. Create simple war project with 1 or more dependencies.
      2. mvn clean package
      3. List library jar files in target/<war>/lib.
      4. Update a dependency version in pom.xml
      5. mvn package (note: no clean).
      6. List library jar files in target/<war>/lib.
        • At this point the lib folder will contain both versions of the dependency.

      Expected:

      A clean should not required when dependency versions are updated; mvn package should be sufficient. This expectation is somewhat driven by a discussion with rfscholte on twitter.

       

      Attachments

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              alewis Alex lewis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: