/home/freeism/.hudson/jobs/UI-TEST/workspace/ui-test/src/test/java/com/freeism/DataTransferObject.java:[13,11] generics are not supported in -source 1.3
(use -source 5 or higher to enable generics)
public Map<String, String> getParameters();

로컬에서는 되는데 (이클립스가 버전 정보를 명시해주니까...)

리모트(CI서버)에서는 오류가 발생한다.

위와 같이 오류가 발생하는 이유는 maven에서 사용하는 JDK 버전이 명시되어 있지 않기 때문이다.

당연히 아래와 같이 maven plugin 설정을 추가해주면 해결된다.

<build>
  <pluginManagement>
   <plugins>
    <plugin>
     <groupId>org.apache.maven.plugins</groupId>
     <artifactId>maven-compiler-plugin</artifactId>
     <configuration>
      <source>1.6</source>
      <target>1.6</target>
      <encoding>UTF-8</encoding>
      <optimize>true</optimize>
     </configuration>
    </plugin>
   </plugins>
  </pluginManagement>
 </build>


출처 : http://forum.springsource.org/showthread.php?t=24913
2011/04/05 21:34 2011/04/05 21:34

Trackback Address >> http://freeism.co.kr/tc/trackback/685 >>