maven jar打包 集合


			
				org.apache.maven.plugins
				maven-compiler-plugin
				3.7.0
				
					1.8
					1.8
					UTF-8
				
			

	
			
				org.apache.maven.plugins
				maven-source-plugin
				2.1.2
				
					
						attach-sources
						
							jar
						
					
				
			


			
				org.apache.maven.plugins
				maven-assembly-plugin
				
					false
					
						jar-with-dependencies
					
					
					
						
							com.demon
						
					
				
				
					
						make-assembly
						package
						
							assembly
						
					
				
			

注:jar-with-dependencies结尾的表示含有依赖的jar



		org.apache.maven.plugins
				maven-install-plugin
				2.5.2
				
					
						install-external
						clean
						
							${basedir}/src/lib/demon-0.0.1.jar
							default
							com.demon
							demon
							0.0.1
							jar
							true
						
						
							install-file
						
					
				
			

然后 Maven->Update Project ;然后在dependencies中即可如平常一样添加依赖即可


            com.demon
            demon
            0.0.1
        

 

你可能感兴趣的:(Java,工具)