3 Replies Last post: Jul 18, 2013 2:55 AM by Charlie Chen  
Charlie Chen Newbie 2 posts since
Jul 17, 2013
Currently Being Moderated

Jul 17, 2013 7:15 AM

Executing Tests in Maven Multi Module projects

We have unit tests in common packages across multiple maven sub modules. Some tests rely on resources (such as message bundles) outside common packages.

 

When we execute tests via Run/Debug with the following configuration, the dependent resources outside common packages are not found, possibly because they are not compiled into output directory.

Has anyone come across / resolved such problems?  Many thanks.

 

RunConfig.JPG

Sergey Evdokimov Novice 174 posts since
May 11, 2010
Currently Being Moderated
Jul 17, 2013 2:12 PM in response to: Charlie Chen
Re: Executing Tests in Maven Multi Module projects

How those resources are defined in the pom.xml?

Vojtěch Krása Novice 218 posts since
Nov 1, 2011
Currently Being Moderated
Jul 17, 2013 2:56 PM in response to: Charlie Chen
Re: Executing Tests in Maven Multi Module projects

Working directory should probably be $MODULE_DIR$. It is common problem with multi maven module projects.

More Like This

  • Retrieving data ...