编译构建red5 发现server jar包含了boot里面的类,覆盖默认jar-plugin的打包方式 注意颜色加粗的地方
<plugin> <artifactId>maven-jar-plugin</artifactId> <version>2.4</version> <executions> <execution> <id>default-jar</id> <phase>package</phase> <goals> <goal>jar</goal> </goals> <configuration> <archive> <manifest> <addDefaultImplementationEntries>false</addDefaultImplementationEntries> <addDefaultSpecificationEntries>false</addDefaultSpecificationEntries> </manifest> <manifestEntries> <SCM-Revision>${buildNumber}</SCM-Revision> </manifestEntries> <manifestEntries> <Red5-Version>${project.version}</Red5-Version> </manifestEntries> </archive> <excludes> <exclude>**/org/red5/server/Bootstrap.class</exclude> <exclude>**/org/red5/server/Shutdown.class</exclude> <exclude>**/org/red5/server/jmx/mxbeans/ShutdownMXBean.class</exclude> <exclude>**/org/red5/classloading/**</exclude> </excludes> </configuration> </execution> <execution> <id>bootstrap</id> <phase>package</phase> <goals> <goal>jar</goal> </goals> <configuration> <classifier>bootstrap</classifier> <archive> <manifest> <addDefaultImplementationEntries>false</addDefaultImplementationEntries> <mainClass>org.red5.server.Bootstrap</mainClass> </manifest> <manifestEntries> <SCM-Revision>${buildNumber}</SCM-Revision> </manifestEntries> <manifestEntries> <Red5-Version>${project.version}</Red5-Version> </manifestEntries> </archive> <includes> <include>**/org/red5/server/Bootstrap.class</include> <include>**/org/red5/server/Shutdown.class</include> <include>**/org/red5/server/jmx/mxbeans/ShutdownMXBean.class</include> <include>**/org/red5/classloading/**</include> </includes> </configuration> </execution> </executions> </plugin>
参考资料:
http://stackoverflow.com/questions/13061193/maven-generating-two-jar-files-when-used-with-classifier-tag
http://maven.apache.org/plugins/maven-jar-plugin/usage.html
相关推荐
安装 mvn installmvn packagecp target/maven-plugin-jarc-1.0.1.jar .../repo/jarc/Jarc/maven-plugin-jarc/1.0.1/maven-plugin-jarc-1.0.1.jar用法将此添加到您的 pom.xml <plugin> <groupId>jarc.Jarc</groupId> ...
jmeter-maven-plugin, JMeter Maven 插件 #JMeter Maven 插件 提供在构建过程中运行JMeter测试的能力的Maven 插件有关更改信息,请参阅变更日志 。这个插件需要 1.8 或者更高版本,自 2.2.0 #Basic 用法将插
支持Maven 3.6 ,并准备使用Consumer POM的Maven的下一版本3.7/4.0 支持签名的subkey 易于在CI系统上使用,可以由环境变量提供配置 密钥密码可以通过标准的Maven 密钥准备 请看我们的 用法 < plugin> ...
许可证Maven插件 这是 。 发行 确保gpg-agent正在运行。 执行mvn -B release:prepare release:perform 要发布站点,请执行以下操作: cd target/checkout mvn verify site -DperformRelease scm-publish:publish-...
perfidix.zip,perfidix是一个轻量级的java基准测试工具,它允许对源代码进行简单的度量,而无需安装大型分析器或使用特殊的ide。perfidix是一个简单的jar,必须包含在类路径中。应该放在工作台上的方法被注释为类似...
loggit-maven-plugin 为什么要使用另一个changelog插件? 其他changelog插件都没有我需要的功能的正确组合: 降价格式 更明智地选择提交范围(包括标签) 项目活动 产品特点 使用将git日志转换为任何格式。 指定...
maven-plantuml-plugin, 使用PlantUML语法生成UML图的Maven 插件 然而,这个项目不再被维护了。使用语法生成UML图表的一个 Maven 插件插件。重要说明如果你想使用PlantUML大于 8031的版本,你必须使用这个插件的版本...
用法将以下插件添加到您的 pom.xml 文件中: <groupId>com.arhs.maven.plugins</groupId><artifactId>pack200-maven-plugin</artifactId>例子下面的示例允许检查 JAR 文件是否可以压缩,然后使用默认名称创建压缩...
# 使用方法: 解压 【***.jar中文文档.zip】,再解压其中的 【***-javadoc-API文档-中文(简体)版.zip】,双击 【index.html】 文件,即可用浏览器打开、进行查看。 # 特殊说明: ·本文档为人性化翻译,精心制作...
这个插件依赖于 IntelliJ 的 javac2.jar、asm4-all.jar 和 forms_rt.jar。 您需要通过运行将它们安装到本地 Maven 存储库中: ./install-intellij-libs.sh 然后,您可以通过执行以下操作在本地安装插件: mvn ...
# 使用方法: 解压 【***.jar中文文档.zip】,再解压其中的 【***-javadoc-API文档-中文(简体)版.zip】,双击 【index.html】 文件,即可用浏览器打开、进行查看。 # 特殊说明: ·本文档为人性化翻译,精心制作...
# 使用方法: 解压 【***.jar中文文档.zip】,再解压其中的 【***-javadoc-API文档-中文(简体)版.zip】,双击 【index.html】 文件,即可用浏览器打开、进行查看。 # 特殊说明: ·本文档为人性化翻译,精心制作...
# 使用方法: 解压 【***.jar中文文档.zip】,再解压其中的 【***-javadoc-API文档-中文(简体)版.zip】,双击 【index.html】 文件,即可用浏览器打开、进行查看。 # 特殊说明: ·本文档为人性化翻译,精心制作...
必须将依赖项添加到pom.xml : < dependency> < groupId>edu.princeton.cup</ groupId> < artifactId>java-cup</ artifactId> < version>10k</ version></ dependency>用法要使用此插件,您将必须告诉Maven在构建...
lambda-maven-plugin 用法 group id: com.github.seanroy artifact id: lambda-maven-plugin version: 2.3.3 请注意,工件已从lambduh-maven-plugin重命名为lambda-maven-plugin。 从命令行部署 mvn package shade:...
xipsoft-robovm-maven-plugin RoboVM Maven插件,可让您为IOS Simulator信息构建特定的目标路径用法要构建iPhone应用程序以在模拟器中运行mvn -Dtarget-path=aPath xrobovm:iphone-sim-build 生成要在模拟器中运行的...
处理开发遇到问题的记录,split的实现实例用法,BOMInputStream的使用场景,以及maven打包可执行jar包的处理方案,已经验证
赠送jar包:struts2-json-plugin-2.3.24.jar;...使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。 人性化翻译,文档中的代码和结构保持不变,注释和说明精准翻译,请放心使用。
赠送jar包:spring-plugin-core-2.0.0.RELEASE....使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。 人性化翻译,文档中的代码和结构保持不变,注释和说明精准翻译,请放心使用。
使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可纵览文档内容。 人性化翻译,文档中的代码和结构保持不变,注释和说明精准翻译,请放心使用。 双语对照,边学技术、边学英语。