- java maven插件详解
- maven-compiler-plugin
- maven-jar-plugin
- maven-dependency-plugin
- maven-source-plugin
- maven-assembly-plugin
- spring-boot-maven-plugin
只解释具体功能
maven-compiler-plugin编译插件,输出: target/下的编译class及其他配置文件等
会依赖build 节点下的resources标签定义,对文件做一些过滤,发现编译少文件,可能是resource过滤掉了
maven-jar-pluginorg.apache.maven.plugins maven-compiler-plugin3.8.1 1.8 UTF-8 true
打jar插件,输出:project-1.0.0-SNAPSHOT.jar
maven-dependency-pluginorg.apache.maven.plugins maven-jar-plugin3.0.2 ***.json true lib/ com.App ./conf/
复制项目的依赖包到指定目录,是处理与依赖相关的插件
maven-source-pluginorg.apache.maven.plugins maven-dependency-plugin3.1.1 install install sources
对于Maven工程的源代码进行源文件的打包,输出:project-1.0.0-SNAPSHOT-sources.jar
maven-assembly-pluginorg.apache.maven.plugins maven-source-plugin3.1.0 attach-sources verify jar-no-fork
扩展性更高的打包插件,输出:project.tar.gz 或者 dir 或者对应类型的打包文件
org.apache.maven.plugins maven-assembly-plugin3.1.0 make-assembly package single ${project.name} posix falsesrc/main/assembly/release.xml
-- release.xmlspring-boot-maven-pluginrelease false tar.gz dir lib src/main/resources/profiles/${project.profiles.default} ** conf/ src/main/resources protect.conf conf/ src/main/bin ** bin/ 776
排除启动jar包中依赖的jar包
org.springframework.boot spring-boot-maven-pluginZIP non-exists non-exists
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)