Skip to content

Commit

Permalink
feat: 将mind fusion本地jar包添加到maven中
Browse files Browse the repository at this point in the history
  • Loading branch information
yagol2020 committed Nov 22, 2021
1 parent 55940bf commit f8f6a92
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
23 changes: 23 additions & 0 deletions assembly.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<assembly>
<id>jar-with-dependencies</id>
<formats>
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
<!-- 默认的配置 -->
<dependencySet>
<outputDirectory>/</outputDirectory>
<useProjectArtifact>true</useProjectArtifact>
<unpack>true</unpack>
<scope>runtime</scope>
</dependencySet>
<!-- 增加scope类型为system的配置 -->
<dependencySet>
<outputDirectory>/</outputDirectory>
<useProjectArtifact>true</useProjectArtifact>
<unpack>true</unpack>
<scope>system</scope>
</dependencySet>
</dependencySets>
</assembly>
9 changes: 5 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@
<mainClass>gui.view.MainGui</mainClass>
</manifest>
</archive>
<descriptorRefs>
<!-- 这个jar-with-dependencies是assembly预先写好的一个,组装描述引用 -->
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<!--工程名-->
<finalName>${project.name}</finalName>
<!-- assembly.xml文件路径 -->
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
Expand All @@ -168,6 +168,7 @@
<goals>
<goal>single</goal>
</goals>

</execution>
</executions>
</plugin>
Expand Down

0 comments on commit f8f6a92

Please sign in to comment.