http://maven.apache.org/plugins/maven-war-plugin/examples/war-manifest-guide.html

Add it manually then...

-aps

On 10/27/06, eric H <[EMAIL PROTECTED]> wrote:


Hmm -- I had gotten that far -- what I need is the manifest in the WAR
file
to reference the dependencies that are listed as provided in its
class-path
-- but to NOT have
those jar files included in the lib directory of the war file (as they are
included in the
root directory of the ear file.  What I think happens is that when you
list
a dependency as provided it is ignored when generating the classpath for
the
WAR in the maven-war-plugin module.



Alexander Sack-3 wrote:
>
> Specify them as provided with addClassPath but also specify them in your
> EAR
> plugin under <javaModule> tags.  That should put them in the EAR.
>
> -aps
>
> On 10/27/06, eric H <[EMAIL PROTECTED]> wrote:
>>
>>
>> I have an ear file -whcih includes at the baselevel all the libraries
>> neede
>> for the Application.  There are several war modules which need to have
a
>> class-path set in the manifest but I would rather NOT have to include
all
>> the libraries in the war files.  I could do this several ways with ant
>> but
>> I
>> would really rather not ... Is there a way to configure maven to do
this
>> --
>> if I set the dependency to provided the addClasspath setting in the
>> archiver
>> does not include the element in the classpaht.  If I set the dependency
>> to
>> runtime then it is included in the manifest but the library is included
>> in
>> the war.
>> --
>> View this message in context:
>> http://www.nabble.com/Classpath-Generation-tf2523810.html#a7039856
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> "What lies behind us and what lies in front of us is of little concern
to
> what lies within us." -Ralph Waldo Emerson
>
>

--
View this message in context:
http://www.nabble.com/Classpath-Generation-tf2523810.html#a7040725
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
"What lies behind us and what lies in front of us is of little concern to
what lies within us." -Ralph Waldo Emerson

Reply via email to