我正在使用该插件在另一个模块的测试中附加测试。Maven 2.2.1附加测试。问题-Dmaven.test.skip = true
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
和需要的jar模块中:
<dependency>
<groupId>com.myco.app</groupId>
<artifactId>foo</artifactId>
<version>1.0-SNAPSHOT</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
</dependencies>
它一直对我非常有用,但我发现了一个问题:当我执行“干净安装-Dmaven.test.skip = true“,还有需要依赖性测试jar,并且该进程失败
您能告诉我们错误吗? –