> the jar plugin or not. If the package for a module is a war file, does
> that mean one isn't allowed to write unit tests for any classes in
> that War file? (To me it should be allowed).

Of course you can write unit tests for classes in a war module. Be
aware that this is not the best practice. Instead, you are generally
encouraged to put your classes and tests in a separate module that
produces a jar file, and then depend on that artifact in your war
artifact.

> Is it the War plugin that's writing the empty test-jar into the local
> repository, if so, why is it doing that?

I doubt the war plugin is writing the empty test-jar. Run mvn with -X
(debug mode) and see what the build info looks like, you may notice
something that is oddly/wrongly configured that explains what is going
on -- don't forget that parent modules can mix configuration with
their children, so your configuration issue may not even be in this
module's pom.xml.

If you can't sort it out, don't send the full debug log here
(attachments are stripped and huge debug logs are annoying to read in
email), please post it online somewhere like pastebin.com and send a
link here instead.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to