You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/03/31 08:31:57 UTC

[jira] Closed: (MPWAR-23) Plugin doesn't allow to construct Class-Path section of manifest

Message:

   The following issue has been closed.

   Resolver: dion gillard
       Date: Wed, 31 Mar 2004 1:31 AM

Dupe of MPWAR-21
---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPWAR-23

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPWAR-23
    Summary: Plugin  doesn't allow to construct Class-Path section of manifest
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: DUPLICATE

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven-war-plugin

   Assignee: Jason van Zyl
   Reporter: Michal Szklanowski

    Created: Tue, 30 Mar 2004 4:30 AM
    Updated: Wed, 31 Mar 2004 1:31 AM

Description:
I would like to have Class-Path section of my WAR manifest pointing to dependent JARS - because my WAR is embedded in EAR and I don't want to duplicate jars by copying them into WEB-INF/lib.

I just want dependent jars to exist in root directory of EAR module so WAR can make use of them.

But it is impossible to set Class-Path for WAR.

I patched WAR plugin and inserted the following code snippet:

    <j:forEach var="dep" items="${pom.dependencies}">
      <j:if test="${dep.getProperty('war.manifest.classpath')=='true'}">
        <j:set var="maven.war.manifest.classpath" value="${maven.war.manifest.classpath} ${dep.artifact}"/>
      </j:if>
    </j:forEach>

      <ant:manifest>
        ...
        <ant:attribute name="Class-Path" value="${maven.war.manifest.classpath}"/>


So I iterate over dependencies and include in war.manifest.classpath those, who have property war.manifest.classpath set to true.

I want to make request to get rid of manual patching of WAR plugin because I think it is unlikely to be good way of solving such problems.


---------------------------------------------------------------------
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org