提交 9cb25698 编写于 作者: S stephenconnolly

While the bug in javac for JDK 1.5 exists, force people to use JDK 1.6 to compile hudson/main.

Let hudson/plugins still compile with JDK 1.5 (To allow checking that only JDK 1.5 methods have been used)
The root pom should display the current build environment (Maven version, JDK, OS etc) to help debug issues with the build.
use
MAVEN_OPTS=-Denforcer.skip=true
to turn off the enforcer rules
(See http://www.nabble.com/trunk-not-compiling-tf4540224.html)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@5048 71c3de6d-444a-0410-be80-ed276b4c234a
上级 80773e18
......@@ -32,6 +32,25 @@
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>enforce-once</goal>
</goals>
<configuration>
<rules>
<!-- There is a bug in JDK 1.5's compiler therefore need to compile with 1.6 -->
<requireJavaVersion>
<version>(1.6.0,]</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<configuration>
......@@ -59,7 +78,7 @@
<properties>
<maven.version>2.0.4</maven.version>
</properties>
<profiles>
<profile>
<id>debug</id>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册