Hello everybody!

I have a basic project where I have some general utility classes used by all other maven projects.
Inside this general project, i have some abstract test classes that should be used within all other
test classes of all projects. All test classes, including those abstract classes are under test directory.

When maven builds the distribution for this general project, it only includes the source classes, not
the test classes. But when i try to build other projects that depends upon this general project, i cannot
compile the tests because the abstract test classes cannot be found.

I am not sure about the best solution for this problem and would like an advise from our
more maven experienced coleagues:

Can i generate more than one artifact (jar) for a single project ? some kind of source distribution and test distribution ...

Should i generate only a single jar with all source and test classes inside it ?

Should i create a new project to hold only the abstract test classes, and include it as a dependency for all other projects ?

Should i redefine dist:build to create a test distribution ?

There is an automated way to tell maven that the test classes should be considered as a dependency ?

There is another way to organize my project classes to solve this problem?

Can I define source dependencies and test dependencies separatelly?

Any other suggestions?

Thanks in advance!

--
Gil César Faria
[EMAIL PROTECTED]
+55-19-3287-7060 r. 233
+55-19-9113-4694 (Novo número)
http://www.inmetrics.com.br
 
Estrada da Telebrás km 0,97 Sala 11
13081-970 – UNICAMP
Campinas – SP – Brasil
caixa postal 6123

<<inline: e:\\user\\gilcesar\\pessoal\\blackpoint.gif>>

<<inline: e:\\user\\gilcesar\\pessoal\\logo_signature.gif>>

Reply via email to