Hey Kevin...

  Can you send me these jar to test them on my machine and see what happens ?

On Wed, May 25, 2011 at 8:35 PM, Kevin Meyer - KMZ <[email protected]> wrote:
> Hi,
>
> I've been banging my head against this - can someone tell me how to
> split a master jar into two (or three) pieces?
>
> The maven shade plugin helps create a master jar (or war) that can be
> run with "java -jar xxx.jar" (e.g. running the todo html viewer project).
> I've tested this, and as long as there is a "src/main/resources" that
> contains the "WEB-INF" directory (and its contents), this works fine.
>
> But for upgrade purposes, I'd like to split this jar into 3: 1 contains all
> the "other" dependencies, 1 contains the "isis" classes, and the final
> contains the application "domain" classes. Then I can easily replace
> just the "domain.jar" as I update my application domain design...
>
> I thought it'd be as simple as making three copies of the master jar
> and deleting the "other" bits from each one (i.e. "isis.jar" contains only
> the meta-inf directory and the "isis" directory, "dom.jar" contains only
> the application domain directories, and "others.jar" contains the rest).
> Then execution could be as simple as:
> "java -cp others.jar:dom.jar -jar isis.jar"
>
> But this fails almost immediately with an unable to find class error
> while looking for google's commons List class (which is now in
> "others.jar").
>
> Any words of advice?
>
> Regards,
> Kevin
>
>



-- 
Thanks
- Mohammad Nour
  Author of (WebSphere Application Server Community Edition 2.0 User Guide)
  http://www.redbooks.ibm.com/abstracts/sg247585.html
- LinkedIn: http://www.linkedin.com/in/mnour
- Blog: http://tadabborat.blogspot.com
----
"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein

"Writing clean code is what you must do in order to call yourself a
professional. There is no reasonable excuse for doing anything less
than your best."
- Clean Code: A Handbook of Agile Software Craftsmanship

"Stay hungry, stay foolish."
- Steve Jobs

Reply via email to