maven-jar-plugin 特殊用法

阅读更多


编译构建red5 发现server jar包含了boot里面的类,覆盖默认jar-plugin的打包方式  注意颜色加粗的地方

 


				maven-jar-plugin
				2.4
				
					
						default-jar
						package
						
							jar
						
												
							
								
									false
									false 
								
								
									${buildNumber}
								
								
									${project.version}
								
							
							
								**/org/red5/server/Bootstrap.class
								**/org/red5/server/Shutdown.class
								**/org/red5/server/jmx/mxbeans/ShutdownMXBean.class
								**/org/red5/classloading/**
							
						
					
					
						bootstrap
						package
						
							jar
						
						
							bootstrap
							
								
									false
									org.red5.server.Bootstrap
								
								
									${buildNumber}
								
								
									${project.version}
								
							
							
								**/org/red5/server/Bootstrap.class
								**/org/red5/server/Shutdown.class
								**/org/red5/server/jmx/mxbeans/ShutdownMXBean.class
								**/org/red5/classloading/**
							
						
					
				
			

 


参考资料:

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

 

你可能感兴趣的:(maven-jar-plugin 特殊用法)