提交 45b42649 编写于 作者: K kohsuke

enforcer rule should cover the whole core, since the remoting bulid fails on some JDK5 versions.

----------
[INFO] ----------------------------------------------------------------------------
[INFO] Building Hudson remoting layer
[INFO]    task-segment: [install]
[INFO] ----------------------------------------------------------------------------
[INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from m.g.o-public
[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for updates from m.g.o-public
[INFO] artifact org.apache.maven.plugins:maven-jar-plugin: checking for updates from m.g.o-public
[INFO] [enforcer:display-info {execution: default}]
[INFO] Maven Version: 2.0.7
[INFO] JDK Version: 1.5.0_06 normalized as: 1.5.0-6
[INFO] OS Info: Arch: amd64 Family: unix Name: linux Version: 2.6.27-11-generic
[INFO] [remote-resources:process {execution: default}]
[INFO] inceptionYear not specified, defaulting to 2009
[INFO] [resources:resources]
[WARNING] Using platform encoding (ISO-8859-1 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO] [compiler:compile]
[INFO] Compiling 46 source files to /files/hudson/workspace/hudson-cobertura/main/remoting/target/classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
/files/hudson/workspace/hudson-cobertura/main/remoting/src/main/java/hudson/remoting/Request.java:[133,16] unreported exception java.lang.Throwable; must be caught or declared to be thrown



/files/hudson/workspace/hudson-cobertura/main/remoting/src/main/java/hudson/remoting/Request.java:[133,16] unreported exception java.lang.Throwable; must be caught or declared to be thrown


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11 seconds
[INFO] Finished at: Wed Mar 25 09:42:20 PDT 2009
[INFO] Final Memory: 40M/207M
[INFO] ------------------------------------------------------------------------
Finished: FAILURE


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16536 71c3de6d-444a-0410-be80-ed276b4c234a
上级 2b7de243
......@@ -40,24 +40,6 @@ THE SOFTWARE.
<build>
<plugins>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>enforce</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>
<groupId>org.jvnet.hudson.tools</groupId>
<artifactId>maven-encoding-plugin</artifactId>
......
......@@ -139,6 +139,25 @@ THE SOFTWARE.
</configuration>
</plugin>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>enforce</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>
<groupId>org.jvnet.fix1600</groupId>
<artifactId>fix1600</artifactId>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册