Uploaded image for project: 'WildFly Maven Plugin'
  1. WildFly Maven Plugin
  2. WFMP-39

Duplicate deployment error if both 'reload' and 'deploy' goals are bound to the same maven phase

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.1.0.Beta1
    • Component/s: None
    • Labels:
      None
    • Steps to Reproduce:
      Hide
      <executions>
      	<execution>
      		<id>jboss-as-reload</id>
      		<phase>pre-integration-test</phase>
      		<goals>
      			<goal>shutdown</goal>
      		</goals>
      		<configuration>
      			<reload>true</reload>
      		</configuration>
      	</execution>
      	<execution>
      		<id>jboss-as-deploy</id>
      		<phase>pre-integration-test</phase>
      		<goals>
      			<goal>deploy</goal>
      		</goals>
      	</execution>
      </executions>
      
      Show
      <executions> <execution> <id> jboss-as-reload </id> <phase> pre-integration-test </phase> <goals> <goal> shutdown </goal> </goals> <configuration> <reload> true </reload> </configuration> </execution> <execution> <id> jboss-as-deploy </id> <phase> pre-integration-test </phase> <goals> <goal> deploy </goal> </goals> </execution> </executions>

      Description

      If I try to deploy a deployment just after the server reloading it sometimes fails:

      10:20:32,921 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) JBAS014612: Operation ("add") failed - address: ([("deployment" => "jbasmp-deploy-reproducer-0.0.1-SNAPSHOT.jar")]) - failure description: "JBAS014803: Duplicate resource [(\"deployment\" => \"jbasmp-deploy-reproducer-0.0.1-SNAPSHOT.jar\")]"
      

      https://github.com/jbossas/jboss-as-maven-plugin/blob/7.6.Final/src/main/java/org/jboss/as/plugin/common/DeploymentInspector.java#L57

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jamezp James Perkins
                  Reporter:
                  mbasovni Martin Basovnik
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: