我找到了一个
discussion
MNG-4039
这用一个例子来说明
maven-gunit-plugin
gunit-maven-plugin
样品我会让你读整篇文章,但根据作者的说法,你应该以这样的方式结束:
<dependencies>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr-runtime</artifactId>
<version>3.1.1</version>
</dependency>
<!-- Here is the 'extra' dep -->
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr</artifactId>
<version>3.1.1</version>
<!-- we try to use scope to hide it from transitivity -->
<scope>test</scope> <!-- or perhaps 'provided' (see later discussion) or 'import' (maven >= 2.0.9) -->
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gunit-maven-plugin</artifactId>
<version>1.0.0-SNAPSHOT</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
我没有亲自测试这个配置,因此无法确认一切正常。我甚至不知道插件是否以非快照版本发布。我唯一能确认的是,似乎确实很难找到有关该项目的“真实”文档
.