Maven 1.x Jar Plugin

Per package package name invalid in manifest

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.8.1
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Windows XP, Maven 1.1 release, JDK 1.4, 1.5 and 1.6
  • Number of attachments :
    0

Description

Package versionning has been moved from the Jar level to the package level in Maven 1.1, wich is better for jar merging tools.

But the package name generated by maven is generated by the following rule:
<util:replace var="packagePath" oldChar="." newChar="/" value="${pom.package}"/>
wich does not add the final / to the package name.

Replacing

<util:replace var="packagePath" oldChar="." newChar="/" value="${pom.package}"/>
<ant:section name="${packagePath}">

With

<util:replace var="packagePath" oldChar="." newChar="/" value="${pom.package}"/>
<ant:section name="${packagePath}/">

Solves the problem.

Best regards,

Josselin Pujo

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: