0

我有这个脚本需要在site阶段之前运行以解决问题(http://jira.codehaus.org/browse/MSITE-640)。

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>exec-maven-plugin</artifactId>
    <version>1.3</version>
    <inherited>false</inherited>
    <executions>
        <execution>
            <id>workaround-MSITE-640</id>
            <!--it should be 'site' but maven doesn't pick up there-->
            <phase>validate</phase>
            <goals>
                <goal>exec</goal>
            </goals>
            <configuration>
                <failWithEmptyArgument>false</failWithEmptyArgument>
                <workingDirectory>${project.basedir}</workingDirectory>
                <executable>./workaround-MSITE-640.sh</executable>
                <arguments>
                    <argument>${settings.localRepository}</argument>
                </arguments>
            </configuration>
        </execution>
    </executions>
</plugin>

但我似乎无法在那个阶段运行它。我试图把它放在下面,reporting -> plugins但它不能在configuration那里。

它是幂等的,因此多次运行它没有问题,但如果我能将它与正确的阶段联系起来会很好。

谢谢

4

0 回答 0