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

    Maven WildFly plugin: how to perform partial deployments?

    mylos78

      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?
          f_marchioni

          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?
            mylos78

            Thanks Francesco, it looks feasible!