You can try to use this:

http://mojo.codehaus.org/minijar-maven-plugin/ueberjar-mojo.html



On 26/03/2008, Angelo Chen <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I revisted the wiki's sample about using IOC in a simple java application,
>
> http://wiki.apache.org/tapestry/Tapestry5HowToIocOnly
>
> it works when compiled with Intellij IDEA, but when maven package, and run
> it as follow:
>
> java -cp mini-app.jar tapestry.mini.Main
>
> I got this error:
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/tapestry/ioc/RegistryBuilder
>
> must be something to do with pom.xml file, any idea how to package it into
> a
> complete jar file so that it can run from the command line? Thanks.
>
> A.C.
>
> --
> View this message in context:
> http://www.nabble.com/t5%3A-IOC-only-app-and-maven-package-tp16296682p16296682.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Best regards,
Renat Zubairov

Reply via email to