[ 
http://jira.codehaus.org/browse/MNG-2864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_112425
 ] 

Stephane Nicoll commented on MNG-2864:
--------------------------------------

I agree this is clearly a hack that should be addressed. Not sure that we need 
yet another scope for that. 

It could be an explicit configuration of the war plugin.

> Optional is not transitive
> --------------------------
>
>                 Key: MNG-2864
>                 URL: http://jira.codehaus.org/browse/MNG-2864
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Dependencies
>            Reporter: Bernhard Mähr
>            Priority: Minor
>             Fix For: Reviewed Pending Version Assignment
>
>
> Hello!
> I have this situation:
> WAR
>   |----- compile/optional----> POM ---- compile ---> JAR1
>   |----- compile/optional----> JAR2
> If I build WAR I get a war-file with the Manifest entries JAR1 and JAR2  and 
> the file JAR1 in WEB-INF\lib.
> I would expect a war-file with the Manifest entries JAR1 and JAR2  and no 
> WEB-INF\lib.
> It seams to me that  JAR1 is included because the second dependency is 
> without optional and the optional from the frist dependency is not transitive 
> to the second dependency. 
> Generally I think it is a hack  to use the combination compile/optional to 
> decide a lib should be included in Manifest but not in the lib dir. I think 
> the should be an additional  scope betwen compile and provided for this 
> purpose.
> Bernhard Mähr 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to