You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Russell Gold <ru...@gold-family.us> on 2013/06/04 20:11:21 UTC
create manifest with jars in multiple directories?
If I enable manifest class path creation, the jar or assembly or shade plugin will create a manifest class path that lists all of my dependencies in the same directory. But what if I need them in different directories? Our current requirements place certain jars in specific directories so that layered products can find them - something I doubt that I could get changed. How could I have Maven take that into consideration?
-----------------
Come read my webnovel, Take a Lemon <http://www.takealemon.com>,
and listen to the Misfile radio play <http://www.gold-family.us/audio/misfile.html>!
Re: create manifest with jars in multiple directories?
Posted by Robert Scholte <rf...@apache.org>.
See http://maven.apache.org/shared/maven-archiver/ and
http://maven.apache.org/shared/maven-archiver/examples/manifestEntries.html
I'm not sure if it'll work <Class-Path>...</Class-Path> but it's worth
trying
Robert
Op Thu, 06 Jun 2013 00:05:11 +0200 schreef Russell Gold
<ru...@oracle.com>:
> If use the maven-shade-plugin, is the generated jar directly usable in
> other builds using the dependency mechanism? I had assumed otherwise.
>
> Specifying the complete class path is a reasonable option for me, but is
> there a way to do that without specifying the entire manifest?
>
> Thanks,
> Russ
>
> On Jun 4, 2013, at 2:51 PM, Robert Scholte <rf...@apache.org> wrote:
>
>> How do you decide which artifacts go into which folder?
>> If this is done by hand, then there's your answer: specify the complete
>> classpath yourself.
>> Otherwise I'd suggest to write a custom ManifestResourceTransformer for
>> the maven-shade-plugin.
>>
>> Robert
>>
>>
>> Op Tue, 04 Jun 2013 20:11:21 +0200 schreef Russell Gold
>> <ru...@gold-family.us>:
>>
>>> If I enable manifest class path creation, the jar or assembly or shade
>>> plugin will create a manifest class path that lists all of my
>>> dependencies in the same directory. But what if I need them in
>>> different directories? Our current requirements place certain jars in
>>> specific directories so that layered products can find them -
>>> something I doubt that I could get changed. How could I have Maven
>>> take that into consideration?
>>> -----------------
>>> Come read my webnovel, Take a Lemon <http://www.takealemon.com>,
>>> and listen to the Misfile radio play
>>> <http://www.gold-family.us/audio/misfile.html>!
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: create manifest with jars in multiple directories?
Posted by Russell Gold <ru...@oracle.com>.
If use the maven-shade-plugin, is the generated jar directly usable in other builds using the dependency mechanism? I had assumed otherwise.
Specifying the complete class path is a reasonable option for me, but is there a way to do that without specifying the entire manifest?
Thanks,
Russ
On Jun 4, 2013, at 2:51 PM, Robert Scholte <rf...@apache.org> wrote:
> How do you decide which artifacts go into which folder?
> If this is done by hand, then there's your answer: specify the complete classpath yourself.
> Otherwise I'd suggest to write a custom ManifestResourceTransformer for the maven-shade-plugin.
>
> Robert
>
>
> Op Tue, 04 Jun 2013 20:11:21 +0200 schreef Russell Gold <ru...@gold-family.us>:
>
>> If I enable manifest class path creation, the jar or assembly or shade plugin will create a manifest class path that lists all of my dependencies in the same directory. But what if I need them in different directories? Our current requirements place certain jars in specific directories so that layered products can find them - something I doubt that I could get changed. How could I have Maven take that into consideration?
>> -----------------
>> Come read my webnovel, Take a Lemon <http://www.takealemon.com>,
>> and listen to the Misfile radio play <http://www.gold-family.us/audio/misfile.html>!
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: create manifest with jars in multiple directories?
Posted by Robert Scholte <rf...@apache.org>.
How do you decide which artifacts go into which folder?
If this is done by hand, then there's your answer: specify the complete
classpath yourself.
Otherwise I'd suggest to write a custom ManifestResourceTransformer for
the maven-shade-plugin.
Robert
Op Tue, 04 Jun 2013 20:11:21 +0200 schreef Russell Gold
<ru...@gold-family.us>:
> If I enable manifest class path creation, the jar or assembly or shade
> plugin will create a manifest class path that lists all of my
> dependencies in the same directory. But what if I need them in different
> directories? Our current requirements place certain jars in specific
> directories so that layered products can find them - something I doubt
> that I could get changed. How could I have Maven take that into
> consideration?
> -----------------
> Come read my webnovel, Take a Lemon <http://www.takealemon.com>,
> and listen to the Misfile radio play
> <http://www.gold-family.us/audio/misfile.html>!
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org