maven打包配置
2023-09-27 14:23:13 时间
打jar包:
<build> <resources> <resource> <directory>src/main/resources</directory> <includes> <include>*.xml</include> </includes> </resource> </resources> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.5.1</version> <configuration> <srouce>1.8</srouce> <target>1.8</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>1.4</version> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <filters> <filter> <artifact>*:*</artifact> <excludes> <exclude>META-INF/*.SF</exclude> <exclude>META-INF/*.DSA</exclude> <exclude>META-INF/*.RSA</exclude> </excludes> </filter> </filters> <transformers> <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> <resource>META-INF/spring.handlers</resource> </transformer> <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> <mainClass>com.eshore.main.Starter</mainClass> </transformer> <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> <resource>META-INF/spring.schemas</resource> </transformer> </transformers> </configuration> </execution> </executions> </plugin> </plugins> </build>
相关文章
- springboot o.a.tomcat.util.scan.StandardJarScanner : Failed to scan [file:/D:/apache-maven-3.0.5[系统找不到指定路径]
- Maven打包无法连接数据库解决办法
- maven打包时报错:-source 1.5 中不支持 diamond 运算符
- 关于Springboot打包错误的问题 | Failed to execute goal org.springframework.boot:spring-boot-maven-plugin
- Maven打包生成包含所有依赖的jar包
- 进行分布式架构时,maven父子工程之间如何进行依赖
- Maven项目打包为jar的几种方式
- springboot项目的maven的pom.xml文件第一行报错 Unknown Error
- 解决maven打包编译出现File encoding has not been set问题
- maven 手动加载第三方jar、zip包
- 如何使用maven 打包源代码呢?
- Maven生命周期
- inteli idea创建maven项目
- maven
- Maven实战系列文章
- CentOS7 下 配置Docker远程访问 与 windows下使用maven构筑Spring Boot 的 Docker镜像到远程服务端
- 【Maven】Maven快速入门2022版:从概念、安装到基本使用
- springboot多环境下maven打包
- Maven(二):常用命令、依赖管理
- maven利用springboot的配置文件进行多个环境的打包
- Maven 打包 jar
- Maven 命令行打包 和 pom.xml的常用配置