Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No sort of ant tasks by default #21

Open
blabno opened this issue May 20, 2014 · 0 comments
Open

No sort of ant tasks by default #21

blabno opened this issue May 20, 2014 · 0 comments

Comments

@blabno
Copy link
Contributor

blabno commented May 20, 2014

By default Pom-sorter substitutes those two lines, which causes build to fail:

<mkdir dir="${project.build.directory}/downloads"/>
<get src="http://archive.apache.org/dist/tomcat/tomcat-7/v${version.org.apache.tomcat}/bin/apache-tomcat-${version.org.apache.tomcat}.zip"
    dest="${project.build.directory}/downloads" verbose="true" skipexisting="true"/>

Full plugin config:

                 <plugin>
                    <artifactId>maven-antrun-plugin</artifactId>
                    <executions>
                        <execution>
                            <phase>generate-test-resources</phase>
                            <goals>
                                <goal>run</goal>
                            </goals>
                            <configuration>
                                <tasks>
                                    <!-- Remove the default ROOT webapp so it won't collide with tests -->
                                    <delete dir="${project.build.directory}/apache-tomcat-${version.org.apache.tomcat}/webapps/ROOT"/>
                                    <mkdir dir="${project.build.directory}/downloads"/>
                                    <get src="http://archive.apache.org/dist/tomcat/tomcat-7/v${version.org.apache.tomcat}/bin/apache-tomcat-${version.org.apache.tomcat}.zip"
                                         dest="${project.build.directory}/downloads" verbose="true" skipexisting="true"/>
                                    <unzip src="${project.build.directory}/downloads/apache-tomcat-${version.org.apache.tomcat}.zip"
                                           dest="${project.build.directory}"/>
                                </tasks>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant