maven打包jar上传远程仓库
来源:互联网 发布:centos 7 net snmp 编辑:程序博客网 时间:2024/05/23 13:54
maven打包jar上传远程仓库
创建角色、用户
查看远程仓库地址
setting.xml文件设置
这里的id要和远程地址仓库中的ID一致
<server> <id>releases</id> <username>dev</username> <password>密码</password></server><server> <id>snapshots</id> <username>dev</username> <password>密码</password></server>
pom.xml文件设置
可以分别上传releases版本和snapshots版本,两种版本区分点在于releases不覆盖,snapshots覆盖本地版本
<groupId>com.km.core</groupId> <artifactId>km-core</artifactId> <version>2.0.8-SNAPSHOT</version>
远程地址和图片上一致
<distributionManagement> <repository> <id>releases</id> <url>http://192.168.96.23:8081/nexus/content/repositories/releases</url> </repository> <snapshotRepository> <id>snapshots</id> <url>http://192.168.96.23:8081/nexus/content/repositories/snapshots</url> </snapshotRepository></distributionManagement>
编译上传远程仓库带源码
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.5.1</version> <configuration> <source>1.7</source> <target>1.7</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>3.0.1</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> </plugins></build>
版权声明
作者:苏陌年
出处:http://www.zhengzy.top/
版权所有,欢迎保留原文链接进行转载:)
阅读全文
0 0
- maven打包jar上传远程仓库
- maven上传snapshot.jar到远程仓库
- maven 上传jar到远程仓库
- Maven之上传jar包到远程仓库
- 上传第三方jar包到maven远程仓库nexus
- mvn 上传远程仓库 jar
- maven仓库上传jar包
- 打包jar包到本地maven仓库
- maven 发布jar包到远程仓库,
- maven发布jar到远程仓库
- Maven 发布jar包到远程仓库
- maven部署jar 到远程仓库
- maven 添加jar到远程仓库
- maven jar包上传中央仓库 操作
- maven上传本地jar到仓库
- 上传jar到maven中央仓库
- Maven指定文件上传远程仓库【非中央仓库】
- maven打包jar与pom文件到本地仓库例子
- Android NDK: From Elementary to Expert Episode 17
- JavaScript模块化编程
- 基于mapnik的地图符号编辑器功能介绍
- java的动态代理机制详解
- springboot+rabbitmq整合示例程
- maven打包jar上传远程仓库
- 腾讯暑期实习生一面
- 编程之战第二章 斐波那契
- 数组-第四天
- SIGCHLD信号与SIG_IGN处理的使用
- jenkins+git+maven+shell构建自动化部署项目
- sql之left join、right join、inner join的区别
- 分组
- Java并发编程之CyclicBarrier