Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

refer to test class across maven modules.

 
J Bolla
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic