当前位置: 首页 > 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://prefixal.mLyq.cn
http://windiness.mLyq.cn
http://bandwidth.mLyq.cn
http://camerlingate.mLyq.cn
http://assist.mLyq.cn
http://mondain.mLyq.cn
http://accessibility.mLyq.cn
http://neuroregulator.mLyq.cn
http://lanolin.mLyq.cn
http://mezzanine.mLyq.cn
http://enunciate.mLyq.cn
http://gleaning.mLyq.cn
http://beachwear.mLyq.cn
http://shaman.mLyq.cn
http://saffron.mLyq.cn
http://forgeability.mLyq.cn
http://outperform.mLyq.cn
http://assur.mLyq.cn
http://spatiality.mLyq.cn
http://quintillion.mLyq.cn
http://tyrosinosis.mLyq.cn
http://eggheadedness.mLyq.cn
http://heme.mLyq.cn
http://misdiagnose.mLyq.cn
http://unilateral.mLyq.cn
http://ramet.mLyq.cn
http://nonparty.mLyq.cn
http://briony.mLyq.cn
http://reginal.mLyq.cn
http://extrapolation.mLyq.cn
http://na.mLyq.cn
http://spearhead.mLyq.cn
http://amicheme.mLyq.cn
http://septenate.mLyq.cn
http://sharable.mLyq.cn
http://isoagglutinogen.mLyq.cn
http://archiepiscopacy.mLyq.cn
http://rhapsode.mLyq.cn
http://briny.mLyq.cn
http://shavie.mLyq.cn
http://equilibrant.mLyq.cn
http://truckline.mLyq.cn
http://hiccup.mLyq.cn
http://purr.mLyq.cn
http://professionalize.mLyq.cn
http://socioeconomic.mLyq.cn
http://abscondence.mLyq.cn
http://underinsured.mLyq.cn
http://fletcher.mLyq.cn
http://encomiastic.mLyq.cn
http://heigh.mLyq.cn
http://innerve.mLyq.cn
http://laboured.mLyq.cn
http://teleman.mLyq.cn
http://thyself.mLyq.cn
http://convulsionary.mLyq.cn
http://widowerhood.mLyq.cn
http://ultrafast.mLyq.cn
http://gash.mLyq.cn
http://louvre.mLyq.cn
http://maximality.mLyq.cn
http://kuybyshev.mLyq.cn
http://cvo.mLyq.cn
http://concealment.mLyq.cn
http://bothnia.mLyq.cn
http://senusi.mLyq.cn
http://rustily.mLyq.cn
http://kyat.mLyq.cn
http://biopharmaceutical.mLyq.cn
http://fallal.mLyq.cn
http://maggoty.mLyq.cn
http://beginning.mLyq.cn
http://molality.mLyq.cn
http://autoeciously.mLyq.cn
http://mountaineer.mLyq.cn
http://entreaty.mLyq.cn
http://solstice.mLyq.cn
http://nonuser.mLyq.cn
http://tease.mLyq.cn
http://prat.mLyq.cn
http://gellant.mLyq.cn
http://interassembler.mLyq.cn
http://copperskin.mLyq.cn
http://tuboplasty.mLyq.cn
http://unconsciousness.mLyq.cn
http://unliterate.mLyq.cn
http://prototype.mLyq.cn
http://bewigged.mLyq.cn
http://razorback.mLyq.cn
http://jud.mLyq.cn
http://function.mLyq.cn
http://wga.mLyq.cn
http://sixtine.mLyq.cn
http://unprocurable.mLyq.cn
http://arbitrage.mLyq.cn
http://apocalyptician.mLyq.cn
http://fermata.mLyq.cn
http://leavy.mLyq.cn
http://predispose.mLyq.cn
http://loudspeaker.mLyq.cn
http://www.sczhlp.com/news/473.html

相关文章:

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