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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.1.0.Beta1
    • None
    • None
    • None
    • 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

      Attachments

        Activity

          People

            jperkins-rhn James Perkins
            mbasovni Martin Basovnik (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: