[ http://jira.codehaus.org/browse/MPWAR-43?page=all ]
     
Stephane Nicoll resolved MPWAR-43:
----------------------------------

    Resolution: Fixed

Removed the line resetting the maven.war.classpath property to be consistent 
with other plugins.

> Directory possibility for manifest Class-Path entries
> -----------------------------------------------------
>
>          Key: MPWAR-43
>          URL: http://jira.codehaus.org/browse/MPWAR-43
>      Project: maven-war-plugin
>         Type: New Feature

>     Reporter: Pavel Jetensky
>     Assignee: Stephane Nicoll
>      Fix For: 1.6.2

>
>
> Hi. I have a problem with generating of Classpath in manifest related to this 
> bug and discussion.
> I need to use classpath starting with 'lib/' for each dependency in WAR 
> manifest file preffixes (f.e. Class-Path:  lib/CSU-DMS-0.1.jar).
> I have had similar problem with EJB, where I have solved it with preGoal:
> <preGoal name="ejb:ejb">
>  <j:forEach var="dep" items="${pom.dependencies}">
>   <j:if test="${dep.getProperty('corpus.ejb.manifest.classpath')=='true'}">
>  <j:set var="maven.ejb.classpath" scope="parent" 
> value="${maven.ejb.classpath} 
> ${dep.getProperty('corpus.manifest.folder')}${dep.artifact}"/>
>   </j:if>
>  </j:forEach>
> </preGoal>
> , but for WAR it is not possible (because of cleaning the value to "" in 
> version 1.6.1, jelly.xml, line 37):
> <j:set var="maven.war.classpath" value=""/>.
> Behaviour is in that different from ejb:plugin.
> There can see two ways that can help to solve this issue:
> ----------------------------------------------------------
> a) to remove reseting value of maven.war.classpath to "" (to achieve similar 
> behaviour as in f.e. ejb plugin)
> b) to enable Dependency property (like war.manifest.classpath.dir) that would 
> be applied before artifact name in manifest classpath entry (I would set it 
> to <war.manifest.classpath.dir>/lib</war.manifest.classpath.dir> in my POM)

-- 
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