Skip to content

Commit ce6e324

Browse files
committed
version 0.3.0.1 update
修改maven打包方式
1 parent 867c235 commit ce6e324

File tree

3 files changed

+32
-7
lines changed

3 files changed

+32
-7
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,7 @@
4646
<tr>
4747
<td>0.3.0.0</td><td>完成读写锁开发,通过测试确定可用</td><td>2022年1月29日</td>
4848
</tr>
49+
<tr>
50+
<td>0.3.0.1</td><td>修改maven打包方式</td><td>2022年1月29日</td>
51+
</tr>
4952
</table>

assembly.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
4+
<!-- TODO: a jarjar format would be better -->
5+
<id>jar-with-dependencies</id>
6+
<formats>
7+
<format>jar</format>
8+
</formats>
9+
<includeBaseDirectory>false</includeBaseDirectory>
10+
<dependencySets>
11+
<dependencySet>
12+
<outputDirectory>/</outputDirectory>
13+
<useProjectArtifact>true</useProjectArtifact>
14+
<unpack>true</unpack>
15+
<scope>runtime</scope>
16+
</dependencySet>
17+
<dependencySet>
18+
<outputDirectory>/</outputDirectory>
19+
<useProjectArtifact>true</useProjectArtifact>
20+
<unpack>true</unpack>
21+
<scope>system</scope>
22+
</dependencySet>
23+
</dependencySets>
24+
</assembly>

pom.xml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
</dependencies>
9393
<!--Springboot的maven插件-->
9494
<build>
95-
<finalName>${project.artifactId}</finalName>
95+
<finalName>${project.artifactId}-${project.version}</finalName>
9696
<!-- <plugins>-->
9797
<!-- <plugin>-->
9898
<!-- <groupId>org.springframework.boot</groupId>-->
@@ -117,14 +117,12 @@
117117
<plugin>
118118
<artifactId>maven-assembly-plugin</artifactId>
119119
<configuration>
120-
<appendAssemblyId>false</appendAssemblyId>
121-
<descriptorRefs>
122-
<descriptorRef>jar-with-dependencies</descriptorRef>
123-
</descriptorRefs>
120+
<descriptors>
121+
<descriptor>assembly.xml</descriptor>
122+
</descriptors>
124123
<archive>
125124
<manifest>
126-
<!-- 此处指定main方法入口的class -->
127-
<!-- <mainClass>com.xxx.Main</mainClass>-->
125+
<!-- 指定入口类 -->
128126
</manifest>
129127
</archive>
130128
</configuration>

0 commit comments

Comments
 (0)