Put your tests in src/test/java as normal. If your helper classes are to be used by multiple projects, create a new project just for the helper classes, call it foo-test or something. Put the helper classes in src/main/java in the foo-test project, not src/test/main. Then you can create a dependency with test scope on foo-test from the projects that need the test helper classes.
If you don't use that little trick, project B cannot depend on project A for it's test classes because the final artifacts never contain test classes. Brian On May 28, 2010, at 1:26 PM, Greg Akins wrote: > I'm working on Mavenizing a small project. In the current project, > there are three "source" directories. > > The Main source, the JUnit test source and a dir called > "test_informal" that contains some "helper" classes for doing > interactive testing... > > In a maven project, where would one put that type of source? > > -- > Greg Akins > > http://insomnia-consulting.org > http://www.pghcodingdojo.org > http://pittjug.dev.java.net > http://twitter.com/akinsgre > http://www.linkedin.com/in/akinsgre > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
