我的项目分为几个模块,其中一个是通用的,应该用于其他模块。
在这个模块中有我希望能够从其他模块中使用的 TestUtils。
我的库似乎没有添加到测试罐中。我怎样才能做到这一点?
+ common
++ lib
++ src
+++ test
++++ java
++++ resources
+ pom.xml
我的 pom.xml 包含一些我通过系统路径包含的库,例如:
<dependency>
<groupId>com.ibm</groupId>
<artifactId>com.ibm.disthub2.dhbcore</artifactId>
<version>5.3.07</version>
<scope>system</scope>
<systemPath>${basedir}/lib/dhbcore.jar</systemPath>
</dependency>
...
<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>