查看“Maven基础”的源代码
←
Maven基础
跳到导航
跳到搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
=Spring Boot Maven 打包可执行Jar文件= mvn clean package =trouble= ==SNAPSHOT does not alalow version == <pre> version policy 默认release 改为 mixed PushArtifact [Pipeline] nexusArtifactUploader Uploading artifact demo-0.0.1-SNAPSHOT.jar started.... GroupId: com.devops6 ArtifactId: demo Classifier: Type: jar Version: 0.0.1 File: demo-0.0.1-SNAPSHOT.jar Repository:maven-devops6-release Uploading: http://192.168.10.105:8081/repository/maven-devops6-release/com/devops6/demo/0.0.1/demo-0.0.1.jar Failed to deploy artifacts: Could not transfer artifact com.devops6:demo:jar:0.0.1 from/to maven-devops6-release (http://192.168.10.105:8081/repository/maven-devops6-release): transfer failed for http://192.168.10.105:8081/repository/maven-devops6-release/com/devops6/demo/0.0.1/demo-0.0.1.jar, status: 400 Repository version policy: SNAPSHOT does not allow version: 0.0.1 pipeline stage('PushArtifact'){ steps { script{ println("PushArtifact") PushArtifactByPlugin() } } } } } def PushArtifactByPlugin(){ nexusArtifactUploader artifacts: [[artifactId: 'demo', classifier: '', file: 'target/demo-0.0.1-SNAPSHOT.jar', type: 'jar']], credentialsId: 'f26c7693-66d8-41d9-8ad4-bfb20eaa4634', groupId: 'com.devops6', nexusUrl: '192.168.10.105:8081', nexusVersion: 'nexus3', protocol: 'http', repository: 'maven-devops6-release',version: '0.0.1' //nexusArtifactUploader credentialsId: 'f26c7693-66d8-41d9-8ad4-bfb20eaa4634', groupId: 'com.devops6', nexusUrl: '192.168.10.105:8081', nexusVersion: 'nexus2', protocol: 'http', repository: 'maven-devops6-release', version: 'nexus3' } </pre> https://community.sonatype.com/t/400-repository-version-policy-snapshot-does-not-allow-version-3-0-0/4053 [[Installing Apache Maven]] =refences= [https://www.runoob.com/maven/maven-tutorial.html Maven 教程 ] [https://blog.csdn.net/smilecall/article/details/56288972 Spring Boot Maven 打包可执行Jar文件!] [https://www.cnblogs.com/zwwhnly/p/10894781.html Spring入门(四):使用Maven管理Spring项目 ] [https://www.cnblogs.com/desireyang/p/12787480.html Maven仓库安装配置及使用 ] [[category:devops]]
返回至
Maven基础
。
导航菜单
个人工具
登录
名字空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
导航
首页
我的导航
关于我
shell
python
ops
linuxchina.net
blog.linuxchina
最近更改
随机页面
帮助
工具
链入页面
相关更改
特殊页面
页面信息