Skip to content

Commit b530723

Browse files
committed
fix: mysql connector added to shade
1 parent 95690ae commit b530723

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

pom.xml

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,44 @@
4242
<scope>test</scope>
4343
</dependency>
4444
</dependencies>
45+
4546
<build>
4647
<plugins>
4748
<plugin>
49+
<groupId>org.apache.maven.plugins</groupId>
50+
<artifactId>maven-shade-plugin</artifactId>
51+
<version>3.1.0</version>
52+
<executions>
53+
<execution>
54+
<phase>package</phase>
55+
<goals>
56+
<goal>shade</goal>
57+
</goals>
58+
<configuration>
59+
<artifactSet>
60+
<includes>
61+
<include>mysql:mysql-connector-java</include>
62+
</includes>
63+
</artifactSet>
64+
</configuration>
65+
</execution>
66+
</executions>
67+
</plugin>
68+
<plugin>
69+
<groupId>org.apache.maven.plugins</groupId>
4870
<artifactId>maven-compiler-plugin</artifactId>
49-
<version>3.5.1</version>
5071
<configuration>
51-
<source>1.8</source>
52-
<target>1.8</target>
72+
<source>8</source>
73+
<target>8</target>
5374
</configuration>
5475
</plugin>
5576
</plugins>
77+
78+
<resources>
79+
<resource>
80+
<directory>src/main/resources</directory>
81+
<filtering>true</filtering>
82+
</resource>
83+
</resources>
5684
</build>
5785
</project>

0 commit comments

Comments
 (0)