aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes refer to test class across maven modules. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "refer to test class across maven modules." Watch "refer to test class across maven modules." New topic
Author

refer to test class across maven modules.

J Bolla
Greenhorn

Joined: Nov 23, 2004
Posts: 17
Is there a way I can refer to class files in src/test/java across multiple maven modules that depend on each other ?
I want to have a base class for all the test class files that can be extended in other modules.

TIA
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

I believe that the "Maven" way of doing this is to build the base classes, package them and place then in your local repository. Then the other projects have a dependency on that JAR file in your repository and can use or extend those classes. At least, that is what I did.


JBoss In Action
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: refer to test class across maven modules.