Test if pom.currentVersion exists in POM before the jar generation
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114936 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3dcad04399
commit
1ab61fcd0e
@ -37,6 +37,12 @@
|
||||
description="Create the deliverable jar file."
|
||||
prereqs="test:test">
|
||||
|
||||
<j:choose>
|
||||
<j:when test="${pom.currentVersion == null}">
|
||||
<ant:fail>You must define currentVersion in your POM.</ant:fail>
|
||||
</j:when>
|
||||
</j:choose>
|
||||
|
||||
<ant:available property="maven.jar.manifest.available"
|
||||
file="${maven.jar.manifest}"/>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user