The Unified and Autonomous Development Platform
Do not ship various jdbc drivers in order not to conflict with user installed drivers
Robin Shenf455acaf3240
diff --git a/core/pom.xml b/core/pom.xmlindex 89d742c76e..18eb5f8692 100644--- a/core/pom.xml+++ b/core/pom.xml@@ -337,21 +337,6 @@<artifactId>h2</artifactId><version>1.4.197</version></dependency>- <dependency>- <groupId>org.postgresql</groupId>- <artifactId>postgresql</artifactId>- <version>42.2.5</version>- </dependency>- <dependency>- <groupId>mysql-connector-java</groupId>- <artifactId>mysql-connector-java</artifactId>- <version>8.0.12</version>- </dependency>- <dependency>- <groupId>org.mariadb.jdbc</groupId>- <artifactId>mariadb-java-client</artifactId>- <version>2.3.0</version>- </dependency><dependency><groupId>org.dom4j</groupId><artifactId>dom4j</artifactId>diff --git a/product/system/conf/hibernate.properties b/product/system/conf/hibernate.propertiesindex 4dfd5dee4d..4dbf307a84 100644--- a/product/system/conf/hibernate.properties+++ b/product/system/conf/hibernate.properties@@ -12,29 +12,31 @@ hibernate.connection.password=#----------------------------------------------------------------------------------# To use MySQL database, please follow below steps:-# 1. Uncomment MySQL settings below and comment out settings for other databases-# 2. Create an empty OneDev schema at MySQL side, and make sure to use "InnoDB" as+# 1. Download MySQL jdbc driver and put into directory "site/lib"+# 2. Uncomment MySQL settings below and comment out settings for other databases+# 3. Create an empty OneDev schema at MySQL side, and make sure to use "InnoDB" as# default storage engine-# 3. Change the property "hibernate.connection.url", "hibernate.connection.username",+# 4. Change the property "hibernate.connection.url", "hibernate.connection.username",# and "hibernate.connection.password" so that OneDev can connect and write to-# the database created in step 2+# the database created in step 3#----------------------------------------------------------------------------------#hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect#hibernate.connection.driver_class=com.mysql.cj.jdbc.Driver-#hibernate.connection.url=jdbc:mysql://localhost:3306/onedev?serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false&disableMariaDbDriver+#hibernate.connection.url=jdbc:mysql://localhost:3306/onedev?serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false&disableMariaDbDriver=true#hibernate.connection.username=root#hibernate.connection.password=root#----------------------------------------------------------------------------------# To use MariaDB database, please follow below steps:-# 1. Uncomment MariaDB settings below and comment out settings for other databases-# 2. Create an empty OneDev schema at MariaDB side, and make sure to use "XtraDB"+# 1. Download MariaDB jdbc driver and put into directory "site/lib"+# 2. Uncomment MariaDB settings below and comment out settings for other databases+# 3. Create an empty OneDev schema at MariaDB side, and make sure to use "XtraDB"# or "InnoDB" as the default storage engine-# 3. Change the property "hibernate.connection.url", "hibernate.connection.username",+# 4. Change the property "hibernate.connection.url", "hibernate.connection.username",# and "hibernate.connection.password" so that OneDev can connect and write to-# the database created in step 2+# the database created in step 3#----------------------------------------------------------------------------------#hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect@@ -46,11 +48,12 @@ hibernate.connection.password=#----------------------------------------------------------------------------------# To use PostgreSQL database, please follow below steps:-# 1. Uncomment PostgreSQL settings below and comment out settings for other databases-# 2. Create an empty OneDev database at PostgreSQL side-# 3. Change the property "hibernate.connection.url", "hibernate.connection.username",+# 1. Download PostgreSQL jdbc driver and put into directory "site/lib"+# 2. Uncomment PostgreSQL settings below and comment out settings for other databases+# 3. Create an empty OneDev database at PostgreSQL side+# 4. Change the property "hibernate.connection.url", "hibernate.connection.username",# and "hibernate.connection.password" so that OneDev can connect and write to-# the database created in step 2+# the database created in step 3#----------------------------------------------------------------------------------#hibernate.dialect=io.onedev.server.persistence.PostgreSQLDialect@@ -62,13 +65,14 @@ hibernate.connection.password=#----------------------------------------------------------------------------------# To use Microsoft SQL Server, please follow below steps:-# 1. Enable tcp/ip access to SQL Server-# 2. Uncomment Microsoft SQL Server settings below and comment out settings for+# 1. Download SQL Server jdbc driver and put into "site/lib"+# 2. Enable tcp/ip access to SQL Server+# 3. Uncomment Microsoft SQL Server settings below and comment out settings for# other databases-# 3. Create an empty database at SQL Server side-# 4. Change the property "hibernate.connection.url", "hibernate.connection.username",+# 4. Create an empty database at SQL Server side+# 5. Change the property "hibernate.connection.url", "hibernate.connection.username",# and "hibernate.connection.password" so that OneDev can connect and write to-# the database created in step 3+# the database created in step 4#----------------------------------------------------------------------------------#hibernate.dialect=org.hibernate.dialect.SQLServer2012Dialect@@ -80,16 +84,17 @@ hibernate.connection.password=#----------------------------------------------------------------------------------# To use Oracle, please follow below steps:-# 1. Uncomment Oracle settings below and comment out settings for other databases-# 2. Create an empty Oracle database-# 3. Change the property "hibernate.connection.url", "hibernate.connection.username",+# 1. Download Oracle jdbc driver and put into "site/lib"+# 2. Uncomment Oracle settings below and comment out settings for other databases+# 3. Create an empty Oracle database+# 4. Change the property "hibernate.connection.url", "hibernate.connection.username",# and "hibernate.connection.password" so that OneDev can connect and write to# the database created in step 3-# 4. Change property "hibernate.dialect" based on different Oracle versions:+# 5. Change property "hibernate.dialect" based on different Oracle versions:# 5.1 Use value "org.hibernate.dialect.Oracle9iDialect" if Oracle9i is used# 5.2 Use value "org.hibernate.dialect.Oracle8iDialect" if Oracle8i is used-# 5.3 Use value "org.hibernate.dialect.Oracle10gDialect" if Oracle10g or 11g is-# used+# 5.3 Use value "org.hibernate.dialect.Oracle10gDialect" if Oracle10g or higher version+# is used#----------------------------------------------------------------------------------#hibernate.dialect=org.hibernate.dialect.Oracle10gDialectdiff --git a/product/system/site/lib/mariadb-java-client-2.3.0.jar b/product/system/site/lib/mariadb-java-client-2.3.0.jarnew file mode 100644index 0000000000..cbfa673976Binary files /dev/null and b/product/system/site/lib/mariadb-java-client-2.3.0.jar differdiff --git a/product/system/site/lib/mysql-connector-java-8.0.12.jar b/product/system/site/lib/mysql-connector-java-8.0.12.jarnew file mode 100644index 0000000000..87404ca229Binary files /dev/null and b/product/system/site/lib/mysql-connector-java-8.0.12.jar differdiff --git a/product/system/lib/ojdbc6.jar b/product/system/site/lib/ojdbc6.jarsimilarity index 100%rename from product/system/lib/ojdbc6.jarrename to product/system/site/lib/ojdbc6.jardiff --git a/product/system/site/lib/postgresql-42.2.5.jar b/product/system/site/lib/postgresql-42.2.5.jarnew file mode 100644index 0000000000..d89d4331a4Binary files /dev/null and b/product/system/site/lib/postgresql-42.2.5.jar differdiff --git a/product/system/lib/sqljdbc4.jar b/product/system/site/lib/sqljdbc4.jarsimilarity index 100%rename from product/system/lib/sqljdbc4.jarrename to product/system/site/lib/sqljdbc4.jar