< xml version="1.0" encoding="UTF-8" >
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
com.cxz
IntoRedis
1.0-SNAPSHOT
${project.build.directory}/endorsed
UTF-8
cloudera
cloudera maven repository
https://repository.cloudera.com/content/repositories/releases
redis.clients
jedis
2.1.0
jar
commons-pool
commons-pool
1.6
org.apache.hadoop
hadoop-examples
2.0.0-mr1-cdh4.2.1
jar
provided
junit
junit
4.8.2
test
org.apache.mrunit
mrunit
1.0.0
hadoop1
test
org.apache.hadoop
hadoop-common
2.0.0-cdh4.2.1
jar
kfs
net.sf.kosmosfs
provided
org.apache.maven.plugins
maven-compiler-plugin
2.3.2
1.7
1.7
org.apache.maven.plugins
maven-assembly-plugin
2.4
assembly.xml
com.cxz.redis.IntoRedis
make-assembly
package
single
2. assembly.xml文件
< xml version="1.0" encoding="UTF-8" >
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns='http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0'
xsi:schemaLocation='http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd'>
job
jar
false
false
runtime
lib
${groupId}:${artifactId}
true
${groupId}:${artifactId}
3. maven的基本使用命令
mvn compile
mvn test
mvn test-compile
mvn package
mvn clean
相关阅读: