PR: MPJAR-15

Submitted by: Matt Finn
Include Implementation-Vendor-Id attribute for dependencies in manifest.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@392995 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
ltheussl 2006-04-10 17:31:50 +00:00
parent 9105e58634
commit 8fa22c2db3
3 changed files with 8 additions and 1 deletions

View File

@ -126,7 +126,6 @@
<j:if test="${dep.type == 'jar' || empty(dep.type)}"> <j:if test="${dep.type == 'jar' || empty(dep.type)}">
<ant:attribute name="${dep.artifactId}-Extension-Name" value="${dep.artifactId}"/> <ant:attribute name="${dep.artifactId}-Extension-Name" value="${dep.artifactId}"/>
<ant:attribute name="${dep.artifactId}-Implementation-Version" value="${dep.version}"/> <ant:attribute name="${dep.artifactId}-Implementation-Version" value="${dep.version}"/>
<j:choose> <j:choose>
<j:when test="${empty(dep.url) || dep.url.toString().trim().length() == 0}"> <j:when test="${empty(dep.url) || dep.url.toString().trim().length() == 0}">
<ant:attribute name="${dep.artifactId}-Implementation-URL" value="http://www.ibiblio.org/maven${artifact.urlPath}"/> <ant:attribute name="${dep.artifactId}-Implementation-URL" value="http://www.ibiblio.org/maven${artifact.urlPath}"/>
@ -135,6 +134,10 @@
<ant:attribute name="${dep.artifactId}-Implementation-URL" value="${dep.url}"/> <ant:attribute name="${dep.artifactId}-Implementation-URL" value="${dep.url}"/>
</j:otherwise> </j:otherwise>
</j:choose> </j:choose>
<j:set var="depVendorId" value="${dep.properties.vendorId}"/>
<j:if test="${!empty(depVendorId) and depVendorId.toString().trim().length() != 0}">
<ant:attribute name="${dep.artifactId}-Implementation-Vendor-Id" value="${depVendorId}"/>
</j:if>
</j:if> </j:if>
</j:forEach> </j:forEach>
</j:if> </j:if>

View File

@ -25,6 +25,7 @@
</properties> </properties>
<body> <body>
<release version="1.8-SNAPSHOT" date="In SVN"> <release version="1.8-SNAPSHOT" date="In SVN">
<action dev="ltheussl" type="add" issue="MPJAR-15" due-to="Matt Finn">Include <code>Implementation-Vendor-Id</code> attribute for dependencies in manifest.</action>
<action dev="ltheussl" type="add" issue="MPJAR-39">Support specificationVersion in manifest.</action> <action dev="ltheussl" type="add" issue="MPJAR-39">Support specificationVersion in manifest.</action>
<action dev="ltheussl" type="fix"> <action dev="ltheussl" type="fix">
<description>Jar plugin generates incorrect manifest file.</description> <description>Jar plugin generates incorrect manifest file.</description>

View File

@ -90,6 +90,9 @@
<td> <td>
Tells Maven to add extension information to the jar manifest. Tells Maven to add extension information to the jar manifest.
This can cause some applications to break, so it has been disabled by default. This can cause some applications to break, so it has been disabled by default.
An <code>Implementation-Vendor-Id</code> attribute will be added
for each dependency that has a <code>&lt;vendorId&gt;</code> element
set in its <code>&lt;properties&gt;</code> section.
Set to <code>true</code> to enable extension information. Set to <code>true</code> to enable extension information.
</td> </td>
</tr> </tr>