|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
java 1.6 to run sonar maven plugin?I tried to run sonar maven plugin with a jdk 1.5 but it doesn't work. I switch to a jdk 1.6 and it works flawlessly. Is there a requirement to use a jdk 1.6? Huu-Dong Quach Save up to 84% on Windows 7 until Jan 3-eligible CDN College or University students only. Hurry-buy it now for $39.99! |
|
|
Re: java 1.6 to run sonar maven plugin?Hello Huu-Dong,
Nop there is not. What was the error message ? Olivier On Thu, Oct 22, 2009 at 8:08 PM, Huu-Dong Quach <hdquach_list@...> wrote:
|
|
|
|
|
|
Re: java 1.6 to run sonar maven plugin?Hi Huu-Dong,
Could you confirm that you can launch "mvn test" without any issue on this projet with JDK 1.5 ? thanks Freddy On Fri, Oct 23, 2009 at 3:33 PM, Huu-Dong Quach <hdquach_list@...> wrote:
|
|
|
|
|
|
Re: java 1.6 to run sonar maven plugin?Hi Huu-Dong,
In order to know which class has been compiled with a java 1.6 target and generate the java.lang.UnsupportedClassVersionError error, could you try to replace in your Maven local repository the picocontainer library version 2.8.2.1 by the following updated archive : http://jira.codehaus.org/secure/attachment/45050/picocontainer-2.8.2.1-sonar.jar Relaunch a quality analysis with the Maven "-e" option and we should get the desired information. Thanks for your help Freddy On Fri, Oct 23, 2009 at 10:39 PM, Huu-Dong Quach <hdquach_list@...> wrote:
|
|
|
|
|
|
Re: java 1.6 to run sonar maven plugin?Hi Dong, Looks like the problem comes from the JDBC driver. Which JDBC driver are you using and do you know if this JDBC driver is compatible with java 5 ? Thanks for your help Freddy Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) .... at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at org.sonar.api.database.DriverDatabaseConnector.getConnection(DriverDatabaseConnector.java:54)
On Thu, Oct 29, 2009 at 12:47 PM, Huu-Dong Quach <hdquach_list@...> wrote:
|
| Free embeddable forum powered by Nabble | Forum Help |