我有两个神器:
- artifact-A : 包含 src/test/resources/ 中的资源
<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>
- artifact B:使用来自 artifact A 的资源
<dependency> <groupId>com.xxxx.yyy</groupId> <artifactId>artifact-A</artifactId> <version>3.0-SNAPSHOT</version> <type>test-jar</type> <scope>test</scope> </dependency>
问题是资源从未在项目工件-B 中提取。我怎样才能做到这一点 ?