/ Published in: XML
Using this configuration in pom.xml 'clean' should be only one task in mvn command line (for ex. mvn clean compile now breaks a build on dependency problem, but mvn clean && mvn compile works fine).
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<build> <plugins> <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>clear-repo</id> <phase>pre-clean</phase> <goals> <goal>run</goal> </goals> <configuration> <tasks> <delete dir="${settings.localRepository}"/> </tasks> </configuration> </execution> </executions> </plugin> </plugins> </build>