maven插件上传本地jar包到maven中央仓库

settings配置:



ossrh
*****
****


pom主要配置如下:  

com.github.z-pro dztools 1.0.0-SNAPSHOT jar ${project.groupId}:${project.artifactId} The test uploads the jar to the maven central repository https://github.com/z-pro/OSSRH-52405 1.8 UTF-8 UTF-8 ${java.version} ${java.version} true The Apache Software License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0.txt scm:git:git://github.com/z-pro/OSSRH-52405.git scm:git:ssh://github.com/z-pro/OSSRH-52405.git https://github.com/z-pro/OSSRH-52405/tree/master z-pro 380368126@qq.com https://github.com/z-pro ossrh true gpg ***** D:\***\Gpg4win\bin\gpg.exe C:/Users/***/AppData/Roaming/gnupg/ org.apache.maven.plugins maven-deploy-plugin 2.8.2 org.apache.maven.plugins maven-source-plugin 2.2.1 attach-sources jar-no-fork org.apache.maven.plugins maven-javadoc-plugin 2.9.1 attach-javadocs jar org.sonatype.plugins nexus-staging-maven-plugin 1.6.8 true ossrh https://oss.sonatype.org/ true ossrh https://oss.sonatype.org/content/repositories/snapshots ossrh https://oss.sonatype.org/service/local/staging/deploy/maven2/

参考:https://blog.csdn.net/qq_38225558/article/details/94381467

https://www.jianshu.com/p/1bd36edab4ee

https://blog.csdn.net/alinyua/article/details/83687250

提交:https://oss.sonatype.org

搜索上线:https://search.maven.org/

你可能感兴趣的:(maven插件上传本地jar包到maven中央仓库)