My project requires features of a new version of a maven build plugin for some of its goals, but the new version fails (due to a bug in the plugin) on one of the other goals. As a workaround until the bug is fixed, I'd like to run the broken goal with an older version of the plugin. Edit: More specifically, I need to run the generateAsync goal with version 1.1 of the gwt-maven-plugin and all other goals with version 1.2-SNAPSHOT.
When I declare a separate plugin version to execute the broken goal, Maven still uses the broken version. Is there another way to solve this problem?
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<goals>
<!-- this goal is broken in 1.2-SNAPSHOT -->
<goal>generateAsync</goal>
</goals>
</execution>
</executions>
...
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.2-SNAPSHOT</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<!-- <goal>generateAsync</goal> -->
<goal>test</goal>
</goals>
</execution>
</executions>
...
</plugin>