maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Tran <dant...@gmail.com>
Subject Re: Running maven shade on a preexisting jar
Date Mon, 07 Jul 2014 21:29:04 GMT
this is just guess

1. create  jar project with no source

2. hook up maven-dependency-plugin to unpack your jar into target/classes

3. hook up maven-shade-plugin to massage your target/classes


Good luck

-D



On Mon, Jul 7, 2014 at 2:15 PM, Robert James <srobertjames@gmail.com> wrote:

> How do I run Maven Shade on a standalone jar (ie with no sources to
> build from)? Please realize that I'm a beginner to Maven.
>
> On 7/7/14, james northrup <northrup.james@gmail.com> wrote:
> > hi shade can possibly juxtapose jar deps diffrently from one build to the
> > next in my experience. if you think you are having collisions you should
> > probably do 2 things
> >
> > 1) use <exclude> on the older jar from the older <dependency> to avoid
> the
> > collision
> > 2) see if proguard fixes what shade breaks, if shade stays broken after
> #1.
> >  it's pretty intense
> >
> >
> > On Mon, Jul 7, 2014 at 12:21 PM, Robert James <srobertjames@gmail.com>
> > wrote:
> >
> >> I have a jar that I need to shade - that is, change the name of many
> >> of the internal classes (to avoid conflicts with another jar) except
> >> for a few classes which remain exposed.  The jar is already built,
> >> source is not at hand.  How can I use maven shade to shade that jar?
> >>
> >> (Disclaimer: I'm a maven neophyte)
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
> >
> > --
> > Jim Northrup  *  (408) 837-2270 *
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message