6 Replies Latest reply on Jul 18, 2013 1:12 PM by bvgjboss

    jboss-as-maven-plugin issue to skip deploy-artifact goal

    Xavier Courangon Newbie

      Hi all,

       

      I bind deploy-artifact to pre-integration-test phase to setup the environment test.

      I would like to allow the user to skip pre-integration-test deployments.

       

      It appends that setting the skip parameter of the deploy-artifact goal to false fails.

       

           <plugin>

                <groupId>org.jboss.as.plugins</groupId>

                                              <artifactId>jboss-as-maven-plugin</artifactId>

                                              <version>7.2.Final</version>

                          <configuration>

                                                        <hostname>${jboss.server.host}</hostname>

                                                        <username>${jboss.server.username}</username>

                                                        <password>${jboss.server.password}</password>

                                              </configuration>

                          <executions>

                              <execution>

                                                                  <id>set-env</id>

                                                                  <phase>pre-integration-test</phase>

                                                                  <goals>

                                                                            <goal>deploy-artifact</goal>

                                                                  </goals>

                                                                  <configuration>

                                         <skip>true</skip>

                                          ...

                                                                  </configuration>

                                                        </execution>

       

       

      [ERROR] Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.2.Final:deploy-artifact (set-env) on project xxxxxx: Execution set-env of goal org.jboss.as.plugins:jboss-as-maven-plugin:7.2.Final:deploy-artifact failed. NullPointerException -> [Help 1]

       

      Thanks for your help