🎨 add shade plugin
This commit is contained in:
parent
2e14a7035f
commit
e7a57fe9b6
23
pom.xml
23
pom.xml
|
@ -11,14 +11,16 @@
|
||||||
<maven.compiler.source>8</maven.compiler.source>
|
<maven.compiler.source>8</maven.compiler.source>
|
||||||
<maven.compiler.target>8</maven.compiler.target>
|
<maven.compiler.target>8</maven.compiler.target>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<junit.version>4.13.2</junit.version>
|
||||||
<mysql.version>8.0.30</mysql.version>
|
<mysql.version>8.0.30</mysql.version>
|
||||||
|
<commons-beanutils.version>1.9.4</commons-beanutils.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
<artifactId>junit</artifactId>
|
<artifactId>junit</artifactId>
|
||||||
<version>4.13.2</version>
|
<version>${junit.version}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -30,7 +32,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>commons-beanutils</groupId>
|
<groupId>commons-beanutils</groupId>
|
||||||
<artifactId>commons-beanutils</artifactId>
|
<artifactId>commons-beanutils</artifactId>
|
||||||
<version>1.9.4</version>
|
<version>${commons-beanutils.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
@ -91,6 +93,23 @@
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-shade-plugin</artifactId>
|
||||||
|
<version>3.2.4</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>shade</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<createDependencyReducedPom>false</createDependencyReducedPom>
|
||||||
|
<finalName>${project.artifactId}-full</finalName>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
|
|
@ -87,6 +87,8 @@ public class DbConfig {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取配置信息对象
|
* 获取配置信息对象
|
||||||
|
*
|
||||||
|
* @return {@link DbConfig}
|
||||||
*/
|
*/
|
||||||
public static DbConfig get() {
|
public static DbConfig get() {
|
||||||
if (dbConfig == null) {
|
if (dbConfig == null) {
|
||||||
|
@ -94,8 +96,7 @@ public class DbConfig {
|
||||||
p.getProperty("driver"),
|
p.getProperty("driver"),
|
||||||
p.getProperty("url"),
|
p.getProperty("url"),
|
||||||
p.getProperty("username"),
|
p.getProperty("username"),
|
||||||
p.getProperty("password")
|
p.getProperty("password"));
|
||||||
);
|
|
||||||
}
|
}
|
||||||
return dbConfig;
|
return dbConfig;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user