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 Java 8 in Action this week in the Java 8 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: 5779
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: refer to test class across maven modules.
 
Similar Threads
Ant builds and dependent projects
How to access non class files in a JAR
local interface ?
Rampart at the client side
Maven - Building a single war file from multiple modules