一、shade
Apache Maven Shade Plugin – shade:shade
可以生成fat jar (也叫胖jar或者Uber jar)
Resource Transformers
| ApacheLicenseResourceTransformer | Prevents license duplication |
| ApacheNoticeResourceTransformer | Prepares merged NOTICE |
| AppendingTransformer | Adds content to a resource |
| ComponentsXmlResourceTransformer | Aggregates Plexus components.xml |
| DontIncludeResourceTransformer | Prevents inclusion of matching resources |
| IncludeResourceTransformer | Adds files from the project |
| ManifestResourceTransformer | Sets entries in the MANIFEST |
| ServicesResourceTransformer | Merges META-INF/services resources |
| XmlAppendingTransformer | Adds XML content to an XML resource |
HubSpot团队最终创建了一个新的Maven插件:SlimFast(HubSpot团队最终创建了一个新的Maven插件:SlimFast(GitHub - HubSpot/SlimFast: Slimming down jars since 2016)。该插件与Shade插件的不同之处在于,它将应用程序代码与相关的依赖项分开,因此会构建并上传两个单独的构件。
二、assembler
Appassembler :: Maven Plug-In – Introduction 要看Java Service Wrapper 这个的笔记 配合这篇文档 What is the Java Service Wrapper? - Java Service Wrapper
使用的Java Service Wrapper版本是3.2.3
三、assembly
Apache Maven Assembly Plugin – Introduction
可以生成fat jar (也叫胖jar或者Uber jar)
四、GMavenPlus 编译Groovy的插件(一共有GMaven、GMavenPlus、GMaven 2 三种) The Apache Groovy programming language - groovyc - the Groovy compiler
GMavenPlus Plugin – GMavenPlus Plugin
Home · groovy/GMavenPlus Wiki · GitHub
五、compiler
Apache Maven Compiler Plugin – Plugin Documentation
六、protoc
protoc-jar-maven-plugin - Introduction
protoc-jar-maven-plugin - protoc-jar:run
七、Maven deploy plugin
Apache Maven Deploy Plugin – Introduction
八、exec
Exec Maven Plugin – Introduction
九、versions-maven-plugin
Versions Maven Plugin – Introduction
十、maven-dependency-plugin 分析依赖很有用!!!
Apache Maven Dependency Plugin – Introduction
十一、Docker Maven Plugin
GitHub - spotify/docker-maven-plugin: INACTIVE: A maven plugin for Docker
看Spring Cloud和Docker 13.3

十二、Maven Antrun
Apache Maven AntRun Plugin – Introduction
十三、maven-archetype-plugin 生成项目骨架
Maven Archetype Plugin – Introduction
十四、maven-dependency-plugin 处理依赖很强大
Apache Maven Dependency Plugin – Introduction
十五、maven-enforcer-plugin
Maven Enforcer plugin – Introduction
十六、maven-help-plugin
Apache Maven Help Plugin – Introduction
十七、maven-release-plugin
Maven Release plugin – Introduction
十八、maven-resources-plugin
Apache Maven Resources Plugin – Introduction
十九、maven-surefire-plugin 执行单元测试 maven-surefire-report-plugin 生成单测报告
Maven Surefire Plugin – Introduction
二十、build-helper-maven-plugin
http://mojo.codehaus.org/build-helper-maven-plugin/
二十一、jetty-maven-plugin
Jetty/Feature/Jetty Maven Plugin - Eclipsepedia
二十二、maven-jar-plugin
Apache Maven JAR Plugin – Introduction
可以修改Jar包和Manifest文件。
二十三、maven-help-plugin
Apache Maven Help Plugin – Introduction
The Maven Help Plugin is used to get relative information about a project or the system. It can be used to get a description of a particular plugin, including the plugin's goals with their parameters and component requirements, the effective POM and effective settings of the current build, and the profiles applied to the current project being built.
二十四、war
Apache Maven WAR Plugin – Introduction
二十五、scala-maven-plugin
scala-maven-plugin – scala-maven-plugin
二十六、Maven Wrapper
Apache Maven Wrapper – Maven Wrapper
插件开发
Maven – Guide to Developing Java Plugins
一个 maven 插件会有很多个目标,每个目标就是一个 Mojo 类
本文介绍了多个Maven插件的用途,包括Shade插件用于生成fat jar,Assembler和Assembly插件进行项目打包,GMavenPlus用于Groovy编译,Compiler插件处理Java源码,protoc插件处理protobuf,Deploy和Exec插件部署和执行,Versions和Dependency插件管理版本和依赖,Docker Maven Plugin构建Docker镜像,AntRun和Archetype插件执行Ant任务和创建项目骨架,以及Help、Release、Resources、Surefire等插件辅助构建过程。
164

被折叠的 条评论
为什么被折叠?



