You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Aldrin Leal <al...@leal.eng.br> on 2012/05/09 09:29:03 UTC
[ANN] Rate my Mojo, part II: Launchify
Folks,
I just published yesterday the sources for Launchify on
bitbucket<https://bitbucket.org/ingenieux/launchify>.
While still rushing to writing the docs (not really) and delivering in
central (not really as well),
I think its worth of general scrutiny and discussion. It works this way:
- You include a dependency in 'provided' scope, as it contains a
class-level annotation which will not mess with reflection and stuff (see
my example pom<https://bitbucket.org/ingenieux/launchify/src/db18abf6ca83/launchify-example/pom.xml>
)
- You pick any class you want to turn into an executable, and place the
annotation e.g. @LaunchifyAs("hello") on it (like this
one<https://bitbucket.org/ingenieux/launchify/src/db18abf6ca83/launchify-example/src/main/java/br/com/ingenieux/launchify/App.java>
)
- You run launchify (currently, mvn
br.com.ingenieux.launchify:launchify-maven-plugin:0.0.1-SNAPSHOT:create-local-stubs),
and make sure you have launch4j <http://launch4j.sourceforge.net/> in
your PATH somewhere
Launchify will create descriptors and invoke launch4j, creating binary
stubs into target/test-classes. The vision being: To be simple and enable
quick delivery of small apps for local usage, not for distribution like
some other plugins...
Those files generated, you can simply move and install anywhere else, and
there is a service interface: Launch4j is a prime example, but I envisioned
that others could write plugins for launchify to switch to a different SPI.
Like, Init Scripts / Upstart Jobs and Windows Services, for example. On the
other way, the generated descriptors keep all the references. Modified a
class in your project? Run again, it will reflect.
So, if you want to create easily CLI versions of your favorite tools to use
locally, and not wanting to mess with writing .sh/.bat/.cmd/whatever files,
give it a look. I'm looking for testers :)
Thank you
--
-- Aldrin Leal, <al...@leal.eng.br> / http://meadiciona.com/aldrinleal
Re: [ANN] Rate my Mojo, part II: Launchify
Posted by Aldrin Leal <al...@leal.eng.br>.
I wanted something simpler, a no-brainer. Appassembler is surely a best
solution for most needs, but I wanted a very specific case: Making
executables without using your brain :)
--
-- Aldrin Leal, <al...@leal.eng.br> / http://meadiciona.com/aldrinleal
On Wed, May 9, 2012 at 5:40 PM, Karl Heinz Marbaise <kh...@gmx.de>wrote:
> Hi,
>
> as i read you announce i was remembered that there was in issue
> http://jira.codehaus.org/**browse/MAPPASM-106<http://jira.codehaus.org/browse/MAPPASM-106>for longer time in the jira of appassembler-maven-plugin to support
> launch4j...
>
> http://mojo.codehaus.org/**appassembler/appassembler-**maven-plugin/<http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/>
>
>
> Those files generated, you can simply move and install anywhere else, and
>> there is a service interface: Launch4j is a prime example, but I
>> envisioned
>> that others could write plugins for launchify to switch to a different
>> SPI.
>> Like, Init Scripts / Upstart Jobs and Windows Services, for example. On
>> the
>> other way, the generated descriptors keep all the references. Modified a
>> class in your project? Run again, it will reflect.
>>
>> So, if you want to create easily CLI versions of your favorite tools to
>> use
>> locally, and not wanting to mess with writing .sh/.bat/.cmd/whatever
>> files,
>>
>
> What do you think to support launch4j with appassembler-maven-plugin ?
>
> Kind regards
> Karl-Heinz Marbaise
> --
> SoftwareEntwicklung Beratung Schulung Tel.: +49 (0) 2405 / 415 893
> Dipl.Ing.(FH) Karl-Heinz Marbaise ICQ#: 135949029
> Hauptstrasse 177 USt.IdNr: DE191347579
> 52146 Würselen http://www.soebes.de
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@maven.**apache.org<us...@maven.apache.org>
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: [ANN] Rate my Mojo, part II: Launchify
Posted by Karl Heinz Marbaise <kh...@gmx.de>.
Hi,
as i read you announce i was remembered that there was in issue
http://jira.codehaus.org/browse/MAPPASM-106 for longer time in the jira
of appassembler-maven-plugin to support launch4j...
http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/
> Those files generated, you can simply move and install anywhere else, and
> there is a service interface: Launch4j is a prime example, but I envisioned
> that others could write plugins for launchify to switch to a different SPI.
> Like, Init Scripts / Upstart Jobs and Windows Services, for example. On the
> other way, the generated descriptors keep all the references. Modified a
> class in your project? Run again, it will reflect.
>
> So, if you want to create easily CLI versions of your favorite tools to use
> locally, and not wanting to mess with writing .sh/.bat/.cmd/whatever files,
What do you think to support launch4j with appassembler-maven-plugin ?
Kind regards
Karl-Heinz Marbaise
--
SoftwareEntwicklung Beratung Schulung Tel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl-Heinz Marbaise ICQ#: 135949029
Hauptstrasse 177 USt.IdNr: DE191347579
52146 Würselen http://www.soebes.de
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org