Re: Help getting m2 poms for 3.0.2 release
Jason Dillon <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mar 20, 2007, at 6:01 PM, Simone Bordet wrote: > as an update, following most of Jason's suggestions > > mvn clean install -Dtest=false Why -Dtest=false? Just wondering? > builds fine for me. Whew. > > One big issue I have is that test classes have dependencies between > modules. > For example, class JMXConnectorTestCase is a base class defined in the > tests for module jsr160. However, this class is also used as a base > class for tests in the tools module. > > Is there a way to tell maven that test classes in one module depend on > test classes of another module ? Or I am forced to write a dummy > module that only contains a couple of base test classes ? Er... not really... not that I know of at least. Best to put classes which are common into the test-support module and then include that in the dependents cp with <scope>test</scope>. > This problem is particularly complicated in the jsr003 module, where > the base test classes depend on the jsr003 main classes. > In this case a separate jsr003-test module is not extractable, because > it depends on jsr003 module, which will depend on jsr003-test module > for its tests (did not try, to be honest, to check if maven resolves > circular dependencies, but I doubt). Maven won't resolve circular deps, it will just barf. Is the JMXConnectorTestCase a good example to look at to see whats going on? I'm not sure I follow 100% of what the problem is. Is it not possible/feasible to put all of the common classes used by tests into test-support? --jason ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV