Maven 1.x War Plugin
  1. Maven 1.x War Plugin
  2. MPWAR-43

Directory possibility for manifest Class-Path entries

    Details

    • Type: New Feature New Feature
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6.2
    • Labels:
      None
    • Number of attachments :
      0

      Description

      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)

        Activity

        Lukas Theussl made changes -
        Field Original Value New Value
        Assignee Stephane Nicoll [ sni ]
        Fix Version/s 1.6.2 [ 12001 ]
        Stéphane Nicoll made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Stéphane Nicoll made changes -
        Resolution Fixed [ 1 ]
        Status In Progress [ 3 ] Resolved [ 5 ]

          People

          • Assignee:
            Stéphane Nicoll
            Reporter:
            Pavel Jetensky
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: