Maven打包常见问题

目录

 

 

问题一:直接打包时system中指定systemPath文件未打包进去

问题二:打包时如何跳过测试

 

问题一:直接打包时system中指定systemPath文件未打包进去

    1) 打包为jar包时,需要加入如下配置


	org.springframework.boot
	spring-boot-maven-plugin
	
		
			
				
				repackage
			
		
	
	
	
		true
	


    2)打包为war包时,需要加入如下配置



	org.apache.maven.plugins
	maven-war-plugin
	
		
			
				
				lib
				
				WEB-INF/lib/
				
				
					**/*.jar
				
			
		
	

    3)springboot引入当前模块system外部jar到包中(不包含模块中外部jar)



  
  
    
	lib
	BOOT-INF/lib/
	
	  **/*.jar
	
  
  
  
	src/main/resources
	BOOT-INF/classes/
  


问题二:打包时如何跳过测试

    1)配置插件跳过



	org.apache.maven.plugins
	maven-surefire-plugin
	
		true
	

  2)全局配置方式


	
	true



    

 

end

你可能感兴趣的:(maven)