Skip to content

Instantly share code, notes, and snippets.

@andgomes
Created October 7, 2016 21:34
Show Gist options
  • Save andgomes/4943416bb61ef5c58220bea17b0e98ed to your computer and use it in GitHub Desktop.
Save andgomes/4943416bb61ef5c58220bea17b0e98ed to your computer and use it in GitHub Desktop.
POM configurado para criar um diretório com o plugin AntRun.
<project ...>
...
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>create-report-folder</id>
<phase>initialize</phase>
<configuration>
<tasks>
<mkdir dir="report" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
...
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment