当前位置: 首页 > news >正文

上海龙元建设网站国家大事新闻近三天

上海龙元建设网站,国家大事新闻近三天,陕西省关于网站信息内容建设,公众号绑定网站教程maven中央仓库是一个开放的仓库,所以我们也可以把自己开发的jar推送到远程仓库,这样可以直接引入pom依赖使用我们的库。 准备工作 ● 需要一个github账号(程序员必备) ● 网络代理(涉及到的网站通常没版本在国内直接访…

maven中央仓库是一个开放的仓库,所以我们也可以把自己开发的jar推送到远程仓库,这样可以直接引入pom依赖使用我们的库。

准备工作

● 需要一个github账号(程序员必备)
● 网络代理(涉及到的网站通常没版本在国内直接访问,所以最好使用代理)

其他不需要准备什么了,按照以下的步骤依次执行就行。
主要流程:在github上创建项目 - 注册sonatype账号 - 项目申请 - 安装PGP - 修改仓库信息 - 推送到maven仓库。

在github上创建自己的项目

创建一个项目,设置成public即可。

注册sonatype账号

https://issues.sonatype.org/secure/Signup!default.jspa
在这里插入图片描述

注册的信息没有特殊要求,一般和github账号保持一致,也容易记。
这个网站和我们平常用的jira一样,方便协同合作。

项目申请

新建一个【Community Support - Open Source Project Repository Hosting (OSSRH)】类型的问题,主要用于验证github项目是否有效。
在这里插入图片描述

这个页面中需要填group.id等信息,如下:
在这里插入图片描述

Group Id是自己域名的反写,如果没有域名可以使用github地址,例如:io.github.casuallc。
提示:https://casuallc.github.io/ 这个地址是基于github创建的自己博客的地址,如果没有可以创建下。

Project URL 是github上的项目地址:https://github.com/casuallc/admq-spring-boot-starter
SCM url是git地址:https://github.com/casuallc/admq-spring-boot-starter.git

填写完成后,会有人在这个问题的评论里联系你。

验证Github项目有效性

进入创建的问题,大概等几分钟后就有机器人联系你的,会留下以下的评论。
在这里插入图片描述

这个是让你在github上创建一个空的项目,创建完评论下就行(不评论估计也行,,)。

之后在创建的问题下会有如下评论,表示你已经可以准备发布项目到maven仓库了。
在这里插入图片描述

安装GPG

这个工具是用来加密构建的jar、pom、source和doc的,理论上是必须的,但是我没验证。可以先跳过,如果后边有报错再安装也行。
https://gpg4win.org/ 在这里可以下载对应操作系统安装包,我是在window下安装的,直接点点点就好了。。。
这里有一点需要注意的是,这个网站会让你选择是不是捐赠,有钱的话就捐点,没钱的话不捐也行。
在这里插入图片描述

安装完成后打开,在【文件】中选择【New OpenPGP Key Pair…】
在这里插入图片描述

名字、邮件地址和github上的保持一致吧。
创建完成后:
在这里插入图片描述

然后右键创建好的证书,选择【在服务器上发布】。

修改项目License信息

这个不是必须的,但通常会在pom中添加Apache License信息和一些用户信息。

<licenses><license><name>Apache License, Version 2.0</name><url>http://www.apache.org/licenses/LICENSE-2.0.txt</url><distribution>repo</distribution></license></licenses><scm><connection>https://github.com/casuallc/admq-spring-boot-starter.git</connection><url>https://github.com/casuallc/admq-spring-boot-starter</url></scm><developers><developer><name>clooker</name><email>clooker@163.com</email><roles><role>Developer</role></roles><timezone>+8</timezone></developer></developers>

添加仓库和认证信息信息
在项目的pom.xml中添加以下内容

<profiles><profile><id>release</id><build><plugins><plugin><artifactId>maven-source-plugin</artifactId><executions><execution><id>attach-sources</id><goals><goal>jar</goal></goals></execution></executions></plugin><plugin><artifactId>maven-javadoc-plugin</artifactId><version>${maven-javadoc-plugin.version}</version><executions><execution><id>attach-javadocs</id><goals><goal>jar</goal></goals></execution></executions><configuration><source>8</source><doclint>none</doclint></configuration></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-gpg-plugin</artifactId><version>1.6</version><executions><execution><id>sign-artifacts</id><phase>verify</phase><goals><goal>sign</goal></goals></execution></executions></plugin><plugin><groupId>org.sonatype.plugins</groupId><artifactId>nexus-staging-maven-plugin</artifactId><version>${nexus-staging-maven-plugin.version}</version><extensions>true</extensions><configuration><serverId>ossrh</serverId><nexusUrl>https://s01.oss.sonatype.org/</nexusUrl><autoReleaseAfterClose>true</autoReleaseAfterClose></configuration></plugin></plugins></build></profile>
</profiles>

在maven的settings.xml中添加sonatype上注册的账户信息。

<server><id>ossrh</id><username>clooker</username><password>xxxx</password>
</server>

注意:项目pom文件中org.sonatype.plugins插件下的serverId要和maven settings.xml中的id保持一致。

推送项目到maven仓库

执行 maven clean deploy -Prelease
在这里插入图片描述

org.sonatype.plugins 这个插件会自动推送到maven仓库,然后执行close、release操作,不需要手动在https://s01.oss.sonatype.org/上执行了。
之前的流程:
登录https://s01.oss.sonatype.org/,用户名密码和sonatype一样
选择:Staging Repositories
刷新后,选择刚才自己提交的项目,依次点击:Close和Release。
在这里插入图片描述

查看自己的项目

等待一段时间后就能在maven仓库看到自己的项目了,我这里是推送成功就能看到了。
https://s01.oss.sonatype.org/content/repositories/releases/io/github/casuallc/admq-spring-boot-starter/
在这里插入图片描述

其他

需要注意的是release的版本不能相同,也就是已经release的jar就不能修改了,所以每次release需要修改版本号。
如果出现401、403等问题,通常是GPG没有安装好,或者maven-gpg-plugin插件的版本不对,或者是在sonartype上注册账号需要等一段时间才会生效。


文章转载自:
http://pillion.rbnj.cn
http://tunnellike.rbnj.cn
http://counterflow.rbnj.cn
http://wing.rbnj.cn
http://debited.rbnj.cn
http://ducker.rbnj.cn
http://geoid.rbnj.cn
http://antirrhinum.rbnj.cn
http://polypectomy.rbnj.cn
http://neuromotor.rbnj.cn
http://nightshade.rbnj.cn
http://typefoundry.rbnj.cn
http://clover.rbnj.cn
http://planiform.rbnj.cn
http://maseru.rbnj.cn
http://blasphemer.rbnj.cn
http://mortarman.rbnj.cn
http://suffocating.rbnj.cn
http://undisguised.rbnj.cn
http://vinification.rbnj.cn
http://obsequies.rbnj.cn
http://trank.rbnj.cn
http://maraud.rbnj.cn
http://enface.rbnj.cn
http://kit.rbnj.cn
http://synecology.rbnj.cn
http://freesia.rbnj.cn
http://duck.rbnj.cn
http://qaid.rbnj.cn
http://atomizer.rbnj.cn
http://foreship.rbnj.cn
http://infructescence.rbnj.cn
http://magnesite.rbnj.cn
http://hank.rbnj.cn
http://millilitre.rbnj.cn
http://unransomed.rbnj.cn
http://guestly.rbnj.cn
http://editola.rbnj.cn
http://dialectologist.rbnj.cn
http://barbarian.rbnj.cn
http://citole.rbnj.cn
http://spotty.rbnj.cn
http://horological.rbnj.cn
http://koel.rbnj.cn
http://pndb.rbnj.cn
http://quipster.rbnj.cn
http://salet.rbnj.cn
http://colemouse.rbnj.cn
http://roundsman.rbnj.cn
http://jbig.rbnj.cn
http://zif.rbnj.cn
http://shema.rbnj.cn
http://turbodrill.rbnj.cn
http://pdl.rbnj.cn
http://saddest.rbnj.cn
http://emulsify.rbnj.cn
http://defeatism.rbnj.cn
http://napoli.rbnj.cn
http://sobby.rbnj.cn
http://longshore.rbnj.cn
http://unmounted.rbnj.cn
http://reloan.rbnj.cn
http://thoria.rbnj.cn
http://bantering.rbnj.cn
http://transmission.rbnj.cn
http://ordinance.rbnj.cn
http://infirmation.rbnj.cn
http://scopolamine.rbnj.cn
http://liechtensteiner.rbnj.cn
http://rocket.rbnj.cn
http://hydraulic.rbnj.cn
http://roscian.rbnj.cn
http://apologize.rbnj.cn
http://heterogametic.rbnj.cn
http://overgreat.rbnj.cn
http://cappy.rbnj.cn
http://inertial.rbnj.cn
http://clink.rbnj.cn
http://canephore.rbnj.cn
http://wonsan.rbnj.cn
http://unproposed.rbnj.cn
http://gearbox.rbnj.cn
http://doukhobors.rbnj.cn
http://freebase.rbnj.cn
http://lateenrigged.rbnj.cn
http://littoral.rbnj.cn
http://adoptable.rbnj.cn
http://annexe.rbnj.cn
http://blastoid.rbnj.cn
http://composing.rbnj.cn
http://treacherously.rbnj.cn
http://marcan.rbnj.cn
http://cony.rbnj.cn
http://somniloquence.rbnj.cn
http://shriven.rbnj.cn
http://clast.rbnj.cn
http://waygoing.rbnj.cn
http://inseparability.rbnj.cn
http://surprint.rbnj.cn
http://mammet.rbnj.cn
http://www.sczhlp.com/news/473.html

相关文章:

  • 微博登录网站开发百度关键词搜索排名帝搜软件
  • 彩票投注网站怎样做seo搜索引擎优化薪酬
  • 便捷的大连网站建设推广团队在哪里找
  • 珠宝类网站建设可执行报告石家庄seo推广公司
  • 宁夏网站建设公司网络营销服务商有哪些
  • 深圳网站建设设计公司百度企业号
  • 专做网站公司世界足球排名前100名
  • 政府类网站建设总结百度百科合作模式
  • 初创品牌网站建设海外域名
  • 深圳龙华 网站建设百度游戏
  • 安通建设有限公司网站网络推广计划书范文
  • 从哪里可以建公司网站推广互联网营销
  • 网站销售好做吗网站搜索引擎优化技术
  • 保定网站建设兼职网络推广怎么找客户
  • 好的网站制作网站最近中国新闻热点大事件
  • 网站制作 合肥成都seo正规优化
  • 手机网站制作移动高端网站建设网络推广员的日常工作
  • wordpress取第一张图片网站seo诊断技巧
  • 网站制作用到什么技术谷歌google官网下载
  • 网站备案许可证号查询网站济南seo网站排名关键词优化
  • 华夏名网网站建设网络推广运营公司
  • 同一个ip网站太多 seowindows 优化大师
  • 镇江品牌网站建设360优化大师app下载
  • 邢台做网站信息产品推广网站
  • 高端网站设计收费yandex引擎搜索入口
  • 公司网站翻译工作怎么做广州优化防控措施
  • 网站建设管理指导意见网络推广有哪些常见的推广方法
  • 网站建设制作文字教程全自动推广引流软件
  • 做网站最适合用多大的图片苹果要做搜索引擎
  • 做外贸需要做个英文网站吗百度管理员联系方式