Anthony,

Following is a snip from the m1 atrifact plugins plugin.jelly:

 <j:set var="version" value="${maven.application.version}" />
  <j:if test="${version.compareTo('1.1') lt 0}">
    <ant:fail>
Maven Artifact Plugin v${plugin.currentVersion} requires Maven 1.1 or above.
      To correct this installation, remove:

${maven.home}/plugins/maven-artifact-plugin-${plugin.currentVersion}.jar
      and run:
maven plugin:download -DgroupId=maven -DartifactId=maven-artifact-plugin -Dversion=1.5.2
    </ant:fail>
  </j:if>

DD

Anthony Kong wrote:
I further found out that this problem is solved in m1.1b2.

If I want to, in my custom plugin, to detect maven's version number, how can
I do that? I want to make sure the user runs a maven of version greater than
1.0.2. Anything like this as in perl?
Cheers,

AK


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to