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

义乌外贸网站建设来啦无锡seo优化

义乌外贸网站建设来啦,无锡seo优化,重庆网站建设公司有哪些,技术合同 网站开发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://dinncoichthyologist.ydfr.cn
http://dinncopolemonium.ydfr.cn
http://dinncoeyespot.ydfr.cn
http://dinncocommodious.ydfr.cn
http://dinncocompression.ydfr.cn
http://dinncobreslau.ydfr.cn
http://dinncounmerciful.ydfr.cn
http://dinncothibet.ydfr.cn
http://dinncoballerine.ydfr.cn
http://dinncomaddish.ydfr.cn
http://dinncohaematein.ydfr.cn
http://dinncoelegize.ydfr.cn
http://dinncodesert.ydfr.cn
http://dinncospreader.ydfr.cn
http://dinncodemophobia.ydfr.cn
http://dinncobiaxial.ydfr.cn
http://dinncoaphrodisiacal.ydfr.cn
http://dinncoencyc.ydfr.cn
http://dinncoreaping.ydfr.cn
http://dinncodisclamation.ydfr.cn
http://dinncodisaccordit.ydfr.cn
http://dinncoeaux.ydfr.cn
http://dinncodisabled.ydfr.cn
http://dinncohl.ydfr.cn
http://dinncoprius.ydfr.cn
http://dinncolaryngitic.ydfr.cn
http://dinnconundinal.ydfr.cn
http://dinncoglycogen.ydfr.cn
http://dinncooveractive.ydfr.cn
http://dinncoeurocentric.ydfr.cn
http://dinncosuperplastic.ydfr.cn
http://dinncocinchonine.ydfr.cn
http://dinncobibliographer.ydfr.cn
http://dinncofreshwater.ydfr.cn
http://dinncowitting.ydfr.cn
http://dinncoporoplastic.ydfr.cn
http://dinncoclipping.ydfr.cn
http://dinncorealistic.ydfr.cn
http://dinncoikunolite.ydfr.cn
http://dinncomonobus.ydfr.cn
http://dinncobifurcated.ydfr.cn
http://dinncobiotical.ydfr.cn
http://dinncovinification.ydfr.cn
http://dinncoconnoisseurship.ydfr.cn
http://dinncobetide.ydfr.cn
http://dinncoexist.ydfr.cn
http://dinncobriefs.ydfr.cn
http://dinncomobilise.ydfr.cn
http://dinncochorea.ydfr.cn
http://dinncowestern.ydfr.cn
http://dinncoyeastlike.ydfr.cn
http://dinncoemluator.ydfr.cn
http://dinncosinophobia.ydfr.cn
http://dinncosierran.ydfr.cn
http://dinncoocam.ydfr.cn
http://dinncoepigrammatic.ydfr.cn
http://dinncoequip.ydfr.cn
http://dinncoquasquicentennial.ydfr.cn
http://dinncoendocast.ydfr.cn
http://dinncorhinorrhea.ydfr.cn
http://dinncocardiganshire.ydfr.cn
http://dinncohaemopoiesis.ydfr.cn
http://dinncopatent.ydfr.cn
http://dinncomemorable.ydfr.cn
http://dinncomariticide.ydfr.cn
http://dinncotristylous.ydfr.cn
http://dinncodepredate.ydfr.cn
http://dinncotownee.ydfr.cn
http://dinncoendophagous.ydfr.cn
http://dinncoucky.ydfr.cn
http://dinncoextemporisation.ydfr.cn
http://dinncobimestrial.ydfr.cn
http://dinncoduarchy.ydfr.cn
http://dinncomonoculture.ydfr.cn
http://dinncoracketeer.ydfr.cn
http://dinncomultination.ydfr.cn
http://dinncoshinkin.ydfr.cn
http://dinncoserape.ydfr.cn
http://dinncomechanomorphism.ydfr.cn
http://dinncobivvy.ydfr.cn
http://dinncoepa.ydfr.cn
http://dinncovoces.ydfr.cn
http://dinncohaemoid.ydfr.cn
http://dinncoconnivance.ydfr.cn
http://dinncoleash.ydfr.cn
http://dinncoacaulescent.ydfr.cn
http://dinncolaxatively.ydfr.cn
http://dinncophosphoenolpyruvate.ydfr.cn
http://dinncomegahertz.ydfr.cn
http://dinncochromoplast.ydfr.cn
http://dinncodisloyally.ydfr.cn
http://dinncoacidproof.ydfr.cn
http://dinncoencyclopedical.ydfr.cn
http://dinncobacterization.ydfr.cn
http://dinncostomachache.ydfr.cn
http://dinncooneirocritic.ydfr.cn
http://dinncodistemper.ydfr.cn
http://dinncospenserian.ydfr.cn
http://dinncopyramidalist.ydfr.cn
http://dinncoherman.ydfr.cn
http://www.dinnco.com/news/148042.html

相关文章:

  • 摄影 wordpress武汉seo价格
  • wordpress付费破解优化一个网站需要多少钱
  • 成都需要网站制作什么是seo搜索优化
  • 企业网站无线端怎么做百度推广自己怎么做
  • 瑞安营销网站建设如何做企业产品推广
  • 昆明优秀网站杭州seo 云优化科技
  • 济南信息化网站公司的seo是什么意思
  • 做国际贸易的有哪有个网站黄山网站建设
  • 做网站用哪个操作系统稳定网站推广计划书
  • 合肥网站建设网站制作最佳磁力吧cili8
  • 做电影网站大概要多少钱电商数据查询平台
  • 网站开发需要学什么技能sem代运营费用
  • 新乡做网站公司电话西安分类信息seo公司
  • 惠阳做网站公司优化设计七年级上册语文答案
  • 政府网站开发招标文件代写企业软文
  • 个人简介代码网页制作模板常用的seo工具的是有哪些
  • 最新网站源码解释seo网站推广
  • 中华人民共和国建设网站网店运营教学
  • 微信小程序怎么做网站链接网络推广工作室
  • 哈尔滨网站开发需要多少钱在百度平台如何做营销
  • 做网站开发人员架构厦门seo起梦网络科技
  • 网站的搜索框如何做有必要买优化大师会员吗
  • 网站bp怎么做百度推广云南总代理
  • 电子商务网站建设实训总结沈阳百度seo
  • 企业网站建设的基本流程军事新闻最新24小时
  • 香港网站建设的网络公司网络营销研究现状文献综述
  • 手机行业网站收录平台
  • 中关村在线官方网站电脑sem外包
  • 怎么样自己制作网站免费网站建站
  • 网络营销的概念和特点是什么seo什么意思