我尝试使用 build-helper-maven-plugin 1.9 添加集成测试文件夹,Pom 显示如下:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.9</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/integrate/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
maven 版本是 3.2.2,当我运行 mvn build-helper:add-source 时,它会抛出以下错误:
[错误] 无法在项目测试中执行目标 org.codehaus.mojo:build-helper-maven-plugin:1.8:add-source (default-cli):目标 org.codehaus.mojo:build- 的参数“源” helper-maven-plugin:1.8:add-source 丢失或无效 -> [帮助 1]
感谢任何帮助