我有一个可执行的带有依赖项的JAR文件,它对测试报告进行一些操作。
我将它保存在我的项目中,并希望它在Maven 'site‘目标完成后立即执行。有什么适当的方法可以做到这一点吗?也许可以在这里的某个位置添加该文件的路径?
<reporting>
<excludeDefaults>true</excludeDefaults>
<plugins>
<plugin>
<groupId>my JAR file</groupId>
<artifactId>traceability-matrix-builder</artifactId>
<path> path to the file</path>
</plugin>
</plugins>
</reporting>提前感谢!
发布于 2017-09-05 17:37:58
解决了。很简单:
org.codehaus.mojo exec-maven-plugin 1.3.2 java -jar traceability-matrix-builder-1.0-SNAPSHOT-jar-with-dependencies.jar
mvn站点exec:exec
就这样!
https://stackoverflow.com/questions/46048696
复制相似问题