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

Undeployment fails with "No server groups were defined for the deployment operation"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.1.0.Final
    • 1.1.0.Alpha11
    • Maven Plugin
    • None
    • Workaround Exists
    • Hide

      Remove the `<domain>` tag.
      ```xml
      <server-groups>
      <server-group>app-www</server-group>
      </server-groups>
      ```

      Show
      Remove the `<domain>` tag. ```xml <server-groups> <server-group>app-www</server-group> </server-groups> ```

      Hello,
      i just upgraded from alpha8 to latest version alpha11. And run into this error:

      [ERROR] Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.1.0.Alpha11:undeploy-artifact (undeploy-app-gui) on project app-gui: Failed to undeploy app-gui.war. Reason: No server groups were defined for the deployment operation. Deployment: UndeployDescription(name=app-gui.war, failOnMissing=false, removeContent=true) -> [Help 1]
      

      After going back to alpha8 undeployment worked again.

      The relevant parts of my pom file:

      <plugin>
          <groupId>org.wildfly.plugins</groupId>
          <artifactId>wildfly-maven-plugin</artifactId>
          <version>1.1.0.Alpha11</version>
          <configuration>
              <hostname>${deployment.hostname}</hostname>
              <port>${deployment.port}</port>
              <username>${deployment.username}</username>
              <password>${deployment.password}</password>
          </configuration>
      </plugin>
      
      <execution>
          <id>undeploy-app-gui</id>
          <phase>validate</phase>
          <goals>
              <goal>undeploy-artifact</goal>
          </goals>
          <configuration>
              <ignoreMissingDeployment>true</ignoreMissingDeployment>
              <groupId>com.example.app</groupId>
              <artifactId>app-gui-deployable</artifactId>
              <name>app-gui.war</name>
              <domain>
                  <server-groups>
                      <server-group>app-www</server-group>
                  </server-groups>
              </domain>
          </configuration>
      </execution>
      

              jperkins-rhn James Perkins
              pkopprasch Phillip Kopprasch (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: