eclipse中maven插件上传项目jar包到私服
2017-05-19 09:14
876 查看
我们知道,每一个公司都会有自己的工具包或公共包。这样的包就能够上传到公司的maven私服,就不用每一个人都去同步开发包了。 那么,怎么把本地项目打包并公布到私服呢?依照例如以下步骤就能够轻松完毕。
1. 在setting.xml文件里添加例如以下内容:
<servers> <server> <!-- 公布的位置在POM中配置。以ID为关联,有非常多公用的信息须要配置在POM文件中,最佳实践是定义一个公司级别的root pom --> <id>nexus</id> <username>admin</username> <password>admin123</password> </server> <server> <id>nexus-snapshots</id> <username>admin</username> <password>admin123</password> </server> <server> <id>thirdparty</id> <username>admin</username> <password>admin123</password> </server> </servers>
2. 在项目的pom.xml文件里添加例如以下内容
<distributionManagement> <repository> <id>nexus</id> <name>local private nexus</name> <url>http://192.168.xx.xx:8081/nexus/content/groups/public</url> </repository> <snapshotRepository> <id>nexus-snapshots</id> <name>local private nexus snapshots</name> <url>http://192.168.xx.xx:8081/nexus/content/groups/public-snapshots</url> </snapshotRepository> </distributionManagement>
<span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);"> </span>
3. 在项目的 maven bulider中的Goals输入例如以下内容
deploy:deploy-file -DgroupId=com.ivifi.tools -DartifactId=ivifi.tools -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=D:\git\tools\visn.tools\target\ivifi.tools-1.0-SNAPSHOT.jar -Durl=http://192.168.xx.xx:8081/nexus/content/repositories/thirdparty/ -DrepositoryId=thirdparty
相关文章推荐
- eclipse中maven插件上传项目jar包到私服
- MyEclipse 配置maven项目pom.xml设置 上传项目到nexus私服,通过中转仓库下载插件,以及nexus的配置
- 用eclipse怎样将本地的项目打成jar包上传到maven仓库
- eclipse中用maven 插件把项目打包成jar
- Maven创建并管理Web项目(上传Web项目的API的JAR到Nexus 私服上)
- eclipse中maven项目把生产的jar传到nexus私服上
- Maven第四篇【私有仓库、上传jar包、引用私服jar包、上传本地项目到私服】
- Maven创建并管理Web项目(上传Web项目的API的JAR到Nexus 私服上)
- Maven第四篇【私有仓库、上传jar包、引用私服jar包、上传本地项目到私服】
- Maven 私服项目Jar包上传与下载
- Maven第四篇【私有仓库、上传jar包、引用私服jar包、上传本地项目到私服】
- 用eclipse怎样将本地的项目打成jar包上传到maven仓库
- maven 上传项目或者jar到私服
- Maven项目缺少eclipse自带的插件项目需要建立lib目录加上jar包,或者是已经生成有的, 然后 右键build path add libraries web app libraries
- Eclipse 利用Git插件 上传自己的Maven项目 总结
- 用jetty插件运行maven项目 在eclipse中如何debug 调试程序
- eclipse中使用maven的jar包,但是提示unbound classpath variable,eclipse没装maven插件,在eclipse里new一个环境变量指向maven的repo
- 在Eclipse上使用egit插件通过ssh协议方式上传项目代码的具体步骤
- 用eclipse的m2eclipse插件,设置maven项目的依赖关系
- 在ECLIPSE中使用maven插件创建webapp类型项目