Hi,
If I have the following config, which I think it should restrict JDK1.5 or
higher:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.0-alpha-2</version>
<executions>
<execution>
<goals>
<goal>enforce-once</goal>
</goals>
<configuration>
<rules>
<requireJavaVersion>
<!-- minimum version is 1.4.2, Java 5
and higher not allowed -->
<version>[1.5.0)</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
But this failed on my MacOSX, which has jdk 6:
$ java -version
java version "1.6.0_01-dp"
Java(TM) SE Runtime Environment (build 1.6.0_01-dp-b06-101)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_01-41-release, mixed mode)
I think the actual jdk version label is 1.6.0-1 and thus failed because of
the dash? So is this consider a bug for the plugin?
Thanks,
-Z
--
Sweet - a Scala web framework:
http://code.google.com/p/sweetscala