idea打包maven打包maven包
来源:互联网 发布:everything微课软件 编辑:程序博客网 时间:2024/05/20 06:41
一、maven默认jdk版本,pom.xml
<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <java.version>1.8</java.version> </properties></properties>
二、打包,pom.xml
<packaging>jar</packaging><build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> <plugin> <artifactId>maven-resources-plugin</artifactId> <version>2.5</version> <executions> <execution> <id>copy-xmls</id> <phase>package</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${basedir}/target/classes</outputDirectory> <resources> <resource> <directory>${basedir}/src/main/resource</directory> <includes> <include>**/*</include> </includes> </resource> </resources> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <appendAssemblyId>false</appendAssemblyId> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> <archive> <manifest> <mainClass>com.sample.http.ServerTest</mainClass> </manifest> </archive> </configuration> <executions> <execution> <id>make-assembly</id> <phase>package</phase> <goals> <goal>assembly</goal> </goals> </execution> </executions> </plugin> </plugins></build>
三、步骤
1.
2.
3.
4.run
阅读全文
0 0
- idea打包maven打包maven包
- idea用maven打包
- idea Maven 打包jar
- IDEA 打包maven 项目
- maven依赖包 打包
- maven打包jar包
- Idea +maven+java不能打包
- SpringBoot idea maven打包war及运行war包
- maven打包可执行jar包
- maven 打包可执行jar包
- maven打包自定义包名
- maven打包jar包问题
- IDEA下maven编译打包Java项目成jar包但是resource下配置文件打包不成功
- maven打包
- maven打包
- maven 打包
- maven 打包
- Maven 打包
- poj 2502 dijkstra(关键是建图)
- ubuntu下手动搭建Nginx
- POI操作Excel---给单元格添加超链接(HSSF & XSSF & SXSSF)
- centos下配置JDK
- Timeline-View 仿淘宝物流
- idea打包maven打包maven包
- 电商三国杀,唯品会与京东利益捆绑,合纵连横对决阿里
- 二维坐标,x从小到大排列,y从大到小排列
- 2017-12-20
- java8中双冒号的使用
- 有关信道的几个基本概念
- getBoundingClientRect() 与 offset
- No repository found containing 问题的处理
- HDU Find a way