Maven 安裝 JAR 包的命令是:apache
mvn install:install-file -Dfile=jar包的位置 -DgroupId=上面的groupId -DartifactId=上面的artifactId -Dversion=上面的version -Dpackaging=jarmaven
mvn install:install-file -Dfile=/Users/ .wang/Documents/hadoopTools/cdh5/hbase-0.98.1-cdh5.1.0/lib/hbase-client-0.98.1-cdh5.1.0.jar -DgroupId=org.apache.hbase -DartifactId=hbase-client -Dversion=0.98.1-cdh5.1.0 -Dpackaging=jaroop
mvn install:install-file -Dfile=/Users/ .wang/Documents/hadoopTools/cdh5/hbase-0.98.1-cdh5.1.0/lib/hbase-common-0.98.1-cdh5.1.0.jar -DgroupId=org.apache.hbase -DartifactId=hbase-common -Dversion=0.98.1-cdh5.1.0 -Dpackaging=jarspa
mvn install:install-file -Dfile=/Users/ .wang/Documents/hadoopTools/cdh5/hadoop-2.3.0-cdh5.1.0/share/hadoop/common/hadoop-common-2.3.0-cdh5.1.0.jar -DgroupId=org.apache.hadoop -DartifactId=hadoop-common -Dversion=2.3.0-cdh5.1.0 -Dpackaging=jarcode
===hadoop
Maven: Including jar not found in public repository get
看完下面的連接就知道怎麼操做了: it
http://stackoverflow.com/questions/1355548/maven-including-jar-not-found-in-public-repository
http://jeff.langcode.com/archives/27
io