Hi, Piéroni, thanks.  But unfortunately the classpath entry for the
dependency is lost from manifest.mf when you use the scope provided.
Regards,
Arthur.

Piéroni Raphaël wrote:
> 
> Hi,
> 
> use the provided scope in the war project. (this will work for the
> web-inf/lib but i dunno for the manifest.mf
> 
> Raphaël
> 
> 
> 2006/6/7, Arthur Crawford <art&[EMAIL PROTECTED]>:
>>
>> Hi,
>> Is there a way to create a war with references to dependent jars in the
>> manifest's classpath entry but NOT package them in WEB-INF/lib?.  I want
>> to do this so I can have sevaral wars referencing the same shared jars
>> in the top level of an ear.
>>
>> This is the war plugin configuration I have used to turn on manifest
>> generation.
>>
>>             <plugin>
>>                 <groupId>org.apache.maven.plugins</groupId>
>>                 <artifactId>maven-war-plugin</artifactId>
>>                 <version>2.0</version>
>>                 <configuration>
>>                     <archive>
>>                         <manifest>
>>                             <addClasspath>true</addClasspath>
>>                         </manifest>
>>                     </archive>
>>                 </configuration>
>>             </plugin>
>>
>> Then I have tried <scope>provided</scope>.  But although the jars are
>> omitted from WEB-INF/lib as I want, neither do they appear the
>> manifest.  Scope compile puts everything in the manifest but also in
>> WEB-INF/lib.  Scope runtime has the same effect as scope compile (in
>> this context).
>>
>> I have looked through all the documentation and posts I can find on this
>> but have seen no solution.  It seems like a common thing to want to do
>> when packaging shared code in wars/ears.  If it's not possible with
>> Maven out-of-the-box does anyone have any suggested fix or workaround?
>>
>> I'm using Maven version 2.0.4 - war plugin version 2.0
>>
>> Regards,
>>
>> Arthur Crawford.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

--
View this message in context: 
http://www.nabble.com/-m2--war-plugin---need-dependencies-referenced-in-manifest-but-not-in-WEB-INF-lib-t1746387.html#a4747737
Sent from the Maven - Users forum at Nabble.com.


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

Reply via email to