Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Wiki Markup

<plugin>
                        <artifactId>maven-antrun-plugin</artifactId>
                        <executions>
                            <execution>
                                <phase>install</phase>
                                <configuration>
                                    <!--tasks unless="maven.test.skip">
                                        <echo message="To skip me, just call mvn -Dmaven.test.skip=true"/>
                                    </tasks-->
                                    <tasks>
                                        <taskdef
                                                resource="net/sf/antcontrib/antcontrib.properties"
                                                classpathref="maven.plugin.classpath"/>

                                        <delete file="${wsm.jboss.server}/deploy/${build.finalName}.war"/>
                                        <delete dir="${wsm.jboss.server}/deploy/${build.finalName}.war"/>

                                        <if>
                                            <isset property="unpacked"/>
                                            <then>
                                                <mkdir dir="${wsm.jboss.server}/deploy/${build.finalName}.war"/>
                                                <copy todir="${wsm.jboss.server}/deploy/${build.finalName}.war">
                                                    <fileset dir="${project.build.directory}/${build.finalName}"/>
                                                </copy>
                                            </then>
                                            <else>
                                                <copy todir="${wsm.jboss.server}/deploy">
                                                    <fileset dir="${project.build.directory}"
                                                             includes="${build.finalName}.war"/>
                                                </copy>
                                            </else>
                                        </if>
                                    </tasks>

                                </configuration>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                            </execution>
                        </executions>
                        <dependencies>
                            <dependency>
                                <groupId>ant-contrib</groupId>
                                <artifactId>ant-contrib</artifactId>
                                <version>1.0b3</version>
                                <exclusions>
                                    <exclusion>
                                        <groupId>ant</groupId>
                                        <artifactId>ant</artifactId>
                                    </exclusion>
                                </exclusions>
                            </dependency>
                            <dependency>
                                <groupId>ant</groupId>
                                <artifactId>ant-nodeps</artifactId>
                                <version>1.6.5</version>
                            </dependency>
                        </dependencies>
                    </plugin>