2 Replies Latest reply on Jul 28, 2014 10:15 AM by Mylos Kathos

    Maven WildFly plugin: how to perform partial deployments?

    Mylos Kathos Master

      Dear all,

      I'm trying to find a way to use the Maven WildFly plugin to perform partial application deployments (e.g. just the XHTML files). Unfortunately I cannot find any available command for that- can you suggest a workaround ?

      Thanks

      Mylos

        • 1. Re: Maven WildFly plugin: how to perform partial deployments?
          Francesco Marchioni Apprentice

          To the best of my knowledge that's not possible with the WildFly plugin alone. I would suggest another approach, that is coding a partial deployment script using with Ant and invoke the AntRun script from Maven:

          <project>

            [...]

            <build>

              <plugins>

                [...]

                <plugin>

                  <artifactId>maven-antrun-plugin</artifactId>

                  <executions>

                    <execution>

                      <phase>deploy</phase>

                      <configuration>

                        <tasks>

           

                          <!--

                            Place any Ant task here. You can add anything

                            you can add between <target> and </target> in a

                            build.xml.

                          -->

           

                        </tasks>

                      </configuration>

                      <goals>

                        <goal>run</goal>

                      </goals>

                    </execution>

                  </executions>

                </plugin>

              </plugins>

            </build>

            [...]

          </project>

          Actually Maven and Ant are not exclusive so that could work. I'd be glad to hear anyway if anybody has got other solutions to the question.

          regards

          Francesco

          • 2. Re: Maven WildFly plugin: how to perform partial deployments?
            Mylos Kathos Master

            Thanks Francesco, it looks feasible!