maven打包插件配置

一、maven打包可执行jar文件,需要引入插件


	maven-assembly-plugin
	
		false
		
			jar-with-dependencies
		
		
			
				
				WikipediaAnalysis
			
		
	
	
		
			make-assembly
			package
			
				assembly
			
		
	

二、maven打包指定本地jar包


	org.apache.maven.plugins
	maven-jar-plugin
	
		
			
				true
				lib/
				WikipediaAnalysis
			
		
	



	org.apache.maven.plugins
	maven-dependency-plugin
	
		
			copy
			package
			
				copy-dependencies
			
			
				
					${project.build.directory}/lib
				
			
		
	

 

你可能感兴趣的:(Java)