Skip to content

The Unified and Autonomous Development Platform

Add jdbc drivers for supported databases

Robin Shenfdf425ee0f11
diff --git a/pom.xml b/pom.xml
index 14399fd7e0..c90623bd43 100644
--- a/pom.xml
+++ b/pom.xml
@@ -38,7 +38,7 @@
<plugin>
<groupId>io.onedev</groupId>
<artifactId>plugin-maven</artifactId>
- <version>2.6.1</version>
+ <version>2.6.2</version>
<executions>
<execution>
<?m2e execute onConfiguration,onIncremental?>
@@ -614,8 +614,8 @@
</repository>
</repositories>
<properties>
- <commons.version>2.7.14</commons.version>
- <agent.version>1.8.7</agent.version>
+ <commons.version>2.7.15</commons.version>
+ <agent.version>1.8.8</agent.version>
<slf4j.version>1.7.36</slf4j.version>
<logback.version>1.2.11</logback.version>
<antlr.version>4.7.2</antlr.version>
diff --git a/server-plugin/server-plugin-archetype/src/main/resources/archetype-resources/pom.xml b/server-plugin/server-plugin-archetype/src/main/resources/archetype-resources/pom.xml
index f195481efa..388f2e1aa4 100644
--- a/server-plugin/server-plugin-archetype/src/main/resources/archetype-resources/pom.xml
+++ b/server-plugin/server-plugin-archetype/src/main/resources/archetype-resources/pom.xml
@@ -33,7 +33,7 @@
<plugin>
<groupId>io.onedev</groupId>
<artifactId>plugin-maven</artifactId>
- <version>2.6.1</version>
+ <version>2.6.2</version>
<executions>
<execution>
<?m2e execute onConfiguration,onIncremental?>
diff --git a/server-product/docker/build.sh b/server-product/docker/build.sh
index cd56f33f89..cc39658760 100755
--- a/server-product/docker/build.sh
+++ b/server-product/docker/build.sh
@@ -17,7 +17,6 @@ buildVersion=`ls onedev-*.zip|sed -e 's/onedev-\(.*\).zip/\1/'`
unzip onedev-$buildVersion.zip -d docker
mv docker/onedev-$buildVersion docker/app
-cp sandbox/site/lib/mysql* sandbox/site/lib/postgresql* docker/app/site/lib
docker buildx create --name $BUILDER
docker buildx use $BUILDER
diff --git a/server-product/system/conf/hibernate.properties b/server-product/system/conf/hibernate.properties
index 197f8d2845..a10aa1a5a4 100644
--- a/server-product/system/conf/hibernate.properties
+++ b/server-product/system/conf/hibernate.properties
@@ -12,13 +12,12 @@ hibernate.connection.password=
#----------------------------------------------------------------------------------
# To use MySQL database, please follow below steps:
-# 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
+# 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
# default storage engine
-# 4. Change the property "hibernate.connection.url", "hibernate.connection.username",
+# 3. 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 2
#----------------------------------------------------------------------------------
#hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
@@ -30,13 +29,12 @@ hibernate.connection.password=
#----------------------------------------------------------------------------------
# To use MariaDB database, please follow below steps:
-# 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"
+# 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"
# or "InnoDB" as the default storage engine
-# 4. Change the property "hibernate.connection.url", "hibernate.connection.username",
+# 3. 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 2
#----------------------------------------------------------------------------------
#hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
@@ -48,12 +46,11 @@ hibernate.connection.password=
#----------------------------------------------------------------------------------
# To use PostgreSQL database, please follow below steps:
-# 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",
+# 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",
# and "hibernate.connection.password" so that OneDev can connect and write to
-# the database created in step 3
+# the database created in step 2
#----------------------------------------------------------------------------------
#hibernate.dialect=io.onedev.server.persistence.PostgreSQLDialect
@@ -65,14 +62,13 @@ hibernate.connection.password=
#----------------------------------------------------------------------------------
# To use Microsoft SQL Server, please follow below steps:
-# 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
+# 1. Enable tcp/ip access to SQL Server
+# 2. Uncomment Microsoft SQL Server settings below and comment out settings for
# other databases
-# 4. Create an empty database at SQL Server side
-# 5. Change the property "hibernate.connection.url", "hibernate.connection.username",
+# 3. Create an empty database at SQL Server 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 4
+# the database created in step 3
#----------------------------------------------------------------------------------
#hibernate.dialect=org.hibernate.dialect.SQLServer2012Dialect
@@ -84,16 +80,15 @@ hibernate.connection.password=
#----------------------------------------------------------------------------------
# To use Oracle, please follow below steps:
-# 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",
+# 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",
# and "hibernate.connection.password" so that OneDev can connect and write to
-# the database created in step 3
-# 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 higher version
+# the database created in step 2
+# 4. Change property "hibernate.dialect" based on different Oracle versions:
+# 4.1 Use value "org.hibernate.dialect.Oracle9iDialect" if Oracle9i is used
+# 4.2 Use value "org.hibernate.dialect.Oracle8iDialect" if Oracle8i is used
+# 4.3 Use value "org.hibernate.dialect.Oracle10gDialect" if Oracle10g or higher version
# is used
#----------------------------------------------------------------------------------