Skip to content

Commit e708a59

Browse files
committed
将第三方的jar包打入导出jar包中
1 parent f36f243 commit e708a59

File tree

1 file changed

+14
-22
lines changed

1 file changed

+14
-22
lines changed

pom.xml

+14-22
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.github.udfs</groupId>
66
<artifactId>java-udfs-api</artifactId>
7-
<version>v1.2.2</version>
7+
<version>v1.3.2</version>
88
<packaging>jar</packaging>
99

1010
<name>java-udfs-api</name>
@@ -48,11 +48,6 @@
4848
<version>${version.hamcrest}</version>
4949
<scope>test</scope>
5050
</dependency>
51-
<!--<dependency>
52-
<groupId>one.ulord.upaas</groupId>
53-
<artifactId>ucwallet-client</artifactId>
54-
<version>1.0.5</version>
55-
</dependency>-->
5651
<dependency>
5752
<groupId>net.sf.json-lib</groupId>
5853
<artifactId>json-lib</artifactId>
@@ -93,7 +88,7 @@
9388
<artifactId>maven-surefire-plugin</artifactId>
9489
<version>2.19.1</version>
9590
</plugin>
96-
<plugin>
91+
<!--<plugin>
9792
<groupId>org.apache.maven.plugins</groupId>
9893
<artifactId>maven-jar-plugin</artifactId>
9994
<version>3.0.2</version>
@@ -104,22 +99,19 @@
10499
</manifest>
105100
</archive>
106101
</configuration>
107-
</plugin>
102+
</plugin>-->
108103
<plugin>
109-
<groupId>org.apache.maven.plugins</groupId>
110-
<artifactId>maven-dependency-plugin</artifactId>
111-
<executions>
112-
<execution>
113-
<id>copy</id>
114-
<phase>package</phase>
115-
<goals>
116-
<goal>copy-dependencies</goal>
117-
</goals>
118-
<configuration>
119-
<outputDirectory>${project.build.directory}/lib</outputDirectory>
120-
</configuration>
121-
</execution>
122-
</executions>
104+
<artifactId>maven-assembly-plugin</artifactId>
105+
<configuration>
106+
<archive>
107+
<manifest>
108+
<mainClass></mainClass>
109+
</manifest>
110+
</archive>
111+
<descriptorRefs>
112+
<descriptorRef>jar-with-dependencies</descriptorRef>
113+
</descriptorRefs>
114+
</configuration>
123115
</plugin>
124116
</plugins>
125117
</build>

0 commit comments

Comments
 (0)