如果app-bs中的test case类需要用到exa-client中test case的类:
1. 把exa-client的test case打包放到repository目录中.
在exa-client的pom文件中增加下面配置:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
2. 在app-bs的pom文件中增加对exa-client test case依赖.
<dependency> <!-- reuse src/test/java code from exa-client -->
<groupId>exa</groupId>
<artifactId>exa-client</artifactId>
<version>${exa.platform.version}</version>
<scope>test</scope>
<classifier>tests</classifier> <!-- for example, the build test jar is named "exa-client-2.4.0-SNAPSHOT-tests.jar"-->
</dependency>
1. 把exa-client的test case打包放到repository目录中.
在exa-client的pom文件中增加下面配置:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
2. 在app-bs的pom文件中增加对exa-client test case依赖.
<dependency> <!-- reuse src/test/java code from exa-client -->
<groupId>exa</groupId>
<artifactId>exa-client</artifactId>
<version>${exa.platform.version}</version>
<scope>test</scope>
<classifier>tests</classifier> <!-- for example, the build test jar is named "exa-client-2.4.0-SNAPSHOT-tests.jar"-->
</dependency>