首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

Maven 向私服nexus下传jar(转)

2012-08-29 
Maven 向私服nexus上传jar(转)1.? 单个jar上上传???? 方法一:利用界面(省略)???? 方法二:利用命令行:??? 1

Maven 向私服nexus上传jar(转)

1.? 单个jar上上传

???? 方法一:利用界面(省略)

???? 方法二:利用命令行:

??? 1). 安装到本地库:
??? mvn install:install-file -DgroupId=org.apache.hadoop ?? -DartifactId=hbase? -Dversion=1.0 -Dpackaging=jar -Dfile=[path to file]

???? 2). 安装到私服
??? mvn deploy:deploy-file -DgroupId=org.apache.hadoop? -DartifactId=hbase -Dversion=1.0 -Dpackaging=jar -Dfile=[path to file] -Durl=[url] -DrepositoryId=[id]

?

2.批量导入jar

??? 直接拷贝文件至/opt/data/nexus/sonatype-work/nexus/storage/pvinsight/org/apache/hadoop/hive/hive-exec/0.5.0

??? 或者

??? 通过脚本执行 mvn deploy:deploy-file?

热点排行