Install jar manually into maven and Nexus
2014-05-13 17:41
411 查看
Sometimes the maven building just needs one or more 3rd party jars, and the jars cannot be downloaded and installed automatically by Internet.
Then you can install these jars manually.
1st. Install a 3rd party jar package into maven repositor
2nd. Install a 3rd party jar package into Nexus
For Nexus, you can only upload a 3rd party jar into the repository "3rd party", which is already installed as default as you setup Nexus server. Just click "3rd party" repository, and you will find a button called "Artifact upload" on the bar in the middle of the page.
本文出自 “BitterJava” 博客,请务必保留此出处http://rickqin.blog.51cto.com/1096449/1410642
Then you can install these jars manually.
1st. Install a 3rd party jar package into maven repositor
mvn install:install-file -DgroupId=<jar's groupdId> -DartifactId=<artifactId> -Dpackaging=jar -Dversion=<version> -Dfile=<file location> -DgeneratePom=trueJust replace <> placeholder with your real case.
2nd. Install a 3rd party jar package into Nexus
For Nexus, you can only upload a 3rd party jar into the repository "3rd party", which is already installed as default as you setup Nexus server. Just click "3rd party" repository, and you will find a button called "Artifact upload" on the bar in the middle of the page.
本文出自 “BitterJava” 博客,请务必保留此出处http://rickqin.blog.51cto.com/1096449/1410642
相关文章推荐
- mintty字体设置
- usrpasswd
- cacti安装与配置
- PHPStorm + Xdebug 调试PHP代码 有大用
- WebStorm 8.0.1 注册码
- 一站式解决,Android 拍照 图库的各种问题.
- PHPStorm + Xdebug 调试PHP代码 有大用
- poi读取excel的工具类
- hdu 4454 Stealing a Cake(三分妥妥的)
- queue stack
- uva10534 hdu2198 双向LIS问题
- Android Service
- 解决浏览器兼容性问题
- arm-linux解压内核过程
- ios 统一设计,iOS6也玩扁平化
- android之隐藏另一个应用的图标并且禁用这个应用,不再桌面和应用管理里出现
- [算法5]PCA降维
- 产品经理必读:了解网页设计中的分割布局
- 获取最接近八点的时间 范围 7-9
- os os.path