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

assembly.xml contains incorrect references to modules

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.2.0
    • None

    Description

      SCENARIO:

      Create a EAR project with maven-ear-plugin 3.0.0

      execute mvn ear:ear

      EXPECTED:

      assembly.xml contains reference to the jar/war equivalent to their physical names inside

      the EAR

      (e.g. if the jar is named tryEar-ejb-1.0-SNAPSHOT.jar then assembly.xml reference would be:

      <module>
      <ejb>tryEar-ejb-1.0-SNAPSHOT.jar</ejb>
       </module>

      (this worked in 2.10.1)

      ACTUALLY:
      assembly.xml contains reference

      <module>
      <ejb>com.leokom-tryEar-ejb-1.0-SNAPSHOT.jar</ejb>
      </module>

       

      Due to this difference - JBoss/WildFly cannot deploy the EAR.

      (it's easy to reproduce: you may create a ear project from some standard ones from maven-archetypes and change maven-ear-plugin version to 3.0.0).

       

      UPDATE: Sorry, maybe it's a bug in M2E-WTP plugin of Eclipse. I tried this scenario in standalone mode without Eclipse - and assembly.xml is consistent with the jar files

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              leokom Leonid Rozenblyum
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: