当前位置:网站首页>Assembly packaging
Assembly packaging
2022-07-28 06:02:00 【King_ Kwin】
pom file
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
<configuration>
<archive>
<manifest>
<!-- Appoint main entrance -->
<mainClass>com.**.**Application</mainClass>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
</manifest>
<manifestEntries>
<Class-Path>./</Class-Path>
</manifestEntries>
</archive>
<excludes>
<!-- <exclude>assembly/**</exclude>-->
<exclude>bootstrap/**</exclude>
<exclude>assembly/**</exclude>
<exclude>*.yml</exclude>
<exclude>watchdog/**</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.5.5</version>
<configuration>
<finalName>projectName</finalName>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>src/main/resources/assembly/assembly.xml</descriptor>
</descriptors>
<!-- packaged jar The output directory -->
<outputDirectory>./output</outputDirectory>
<!-- need main Method executable jar, Please add the following code -->
<!-- <archive>
<manifest>
<!– Load the main running classes –>
<mainClass>MainApplication</mainClass>
<!– Specify project or not classpath Dependence under –>
<addClasspath>true</addClasspath>
<!– Declare prefix when specifying dependency –>
<classpathPrefix>./</classpathPrefix>
</manifest>
</archive>-->
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
</plugins>
</build>Assembly.xml
<assembly>
<id>***</id>
<formats>
<!-- Support zip,tar,tar.gz,tar.bz2,jar,dir,war etc. -->
<!-- <format>tar.gz</format>-->
<format>zip</format>
<!-- <format>dir</format>-->
</formats>
<includeBaseDirectory>true</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>src/main/resources/bin</directory>
<outputDirectory>bin</outputDirectory>
<!-- Represents a resource file containing the following format -->
<includes>
<include>*.sh</include>
</includes>
<fileMode>0755</fileMode>
</fileSet>
<fileSet>
<directory>src/main/resources</directory>
<outputDirectory>../</outputDirectory>
<!-- Represents a resource file containing the following format -->
<includes>
<include>*.xml</include>
<include>*.yml</include>
</includes>
<fileMode>0500</fileMode>
</fileSet>
<fileSet>
<directory>src/main/resources/mapper</directory>
<outputDirectory>mapper</outputDirectory>
<fileMode>0644</fileMode>
</fileSet>
<fileSet>
<directory>${project.build.directory}</directory>
<outputDirectory>../</outputDirectory>
<includes>
<include>*.jar</include>
</includes>
</fileSet>
<fileSet>
<directory>src/main/resources/watchdog</directory>
<outputDirectory>watchdog</outputDirectory>
<fileMode>0700</fileMode>
</fileSet>
</fileSets>
<dependencySets>
<dependencySet>
<useProjectArtifact>false</useProjectArtifact>
<outputDirectory>lib</outputDirectory>
<scope>runtime</scope>
</dependencySet>
</dependencySets>
</assembly>边栏推荐
- ES6 --- deconstruction assignment
- (php毕业设计)基于php小说网站管理系统获取
- MarsNFT :个人如何发行数字藏品?
- 接口防重复提交
- 记录下在线扩容服务器遇到的问题 NOCHANGE: partition 1 is size 419428319. it cannot be grown
- Apache Log4j任意代码执行复现
- 数字藏品“大乱斗”,千亿市场变局将至?
- Sales notice: on July 22, the "great heat" will be sold, and the [traditional national wind 24 solar terms] will be sold in summer.
- Spark中的Structured Streaming
- 幂等性组件
猜你喜欢
随机推荐
发售预告:7月22日“大暑”发售,【传统国风廿四节气】夏季发售完毕。
Single line function, aggregate function after class exercise
南京邮电大学CTF题目writeup (一) 含题目地址
CMD and NPM basic commands
CertPathValidatorException:validity check failed
Sales notice: on July 22, the "great heat" will be sold, and the [traditional national wind 24 solar terms] will be sold in summer.
预告来袭:【豆冰冰】发.售,现.金.抽.奖等你来拿
MySQL select statement query; Operator after class practice
Related concepts and operations of DOM model
常见WAF拦截页面总结
[interview question] anti shake and throttling
Chapter 8 aggregate function
MarsNFT :个人如何发行数字藏品?
tcp和udp的区别和联系
Installation and use of flinkx
The difference between null and undefined
登录时密码错误次数过多,对该用户进行封禁,
Xshell suddenly failed to connect to the virtual machine
基于php心理健康服务系统获取(php毕业设计)
No module named yum









