The following comment has been added to this issue:

     Author: Patrick Burleson
    Created: Tue, 1 Feb 2005 6:26 PM
       Body:
I've notice that the war plugin does honor the war.manifest.classpath which is 
cool. The only problem I'm seeing is every time I build a war, another 
Class-path: entry gets added to the MANIFEST.MF file. So after 4 builds, I have 
4 Class-path: lines. For whatever reason, the EJB plugin doesn't have this 
problem. I thought it was the update="true" parameter to the ant:jar task, but 
removing that doesn't seem to fix it. 
---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/MPWAR-21?page=comments#action_29488

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MPWAR-21

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPWAR-21
    Summary: war-plugin should be able to add manifest Class-Path Entry for 
dependencies
       Type: Improvement

     Status: Open
   Priority: Trivial

 Original Estimate: 1 hour
 Time Spent: Unknown
  Remaining: 1 hour

    Project: maven-war-plugin

   Assignee: Felipe Leme
   Reporter: Augustinus Deimel

    Created: Wed, 24 Mar 2004 4:43 AM
    Updated: Tue, 1 Feb 2005 6:26 PM

Description:
In the ejb-plugin we have the possibility to set the manifest Class-Path - 
Entry. The war-plugin should be able to do this accordingly.
It should be possible to set the Class-Path-Entry WITHOUT bundling the 
dependencies.
Generally it would be a good idea to centralize the manifest-Building somehow; 
currently manifest-buildung is done in different ways in 
jar, war, ear - plugins
My simplified change of war:war is
"
    <j:forEach var="dep" items="${pom.dependencies}">
      <j:if test="${dep.getProperty('tmobile.war.manifest.classpath')=='true'}">
        <j:set var="tmobile.maven.war.classpath" 
value="${tmobile.maven.war.classpath} ${dep.artifact}"/>
      </j:if>
    </j:forEach>
"
AND
          <ant:attribute name="Class-Path" 
value="${tmobile.maven.war.classpath}"/>



---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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

Reply via email to