MAVEN插件打包SNAPSHOT包MANIFEST.MF中Class-Path带时间戳的问题

当用maven的maven-jar-plugin插件打包依赖的SNAPSHOT的jar包就会表现为MANIFEST.MF中的Class-Path: lib/facede-user-1.0-20160512.093945-1.jar
但是打包到../lib/facede-user-1.0-SNAPSHOT.jar下面包,这样就会出现找不到类的情况
。如下加上false就可以

强制的把MANIFEST.MF中的Class-Path: lib/facede-user-1.0-20160512.093945-1.jar转化成Class-Path:/lib/facede-user-1.0-SNAPSHOT.jar


	
	
	
		
			
			
				org.eclipse.m2e
				lifecycle-mapping
				1.0.0
				
					
						
							
								
									org.apache.maven.plugins
									maven-dependency-plugin
									[1.0.0,)
									
										copy-dependencies
										unpack
									
								
								
									
								
							
						
					
				
			
		
	
	
	
	
		
			org.apache.maven.plugins
			maven-jar-plugin
			
				
					
						com.xxxx.service.user.startup.DubboStart
						true
						lib/
						
						false
					
				
				
				
			
		
		
		
			org.apache.maven.plugins
			maven-dependency-plugin
			
				
					package
					
						copy-dependencies
					
					
						${project.build.directory}/lib
					
				
			
		
	



你可能感兴趣的:(snapshot,maven,插件,maven)