Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-394

unpack behaves differently in multi-module build

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Auto Closed
    • 2.5.1, 2.6
    • None
    • unpack
    • None
    • Maven 3.0.4, Mac OS X and Windows XP

    Description

      During a multi-module build where one project unpacks the war from an earlier project (example attached), performing a "mvn clean test" fails with
      "MojoExecutionException: Artifact has not been packaged yet. When used on reactor artifact, unpack should be executed after packaging: see MDEP-98."
      at AbstractDependencyMojo.unpack(AbstractDependencyMojo.java:229)

      #This will pass
      mvn clean install
      mvn test

      1. This will fail
        mvn clean
        mvn test
      2. although the custom-portal project failed, it passes when run by itself
        cd custom-portal
        mvn test

      Attachments

        1. mvn-bug.zip
          8 kB
          Mike George

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mikegz Mike George
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: