Uploaded image for project: 'Maven EAR Plugin'
  1. Maven EAR Plugin
  2. MEAR-116

different build results from single module build and from reactor build

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.4
    • 2.5
    • None
    • maven 2.2.0

    Description

      attached is a sample application as generated by netbeans 6.8 (using archetypes from org.codehaus.mojo.archetypes)
      a simple ear+ejb+war multiproject.

      when building everything together from the root pom, I get this output:
      [ear:ear]
      Copying artifact[ejb:org.kleint:samplejavaee6-ejb:1.0-SNAPSHOT] to[samplejavaee6-ejb.jar]
      Copying artifact[war:org.kleint:samplejavaee6-web:1.0-SNAPSHOT] to[samplejavaee6-web.war]

      and the war and ejb artifacts are included with names not including version.

      However if I later do a mvn clean install on the ear project, I get this output:

      [ear:ear]
      Copying artifact[ejb:org.kleint:samplejavaee6-ejb:1.0-SNAPSHOT] to[samplejavaee6-ejb-1.0-SNAPSHOT.jar]
      Copying artifact[war:org.kleint:samplejavaee6-web:1.0-SNAPSHOT] to[samplejavaee6-web-1.0-SNAPSHOT.war]

      and the war/ejb artifacts get a version in the name.

      This sounds like it has to do with the finalname being resolved differently in single module build and in reactor build.

      Attachments

        1. ear116.zip
          11 kB
          Milos Kleint
        2. MEAR-116.patch
          1.0 kB
          Benjamin Bentmann

        Activity

          People

            snicoll Stephane Nicoll
            mkleint Milos Kleint
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: