KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I've been trying to get this to work for a while now but no luck yet. I want to run with JAVA_HOME pointing to JDK7 but I want to compile a project for JVM 5. I've read through documentation , I've found similar posts on SO, but none of them seem to work in my setup. I first tried with setting just target and source but I got an error: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> [ClassName] is not abstract and does not override abstract method getParentLogger() in CommonDataSource As far as I understood that class was updated in JDK 7 and the extra method that's throwing the error was just added. I need to use the runtime of JDK 5 that has the old implementation and everything should work fine. So I do this: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <verbose>true</verbose> <source>1.5</source> <target>1.5</target> <compilerArguments> <bootclasspath>${env.JAVA5_HOME}/jre/lib/rt.jar</bootclasspath> </compilerArguments> </configuration> </plugin> I have JAVA5_HOME set correctly on my system, I can see it loading the correct classes in the log, but I h
Tags (comma-separated)
Save Edits
Cancel