Hi

I'm not 100 pct sure I get this right.
You have some test classes that extends something else than TestCase and you want to share these intermediate classes between projects ?

If this is the case.
I re comment to re-engineer your test cases so they only extends TestCase

/Anders

On 12/12/2008, at 08.43, Linghua Wang wrote:

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.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to