🎨 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.target>8</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<junit.version>4.13.2</junit.version>
|
||||
<mysql.version>8.0.30</mysql.version>
|
||||
<commons-beanutils.version>1.9.4</commons-beanutils.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.13.2</version>
|
||||
<version>${junit.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
@ -30,7 +32,7 @@
|
|||
<dependency>
|
||||
<groupId>commons-beanutils</groupId>
|
||||
<artifactId>commons-beanutils</artifactId>
|
||||
<version>1.9.4</version>
|
||||
<version>${commons-beanutils.version}</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
@ -91,6 +93,23 @@
|
|||
</execution>
|
||||
</executions>
|
||||
</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>
|
||||
</build>
|
||||
|
||||
|
|
|
@ -87,6 +87,8 @@ public class DbConfig {
|
|||
|
||||
/**
|
||||
* 获取配置信息对象
|
||||
*
|
||||
* @return {@link DbConfig}
|
||||
*/
|
||||
public static DbConfig get() {
|
||||
if (dbConfig == null) {
|
||||
|
@ -94,8 +96,7 @@ public class DbConfig {
|
|||
p.getProperty("driver"),
|
||||
p.getProperty("url"),
|
||||
p.getProperty("username"),
|
||||
p.getProperty("password")
|
||||
);
|
||||
p.getProperty("password"));
|
||||
}
|
||||
return dbConfig;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user