-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9021738
Showing
17 changed files
with
1,609 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
HELP.md | ||
target/ | ||
!.mvn/wrapper/maven-wrapper.jar | ||
!**/src/main/**/target/ | ||
!**/src/test/**/target/ | ||
|
||
### STS ### | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
.sts4-cache | ||
|
||
### IntelliJ IDEA ### | ||
.idea | ||
*.iws | ||
*.iml | ||
*.ipr | ||
|
||
### NetBeans ### | ||
/nbproject/private/ | ||
/nbbuild/ | ||
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
build/ | ||
!**/src/main/**/build/ | ||
!**/src/test/**/build/ | ||
|
||
### VS Code ### | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
java-baseline=8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
## 1.增加dm8数据库插件 | ||
```xml | ||
<!--达梦数据库插件--> | ||
<dependency> | ||
<groupId>com.pig4cloud.plugin</groupId> | ||
<artifactId>nacos-datasource-plugin-dm8</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.dameng</groupId> | ||
<artifactId>DmJdbcDriver18</artifactId> | ||
<version>8.1.1.193</version> | ||
</dependency> | ||
``` | ||
|
||
## 2.导入 nacos dm8 数据库脚本 | ||
再达梦数据库管理工具上创建名为 `nacos` 的表空间,导入一下数据库脚本 | ||
[数据库脚本](./sql/nacos.sql) | ||
|
||
## 3.配置 nacos 数据源链接信息 | ||
```aidl | ||
db: | ||
num: 1 | ||
url: | ||
0: jdbc:dm://172.27.0.5:5236/nacos | ||
user: nacos | ||
password: nacos@123 | ||
pool: | ||
config: | ||
driver-class-name: dm.jdbc.driver.DmDriver | ||
``` | ||
|
||
|
||
## 4.执行数据库平台 | ||
```aidl | ||
spring: | ||
datasource: | ||
platform: dameng | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,270 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<parent> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-parent</artifactId> | ||
<version>2.7.6</version> | ||
<relativePath/> <!-- lookup parent from repository --> | ||
</parent> | ||
|
||
|
||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>com.pig4cloud.plugin</groupId> | ||
<artifactId>nacos-datasource-plugin-dm8</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
<name>nacos-datasource-plugin-dm8</name> | ||
<description>nacos-datasource-plugin-dm8</description> | ||
<url>https://pig4cloud.com</url> | ||
|
||
<licenses> | ||
<license> | ||
<name>The ApacheSoftware License, Version 2.0</name> | ||
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> | ||
<distribution>repo</distribution> | ||
</license> | ||
</licenses> | ||
|
||
<properties> | ||
<nacos.version>2.2.0</nacos.version> | ||
<spring.checkstyle.plugin>0.0.32</spring.checkstyle.plugin> | ||
<maven.compiler.version>3.8.1</maven.compiler.version> | ||
<maven.compiler.source>1.8</maven.compiler.source> | ||
<maven.compiler.target>1.8</maven.compiler.target> | ||
<git.commit.plugin>2.2.5</git.commit.plugin> | ||
<commons-compress>1.21</commons-compress> | ||
</properties> | ||
|
||
<developers> | ||
<developer> | ||
<name>lengleng</name> | ||
<email>[email protected]</email> | ||
</developer> | ||
</developers> | ||
|
||
<scm> | ||
<tag>master</tag> | ||
<connection>https://gitee.wang/lengleng/pig</connection> | ||
<developerConnection>https://pigx.top</developerConnection> | ||
<url>https://gitee.wang/lengleng/pig.git</url> | ||
</scm> | ||
|
||
<dependencies> | ||
|
||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.projectlombok</groupId> | ||
<artifactId>lombok</artifactId> | ||
<optional>true</optional> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.alibaba.nacos</groupId> | ||
<artifactId>nacos-datasource-plugin</artifactId> | ||
<version>${nacos.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.alibaba.nacos</groupId> | ||
<artifactId>nacos-common</artifactId> | ||
<version>${nacos.version}</version> | ||
</dependency> | ||
|
||
</dependencies> | ||
<build> | ||
<plugins> | ||
<!--代码格式插件,默认使用spring 规则--> | ||
<plugin> | ||
<groupId>io.spring.javaformat</groupId> | ||
<artifactId>spring-javaformat-maven-plugin</artifactId> | ||
<version>${spring.checkstyle.plugin}</version> | ||
</plugin> | ||
<!--代码编译指定版本插件--> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>${maven.compiler.version}</version> | ||
<configuration> | ||
<target>${maven.compiler.target}</target> | ||
<source>${maven.compiler.source}</source> | ||
<encoding>UTF-8</encoding> | ||
<skip>true</skip> | ||
</configuration> | ||
</plugin> | ||
|
||
</plugins> | ||
</build> | ||
<profiles> | ||
<profile> | ||
<id>snapshot</id> | ||
<build> | ||
<plugins> | ||
<!-- Source --> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-source-plugin</artifactId> | ||
<version>2.2.1</version> | ||
<executions> | ||
<execution> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>jar-no-fork</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<!-- Javadoc --> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
<version>3.3.2</version> | ||
<configuration> | ||
<show>private</show> | ||
<nohelp>true</nohelp> | ||
<charset>UTF-8</charset> | ||
<encoding>UTF-8</encoding> | ||
<docencoding>UTF-8</docencoding> | ||
<doclint>none</doclint> | ||
<detectJavaApiLink>false</detectJavaApiLink> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>jar</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<!-- GPG --> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-gpg-plugin</artifactId> | ||
<version>3.0.1</version> | ||
<executions> | ||
<execution> | ||
<id>sign-artifacts</id> | ||
<phase>verify</phase> | ||
<goals> | ||
<goal>sign</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<gpgArguments> | ||
<arg>--pinentry-mode</arg> | ||
<arg>loopback</arg> | ||
</gpgArguments> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.sonatype.plugins</groupId> | ||
<artifactId>nexus-staging-maven-plugin</artifactId> | ||
<version>1.6.13</version> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<serverId>sonatype</serverId> | ||
<nexusUrl>https://oss.sonatype.org/</nexusUrl> | ||
<autoReleaseAfterClose>true</autoReleaseAfterClose> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<distributionManagement> | ||
<snapshotRepository> | ||
<id>sonatype</id> | ||
<url> | ||
https://oss.sonatype.org/content/repositories/snapshots/ | ||
</url> | ||
</snapshotRepository> | ||
</distributionManagement> | ||
</profile> | ||
<profile> | ||
<id>release</id> | ||
<build> | ||
<plugins> | ||
<!-- Source --> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-source-plugin</artifactId> | ||
<version>2.2.1</version> | ||
<executions> | ||
<execution> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>jar-no-fork</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<!-- Javadoc --> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
<version>3.3.2</version> | ||
<configuration> | ||
<show>private</show> | ||
<nohelp>true</nohelp> | ||
<charset>UTF-8</charset> | ||
<encoding>UTF-8</encoding> | ||
<docencoding>UTF-8</docencoding> | ||
<doclint>none</doclint> | ||
<detectJavaApiLink>false</detectJavaApiLink> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>jar</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<!-- GPG --> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-gpg-plugin</artifactId> | ||
<version>3.0.1</version> | ||
<executions> | ||
<execution> | ||
<id>sign-artifacts</id> | ||
<phase>verify</phase> | ||
<goals> | ||
<goal>sign</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<gpgArguments> | ||
<arg>--pinentry-mode</arg> | ||
<arg>loopback</arg> | ||
</gpgArguments> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.sonatype.plugins</groupId> | ||
<artifactId>nexus-staging-maven-plugin</artifactId> | ||
<version>1.6.13</version> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<serverId>sonatype</serverId> | ||
<nexusUrl>https://oss.sonatype.org/</nexusUrl> | ||
<autoReleaseAfterClose>true</autoReleaseAfterClose> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<distributionManagement> | ||
<repository> | ||
<id>sonatype</id> | ||
<url> | ||
https://oss.sonatype.org/service/local/staging/deploy/maven2/ | ||
</url> | ||
</repository> | ||
</distributionManagement> | ||
</profile> | ||
</profiles> | ||
</project> |
Oops, something went wrong.