<build> <finalName>groupSmsSend</finalName> <resources> <!--将resources下的配置文件拷贝到target/config目录下 --> <resource> <directory>src/main/resources</directory> <targetPath>${project.build.directory}/config</targetPath> </resource> <!--编译的时候,类路径下也复制一份配置文件(防止开发启动的时候读取不到配置的情况) --> <resource> <directory>src/main/resources</directory> <targetPath>${project.build.directory}/classes</targetPath> </resource> </resources> <plugins> <!-- 将所依赖的第三方jar包打入target下的lib目录 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy-dependencies</id> <phase>package</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/lib</outputDirectory> </configuration> </execution> </executions> </plugin> <!-- 解决资源文件的编码问题 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <configuration> <encoding>UTF-8</encoding> </configuration> </plugin> <!-- 打jar包的main方法配置 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> <manifest> <addClasspath>true</addClasspath> <classpathPrefix>lib/</classpathPrefix> <mainClass>com.eversec.windowtool.App</mainClass> </manifest> <!-- 给清单文件添加键值对(配置文件外置) --> <manifestEntries> <Class-Path>config/</Class-Path> </manifestEntries> </archive> <!--打包的时候忽略classes 路径下的配置文件 --> <excludes> <exclude>*.properties</exclude> <exclude>*.xml</exclude> <exclude>*.txt</exclude> <exclude>static/**</exclude> <exclude>templates/**</exclude> </excludes> </configuration> </plugin> </plugins> </build>
相关推荐
Maven的pom.xml配置文件详细配置说明 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=...
pom.xml配置文件,包含数据库,仓库地址配置等等
【Maven】Maven POM配置详解 - CSDN博客1
这个一个maven web项目的pom文件。主要包含运用spring mvc, spring, mybatis 框架时需要导入的依赖列表。旨在帮助一些愿在java web上进行开发的新手。大部分依赖都有其注释与说明。
pom作为项目对象模型。通过xml表示maven项目,使用pom.xml来实现。主要描述了项目:包括配置文件;开发者需要遵循的规则,缺陷管理系统,组织和licenses,项目的url,项目的依赖性,以及其他所有的项目相关因素。
SSM框架整合jar包和maven pom.xml配置文件整合
该jar包功能,可以在一个properties文件里面定义jdbc.url=${url},在另一个properties文件定义具体的值,通过该jar可以获取到哪个具体的值。下载之后,自行安装到本地...具体pom.xml配置使用可以参考网络其他博文,谢谢
本文主要阐述了maven build是用来干什么的,以及对build标签中各子元素配置的作用
maven pom.xml详解
maven项目的配置POM配置文件,主要是maven项目的配置,直接从中央仓库下载内容。
NULL 博文链接:https://cjhz.iteye.com/blog/1721639
maven最全的配置,<!-- 父项目的坐标。如果项目中没有规定某个元素的值,那么父项目中的对应值即为项目的默认值。 坐标包括group ID,artifact ID和 -->
记录一下自己常用的maven工程的pom.xml配置详解,各个标签详解
maven的pom.xml的最详细配置,内含pom的依赖、jdk配置等
将pom的依赖直接粘贴进pom.xml,运行bat文件就可以将jar包一次性下载。需要maven环境
一、Idea关联的maven本地仓库配置...三、3个可单独使用的,maven项目文件pom.xml自定义配置 pom-maven-springboot-CusConfigV1.xml pom-maven-springboot-CusConfigV2.xml pom-maven-spring-CusConfigV1不推荐使用.xml
maven pom 详解 maven2 比起maven1 来说,需要配置的文件少多了,主要集中在pom.xml和settings.xml中
maven pom.xml 详解 格式为.xml格式
pom的详细信息,让你更加了解pox配置文件每个属性的作用
maven pom.xml详解