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

代做毕网站企业品牌类网站有哪些

代做毕网站,企业品牌类网站有哪些,手机自适应网站建设维护,重庆市造价工程新希望官网参考博客:将组件发布到maven中央仓库-CSDN博客 感谢这位博主。但是他的步骤有漏缺,相对进行补充 访问管理页面 网址:Maven Central 新注册账号,或者使用github快捷登录,建议使用github快捷登录 添加命名空间 注意&…

参考博客:将组件发布到maven中央仓库-CSDN博客 感谢这位博主。但是他的步骤有漏缺,相对进行补充

访问管理页面

网址:Maven Central

新注册账号,或者使用github快捷登录,建议使用github快捷登录

添加命名空间

注意,如果使用github快捷登录,默认携带 io.github.?? 的命名空间,如果自己的代码在github上,可以直接使用这个命名空间

如果代码在 码云 仓库,

提交后,提示需要验证空间,需要按照要求,到 码云 仓库创建一个对应名称的空内容的项目,然后点击认证。

如上图, io.gitee.wsitm 是我的命名空间

添加其他命名空间见 Register a Namespace - The Central Repository Documentation

创建代码仓库

注意:代码一定需要符合开源,可以使用MIT开源,或其他开源。创建开源极为容易,gitee默认会提示创建开源,有快捷入口,点击快速创建。

代码的pom.xml的配置

具体如下:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion><groupId>io.gitee.wsitm</groupId><artifactId>wsitm-clutter</artifactId><version>0.0.1</version><url>https://gitee.com/wsitm/wsitm-clutter.git</url><packaging>jar</packaging><name>${project.artifactId}</name><description>wsitm-clutter杂烩工具</description><dependencies></dependencies><licenses><license><name>MIT License</name><url>https://opensource.org/licenses/MIT</url><comments>The project itself is licensed under MIT License.</comments></license></licenses><developers><developer><name>yourname</name><email>youremail@qq.com</email></developer></developers><scm><connection>scm:git@gitee.com:wsitm/wsitm-clutter.git</connection><developerConnection>scm:git@gitee.com:wsitm/wsitm-clutter.git</developerConnection><url>https://gitee.com/wsitm/wsitm-clutter.git</url></scm><build><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-source-plugin</artifactId><version>3.3.0</version><executions><execution><id>attach-sources</id><goals><goal>jar-no-fork</goal></goals></execution></executions></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-javadoc-plugin</artifactId><version>2.9.1</version><configuration><aggregate>true</aggregate><charset>UTF-8</charset><encoding>UTF-8</encoding><docencoding>UTF-8</docencoding><additionalparam>-Xdoclint:none</additionalparam></configuration><executions><execution><id>attach-javadocs</id><goals><goal>jar</goal></goals></execution></executions></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-gpg-plugin</artifactId><version>3.1.0</version><executions><execution><id>sign-artifacts</id><phase>verify</phase><goals><goal>sign</goal></goals></execution></executions></plugin><!--maven插件--><plugin><groupId>org.sonatype.central</groupId><artifactId>central-publishing-maven-plugin</artifactId><version>0.4.0</version><extensions>true</extensions><configuration><publishingServerId>central</publishingServerId><tokenAuth>true</tokenAuth></configuration></plugin></plugins></build>
</project>

生成GPG密钥

作用:这是用于给自身源码加签名

下载GPG管理软件:https://gnupg.org/download/index.html


点击进入下载页面

如上图,当然,如果有钱也可以捐献一些。我不一样,我白嫖

安装完成之后,使用命令生成密钥,命令:  gpg –gen-key

生成之后

推送密钥到远程服务端

命令:  gpg --keyserver hkp://keyserver.ubuntu.com --send-keys [生成密钥后的标识]

例子:gpg --keyserver hkp://keyserver.ubuntu.com --send-keys 2*************F6449

服务:--keyserver 有三个官方网址可以切换

  • keyserver.ubuntu.com
  • keys.openpgp.org
  • pgp.mit.edu

注意:可能推送不成功,三个网址我都测试不成功,不知道什么原因,只能使用另一种方法

公钥如下:

复制全部内容,手动上传,打开服务网址:  https://keyserver.ubuntu.com/#

生成token

得到的token格式如下:

maven的setting.xml的配置

具体如下:

<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"><servers><server><id>central</id><username>${tokenId}</username><password>${tokenPass}</password></server></servers><profiles><profile><id>gpg</id><properties><gpg.executable>gpg</gpg.executable><gpg.keyname>youremail@qq.com</gpg.keyname><gpg.passphrase>${pgp-password}</gpg.passphrase><gpg.useagent>true</gpg.useagent></properties></profile></profiles>
</settings>

发布到仓库

进入代码目录,执行命令:  mvn clean deploy

发布完成,打开管理页面


提交后需要验证,如果正常

如果异常,查看错误描述

去仓库查看自己的项目

阿里云:  仓库服务

官方:  Central Repository:

官方页面:https://mvnrepository.com/

注:阿里云,和官方能在审核后1小时内能查到自己的项目,但是官方页面需要好多天才能查询。但直接在maven中引用即可,并不影响使用

http://www.dinnco.com/news/70646.html

相关文章:

  • 怎样做克隆网站谷歌平台推广外贸
  • 学做网站网十大新媒体平台有哪些
  • java如何做网站seo网站优化服务
  • 网站开发外包 价格违禁网站用什么浏览器
  • 外贸企业商城网站建设seowhy
  • 印刷网站源码国内b站不收费网站有哪些
  • 网站后台栏目管理百度经验官网首页
  • 云南省保山建设网站百度热搜榜第一
  • 东莞设计网站服务的公司成年s8视频加密线路
  • 公司做网站的价格爱站网站seo查询工具
  • 做招聘网站代理商需要多少钱有哪些搜索引擎
  • 海外 推广网站开发新客户的十大渠道
  • 如何恢复网站首页的排名 站长营销渠道策略
  • wordpress 未登录提示seo优化网站模板
  • 做设计时可以参考的网站一份完整的品牌策划方案
  • 濮阳做网站今日热搜榜前十名
  • 内蒙古住房和城乡建设厅网站 工程建设管理网络营销策划方案
  • 网站备案后打不开免费推广产品的网站
  • 专业型网站网站怎样提高百度推广排名
  • 美丽说网站模板搜索百度app下载
  • 自己做网站视频教程推广引流渠道平台
  • 网站建设 方案书湖南seo优化推荐
  • 郑州网站建设服务商湖南正规关键词优化
  • 出色的网站设计百度推广优化师培训
  • 网站注册系统源码赣州seo外包怎么收费
  • 福州做网站的网店运营推广登录入口
  • 简述如何对网站进行推广?营销策略有哪些有效手段
  • 企业网站怎么做外链外链交易平台
  • php wordpress 等优化大师安卓版
  • 做家电维修网站能接到单吗免费舆情监测平台