Hello,

I'm trying to create an H2 function/alias from TeamCity, our Continuous 
Integration server using Maven, Flyway, and h2-maven-plugin.  TeamCity has 
JDK 5, 6, and 7.  My project needs to use JDK 6. When I set up TeamCity and 
maven-compiler-plugin to use JDK6, I'm still 
getting UnsupportedClassVersionError:

...
[ERROR] Failed to execute goal org.flywaydb:flyway-maven-plugin:3.0:migrate 
(default-cli) on project ccservice-server: 
org.flywaydb.core.internal.dbsupport.FlywaySqlScriptException: Error 
executing statement at line 180: CREATE ALIAS SYS_EXTRACT_UTC AS $$
[ERROR] java.util.Date mockExtractUtc(String value) {
[ERROR] return new java.util.Date();
[ERROR] }
[ERROR] $$: General error: "java.lang.UnsupportedClassVersionError: 
org/h2/dynamic/SYS_EXTRACT_UTC : Unsupported major.minor version 51.0"; SQL 
statement:
[ERROR] CREATE ALIAS SYS_EXTRACT_UTC AS $$
[ERROR] java.util.Date mockExtractUtc(String value) {
[ERROR] return new java.util.Date();
[ERROR] }
[ERROR] $$ [50000-177]
[ERROR] -> [Help 1]
...

I saw this post:
http://stackoverflow.com/questions/11417133/how-to-specify-java-class-version-for-h2-database-user-defined-functions-and-sto

Unfortunately, I don't believe I can completely eradicate other JDK traces 
from our CI server.  Is there an update soon to have H2 use "
javax.tools.JavaCompiler" as per Thomas Mueller's comment?

Regards,
-V

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to