hadoop-maven项目打包成可执行的jar

环境:

cdh5.1.0

jdk1.7

	
		
		
			
				org.apache.maven.plugins
				maven-compiler-plugin
				
					1.7
					1.7
				
			
			
			
				maven-assembly-plugin
				2.2
				
					
						
							com.gsta.bdi.dh.mr.MainJob
						
					
					
						jar-with-dependencies
					
				
				
					
						make-assembly
						package
						
							single
						
					
				
			
		
		
		
			
				src/main/java
				
					**/*.properties
				
			
			
				src/main/resources
			
			
				resources
			
		
	



整个POM文件:


	4.0.0

	TEST
	mytest
	0.0.1-SNAPSHOT
	jar

	taglib-customer
	http://maven.apache.org
	
		
			cloudera
			https://repository.cloudera.com/artifactory/cloudera-repos/
		
		
			cloudera2
			https://repository.cloudera.com/content/groups/public
		
	
	
		UTF-8
	

	
		
			jdk.tools
			jdk.tools
			jdk1.7.0_45
			system
			${JAVA_HOME}/lib/tools.jar
		
		
			junit
			junit
			3.8.1
			test
		
		
		

		
			org.apache.hadoop
			hadoop-core
			2.3.0-mr1-cdh5.1.0
		

		
			org.apache.hadoop
			hadoop-client
			2.3.0-mr1-cdh5.1.0
		
		
			org.apache.hadoop
			hadoop-mapreduce-client-core
			2.3.0-cdh5.1.0
		
		
			org.apache.hadoop
			hadoop-annotations
			2.3.0-cdh5.1.0
		
		
			org.apache.hadoop
			hadoop-auth
			2.3.0-cdh5.1.0
		
		
			org.apache.hadoop
			hadoop-hdfs
			2.3.0-cdh5.1.0
		


		
		
			org.apache.hive
			hive-jdbc
			0.12.0-cdh5.1.0
		
		
			org.apache.hadoop
			hadoop-common
			2.3.0-cdh5.1.0
		


		
		
			org.apache.hbase
			hbase-client
			0.98.1-cdh5.1.0
		
		
			org.apache.hbase
			hbase-common
			0.98.1-cdh5.1.0
		
		
			org.apache.hbase
			hbase-hadoop-compat
			0.98.1-cdh5.1.0
		
		
			org.apache.hbase
			hbase-hadoop2-compat
			0.98.1-cdh5.1.0
		
		
			org.apache.hbase
			hbase-it
			0.98.1-cdh5.1.0
		
	
	
		
		
			
				org.apache.maven.plugins
				maven-compiler-plugin
				
					1.7
					1.7
				
			
			
			
				maven-assembly-plugin
				2.2
				
					
						
							com.gsta.bdi.dh.mr.MainJob
						
					
					
						jar-with-dependencies
					
				
				
					
						make-assembly
						package
						
							single
						
					
				
			
		
		
		
			
				src/main/java
				
					**/*.properties
				
			
			
				src/main/resources
			
			
				resources
			
		
	



你可能感兴趣的:(hadoop,j2ee)