开发者

Maven 3: Is it possible to build a JDBC-3 driver with Java 6?

开发者 https://www.devze.com 2023-01-29 17:27 出处:网络
I\'m writing a simple JDBC driver that should be compliant to JDBC-3 (so it can be used with Java 5 and 6). My build environment is Java 6 and I use Maven 3. I do have Java 5 installed, so I could acc

I'm writing a simple JDBC driver that should be compliant to JDBC-3 (so it can be used with Java 5 and 6). My build environment is Java 6 and I use Maven 3. I do have Java 5 installed, so I could access Java 5's rt.jar.

Is there a save way to compile Java code with Java 6's javac against Java 5's rt.jar?

Yes, I'm looki开发者_开发知识库ng for a hack here.


Did you try to configure the maven-compiler-plugin, and especially the <bootclasspath> attribute, as shown here?

0

精彩评论

暂无评论...
验证码 换一张
取 消