maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <>
Subject confusion: maven-ear-plugin and NoClassDefFoundError
Date Thu, 06 Jul 2006 20:35:21 GMT
Hi all,

I have a maven2 ear project that depends on a maven2 ejb project. When I
used maven1, the ear plugin made sure the application.xml file was built
correctly, and everything was done for you.

This doesn't work with maven2, I get the following error:

18:08:13,632 WARN  [EJBDeployer] Verify failed; continuing
java.lang.NoClassDefFoundError: [Lalchemy/trader/workbench/TraderProject;

The class "alchemy/trader/workbench/TraderProject" exists inside the EJB
jar, and is definitely not missing.

Reading the docs for the ear:ear goal doesn't specify any minumum required
configuration for the ear plugin to work.

Reading "Better builds with maven" it suggests that each jar and ejb file
needs to be explicitly defined within the <plugin> tag for
maven-ear-plugin, over and above the dependancy mechanism.

This seems to be against the spirit of maven, which is to do stuff for the

I am now confused.

Can anyone point at any docs that explain clearly and concisely what needs
to be done to build an ear file?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message