Maven compiler plugin

Got an error like: 

ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:testCompile (default-testCompile) on project common: Fatal error compiling: invalid target release: 1.7.0_10 -> [Help 1]

[ERROR] 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

Even I have ensured the javac versions are matching.  To resolve this problem. either remove the compiler plug-in (yes, no matter it's 2.3.2 or the latest 3.0)  Or remove the source / target tag but add the compilerVersion and fork to the plug-in definition. 

猜你喜欢

转载自mangoo1.iteye.com/blog/1821080
今日推荐