maven clean plugin vs maven-wolifecycle-plugin
maven clean plugin vs maven-wolifecycle-plugin
- Subject: maven clean plugin vs maven-wolifecycle-plugin
- From: Fabian Peters <email@hidden>
- Date: Mon, 13 Oct 2014 21:46:13 +0200
Hi all, especially Henrique,
I'd like to run the clean goal during all maven builds. So I added the maven "clean" plugin to a shared parent pom, right before the maven-wolifecycle-plugin:
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.4.1</version>
<executions>
<execution>
<id>auto-clean</id>
<phase>initialize</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.objectstyle.woproject.maven2</groupId>
<artifactId>maven-wolifecycle-plugin</artifactId>
<version>2.0.17</version>
<extensions>true</extensions>
</plugin>
…
</plugins>
Alas, the maven-wolifecycle-plugin runs before the clean plugin, which results in a build failure. I've tried changing the phase to "validate", but that doesn't help. Is there an easy way to resolve this?
Fabian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden