设为首页 加入收藏

TOP

自己常用的Maven工程的pom.xml模板
2014-11-24 02:48:11 来源: 作者: 【 】 浏览:0
Tags:自己 常用 Maven 工程 pom.xml 模板

< 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


相关阅读:


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Java中内存结构及堆栈详解 下一篇OpenCV学习笔记与源码分析: imrea..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: