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/07/19 16:57:46 UTC

[jira] Commented: (MPWAR-21) war-plugin should be able to add manifest Class-Path Entry for dependencies

The following comment has been added to this issue:

     Author: Augustinus Deimel
    Created: Mon, 19 Jul 2004 10:57 AM
       Body:
with maven 1.0 (final) this issue is "nearly" resolved insofar
that you can add a Class-Path entry in the manifest-File now for
the dependents if you like.
One little thing is not solved:
We would like to insert a simple "/" at the beginning Class-Path.
This is not possible with the current implementation.
We have changed the war:war goal like this:

    <!-- build dependency list -->
    <j:set var="maven.war.classpath" value=""/>
    <!--EINGEBAUT-->
    <j:set var="tmobilePreClasspath" value="${tmobile.maven.war.pre.classpath}"/>
    <j:if test="${!empty(tmobilePreClasspath)}">
      <j:set var="maven.war.classpath" value="${tmobile.maven.war.pre.classpath}"/>
    </j:if>
    <!--EINGEBAUT ENDE-->
    <j:forEach var="dep" items="${pom.dependencies}">
      <j:if test="${dep.getProperty('war.manifest.classpath')=='true'}">
        <j:set var="maven.war.classpath" value="${maven.war.classpath} ${dep.artifact}"/>
      </j:if>
    </j:forEach>

---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/MPWAR-21?page=comments#action_21942

---------------------------------------------------------------------
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: Jason van Zyl
   Reporter: Augustinus Deimel

    Created: Wed, 24 Mar 2004 4:43 AM
    Updated: Mon, 19 Jul 2004 10:57 AM

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