You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Geoffrey <jc...@hotmail.com> on 2004/02/26 10:37:04 UTC

Main-Class attribute in manifest.mf of generated jar

Hi all,

I recently started using Maven, generated a directory with the genapp goal and did maven jar.
Everything is in the jar as it should, except my Main-class attribute isn't set.
If that is set, then users can open my J2SE application by just double clicking on the jar.

Can I tell Maven in the POM what my main class for the jar is?

Thank you for any and all help,
Geoffrey

Acceptance tests best practice

Posted by "J. Matthew Pryor" <jm...@yahoo.com>.
I am wondering if anyone can spare a few thoughts on how best to handle
acceptance tests with maven.

I love & use the JUnit support for unit tests, and grok the way they Unit
tests are always run before jar.

Acceptance tests on the other hand would want o be used in such a tightly
iterative (TDD?) sort of way.

I have taken a tiny peek at SelfEsteem
(http://opensource.thoughtworks.com/projects/selfesteem.html), and would
expect to use Junit to drive the acceptance tests, but I am not sure exactly
where to place them in my project and how to handle them from the POM point
of view or from an execution point of view.

Source code wise, I was thinking of placing them in
${basedir}/src/acceptancetest/java, but then I have the problem of how to
get them compiled and I am loathe to deal with the 'multiple source
directory' trout.

Then maybe I thought put them in a top-level package and try & get them
excluded from the jar?

Maybe a separate sub-project & use multisite?

Anyway if anyone can share some experience I love to hear it

Matthew


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org