一个Maven的pom实现

阅读更多

 

留给自己以后用的pom实现。

 


  4.0.0
  com.myjob
  jobx
  jar
  0.0.1-SNAPSHOT
  jobx
  http://maven.apache.org
  
    
  	  
    	central  
    	Maven Repository Switchboard  
    	default  
    	http://repo1.maven.org/maven2  
    	  
      		false  
    	  
  	  
	

	
		yyyyMMddHHmmss
		UTF-8
	


	
	
		${project.artifactId}-${project.version}-${maven.build.timestamp}
		
			
				src/main/java
				
					**/*
				
				
					**/*.java
				
				false
			
			
				src/main/resources
				
					**/*.properties
					**/*.xml
				
				false
			
		
		
			
				org.apache.maven.plugins
				maven-shade-plugin
				1.4
				
					
						package
						
							shade
						
						
							
								
									*:*
									
										META-INF/*.SF
										META-INF/*.DSA
										META-INF/*.RSA
									
								
							
							
								
									META-INF/spring.handlers
								
								
									META-INF/spring.schemas
								
								
									com.myjob.jobx.MainClass
								
							
						
					
				
			
			
				org.apache.maven.plugins
				maven-compiler-plugin
				2.5.1
				
					1.6
					1.6
					UTF-8
				
			
			
				org.apache.maven.plugins
				maven-surefire-plugin
				
					true
				
			
		
	

  
  	
    	mysql
    	mysql-connector-java
    	5.1.30
	
  

 

 

  1. 使用shade插件
  2. 使用了时间戳当包名

 

你可能感兴趣的:(java,maven,pom)