Hi,

I've tried to checkout Jenkins CI source code and generate an Eclipse project 
for it (see instructions in [1]). Unfortunately generated Eclipse projects 
seemed to contain errors, which I first reported as a Jenkins bug [2]. Further 
investigation revealed that even though Jenkins is build with "javac -source 
1.5 -target 1.5" parameters, they use javac from JDK6u18 or later and rely on 
animal-sniffer plug-in to ensure that their code is java5-compliant. 
Unfortunately, it seems that neither Sun's javac nor Animal Sniffer noticed the 
presence of @Override annotations on methods implementing interfaces, which is 
not allowed in Java 5 and is ok in Java 6 [3]. On the other hand, Eclipse Java 
Compiler does notice them and mark each one as error.

Long story short, I tried to modify eclipse project generation so that in the 
.settings/org.eclipse.jdt.core.prefs instead of this:
    org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
    eclipse.preferences.version=1
    org.eclipse.jdt.core.compiler.source=1.5
    org.eclipse.jdt.core.compiler.compliance=1.5
I get this (look at the compliance):
    org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
    eclipse.preferences.version=1
    org.eclipse.jdt.core.compiler.source=1.5
    org.eclipse.jdt.core.compiler.compliance=1.6
but didn't find a way to configure maven-eclipse-plugin.

Has anybody else experienced this problem? Can you suggest any ideas?

[1] https://wiki.jenkins-ci.org/display/JENKINS/Building+Jenkins
[2] https://issues.jenkins-ci.org/browse/JENKINS-14579
[3] http://stackoverflow.com/questions/8220786/java-eclipse-override-error

Kind regards,
Mikhail Kalkov

Purple Scout AB
Software Developer

Address: Ă–stra Hamngatan 31, SE- 41110 Gothenburg, Sweden
Phone:   +46 (0) 732 - 051405
E-mail:  [email protected]
Web:     www.purplescout.se

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to