Hi,
I want to try maven-surefire-plugin. There are two projects A and B, A
depends on B, and some test classes in A depend on that of in B. Both A and
B's POM has the following snippet.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>false</skip>
</configuration>
</plugin>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -
Steps:
1. CD to directory of project B, execute mvn compiler:testCompile and mvn
install
2. CD to directory of project A, execute mvn compiler:testComplie, maven
always complain that some test classes can not be found in project B.
Question:
Simply, we can resolve it by adding test classes into jar (default
packaging). Somebody could tell me how? Or any other suggestions would be
appriciated.
Thanks.
Linghua.