Hello Li Li,

you might take a look at the maven-shade-plugin as well, which is easier to
use IMO.

Regards
Mirko
-- 
Sent from my mobile
On Apr 4, 2014 3:20 AM, "Li Li" <[email protected]> wrote:

> I want to make it runnable simply by java -jar xxx.jar
> build jars will copy all other dependencys
>
> On Thu, Apr 3, 2014 at 8:52 PM, Ron Wheeler
> <[email protected]> wrote:
> > Why are you using the assembly-plugin?
> > You normally don't need it to build jars.
> >
> >
> >
> >
> > On 03/04/2014 5:24 AM, Li Li wrote:
> >>
> >> I want to jar my program with all the dependencies. I have a
> >> dependency of hadoop. the log4j.properties is included in my
> >> application.
> >> how to exclude it?
> >> I have tried this but no luck
> >>
> >> <artifactId>maven-assembly-plugin</artifactId>
> >>     <configuration>
> >>       <excludes>
> >>       <exclude>**/log4j.properties</exclude>
> >>       </excludes>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >>
> >
> >
> > --
> > Ron Wheeler
> > President
> > Artifact Software Inc
> > email: [email protected]
> > skype: ronaldmwheeler
> > phone: 866-970-2435, ext 102
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to