o Give the ability to set a Main-Class attribute in the manifest
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113192 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
0a5d89bd45
commit
bd50b92f40
3 files changed
+15
-2
No files matched your search
+5
-1
@@ -173,7 +173,7 @@
|
||||
<attribute name="Created-By" value="Apache Jakarta Maven"/>
|
||||
<attribute name="Package" value="${pom.package}"/>
|
||||
<attribute name="Build-Jdk" value="${java.version}"/>
|
||||
<!-- added supplimentary entries -->
|
||||
<!-- added supplementary entries -->
|
||||
<attribute name="Extension-Name" value="${pom.artifactId}"/>
|
||||
<attribute name="Specification-Version" value="${pom.specificationVersion}"/>
|
||||
<attribute name="Specification-Vendor" value="${pom.organization.name}"/>
|
||||
@@ -181,6 +181,10 @@
|
||||
<attribute name="Implementation-Version" value="${pom.currentVersion}"/>
|
||||
<attribute name="Implementation-Vendor" value="${pom.organization.name}"/>
|
||||
<attribute name="Implementation-Vendor-Id" value="${pom.organization.identifier}"/>
|
||||
<j:set var="mainclass" value="${pom.getPluginContext('maven-java-plugin').getVariable('maven.jar.mainclass')}"/>
|
||||
<j:if test="${!empty(mainclass)}">
|
||||
<attribute name="Main-Class" value="${mainclass}"/>
|
||||
</j:if>
|
||||
</manifest>
|
||||
</jar>
|
||||
</goal>
|
||||
|
||||
Reference in new issue
Block a user