Re: plugin and executable jar

2016-03-01 Thread Jason van Zyl
https://github.com/brianm/really-executable-jars-maven-plugin

> On Mar 1, 2016, at 4:44 PM, Philipp Kraus  
> wrote:
> 
> Hallo,
> 
> I have created my first Maven plugin with Mojo, but I would like to create 
> also a executable Jar.
> The plugin should be run as a standalone program and also as a Maven plugin. 
> The Pom
> can be found here https://github.com/flashpixx/RRD-AntLR4/blob/master/pom.xml
> so my question is how can I create two different Jar files one with the 
> packaging jar (and
> all dependencies) and one with the packaging „maven-plugin“?
> 
> Thanks a lot 
> 
> Phil
> 
> 

Thanks,

Jason

--
Jason van Zyl
Founder, Takari and Apache Maven
http://twitter.com/jvanzyl
http://twitter.com/takari_io
-



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: plugin and executable jar

2016-03-01 Thread Manfred Moser
And


Learn about multi module projects .. this is essential Maven knowledge.


http://books.sonatype.com/mvnex-book/reference/multimodule.html

Manfred


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: plugin and executable jar

2016-03-01 Thread Philipp Kraus
Hi,

Am 01.03.2016 um 23:00 schrieb Manfred Moser :

> 1 pom that acts as parent and aggregator to tie it all together

thanks for your answer, but this is the problem how can I create the 
„aggregated pom file“

Phil
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: plugin and executable jar

2016-03-01 Thread Manfred Moser
do NOT use profiles.. therin lies madness


youssef boujallab wrote on 2016-03-01 14:06:
> You can't do it with a standard approach.
> You should use two distinct Maven projects or use profiles with two
> differents configurations ( one for executable jar and other for your
> mojo)
> Le 1 mars 2016 22:04, "Philipp Kraus"  a
> écrit :
> 
> > Hi,
> >
> > Am 01.03.2016 um 22:47 schrieb youssef boujallab <
> > youssef.boujal...@gmail.com>:
> >
> > > Did you have a look on shade plugin?
> >
> > thanks for your answer, I’m using the shade plugin at the moment, but I
> > cannot
> > create the different Jar files
> >
> > Phil
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> >
> 
>


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: plugin and executable jar

2016-03-01 Thread youssef boujallab
You can't do it with a standard approach.
You should use two distinct Maven projects or use profiles with two
differents configurations  ( one for executable jar and other for your mojo)
Le 1 mars 2016 22:04, "Philipp Kraus"  a
écrit :

> Hi,
>
> Am 01.03.2016 um 22:47 schrieb youssef boujallab <
> youssef.boujal...@gmail.com>:
>
> > Did you have a look on shade plugin?
>
> thanks for your answer, I’m using the shade plugin at the moment, but I
> cannot
> create the different Jar files
>
> Phil
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: plugin and executable jar

2016-03-01 Thread Philipp Kraus
Hi,

Am 01.03.2016 um 22:47 schrieb youssef boujallab :

> Did you have a look on shade plugin?

thanks for your answer, I’m using the shade plugin at the moment, but I cannot
create the different Jar files

Phil
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: plugin and executable jar

2016-03-01 Thread Manfred Moser
Just do this

1 jar project with the functionality

1 maven-plugin project that uses the jar and wraps it in a maven plugin

1 jar project that has the main() method wrapper and command line parser=
 or whatever for the executable

1 pom that acts as parent and aggregator to tie it all together


Manfred

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: plugin and executable jar

2016-03-01 Thread youssef boujallab
Hi,

Did you have a look on shade plugin?

Wishes
Le 1 mars 2016 21:44, "Philipp Kraus"  a
écrit :

> Hallo,
>
> I have created my first Maven plugin with Mojo, but I would like to create
> also a executable Jar.
> The plugin should be run as a standalone program and also as a Maven
> plugin. The Pom
> can be found here
> https://github.com/flashpixx/RRD-AntLR4/blob/master/pom.xml
> so my question is how can I create two different Jar files one with the
> packaging jar (and
> all dependencies) and one with the packaging „maven-plugin“?
>
> Thanks a lot
>
> Phil
>
>
>