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

网站维护年费做it行业招标网站

网站维护年费,做it行业招标网站,普通电脑怎么做网站服务器吗,摄影网站建设的论文手把手教你如何将项目发布到Maven中央仓库(附步骤及常见问题解决方法) 业余时间写了个轻量级的权限控制框架 light-security #xff0c;并发布到了 Maven 中央仓库。发布时的操作步骤还挺多#xff0c;我这个记性是记不住的#xff0c;所以记录一下#xff0c;便于以后查…手把手教你如何将项目发布到Maven中央仓库(附步骤及常见问题解决方法) 业余时间写了个轻量级的权限控制框架 light-security 并发布到了 Maven 中央仓库。发布时的操作步骤还挺多我这个记性是记不住的所以记录一下便于以后查阅也希望对大家有帮助。 一、Sonartype相关准备工作 前往 https://issues.sonatype.org/ 注册账号并记好账号和密码后面有用。 前往 https://issues.sonatype.org/secure/Dashboard.jspa 点击导航栏上的 Create 按钮并按提示填写项目信息 个人为项目 light-security-spring-boot-starter 填写的信息如 https://issues.sonatype.org/browse/OSSRH-47914 所示供大家参考。 创建 Issue 后等待审核即可。一般会在一个工作日内审核完成。当Issue的Status变为RESOLVED 或 FIXED 后即可进行下一步操作。 二、GPG相关准备工作 2.1 安装GPG Mac安装GPG brew install gpgUbuntu安装GPG sudo apt-get install gnupg2.2 GPG常用命令 gpg --version 检查安装成功没 gpg --gen-key 生成密钥对 gpg --list-keys 查看公钥 gpg --keyserver 服务器地址 --send-keys 公钥ID 将公钥发布到 PGP 密钥服务器 gpg --keyserver 服务器地址 --recv-keys 公钥ID 查询公钥是否发布成功2.3 生成秘钥 gpg --gen-key 按照提示输入姓名/邮箱然后按O即可生成。如果遇到问题可详见”遇到的问题一节”。 2.4 查看本地秘钥 gpg --list-keys结果类似如下 ➜ ~ gpg --list-keys /Users/itmuch.com/.gnupg/pubring.kbx ------------------------------------ pub rsa2048 2019-04-20 [SC] [有效至2021-04-19][xxxxxxxxx] uid [ 绝对 ] itmuch.com eacdy0000126.com sub rsa2048 2019-04-20 [E] [有效至2021-04-19]三、配置Maven TIPS 可参考官方文档配置 https://central.sonatype.org/pages/apache-maven.html 1 修改项目的pom.xml添加如下内容 licenseslicensenameThe Apache Software License, Version 2.0/nameurlhttp://www.apache.org/licenses/LICENSE-2.0.txt/url/license /licensesdevelopersdevelopernameitmuch/nameemaileacdy0000126.com/emailurlhttps://github.com/eacdy/url/developer /developersscmurlhttps://github.com/eacdy/light-security/urlconnectionhttps://github.com/eacdy/light-security.git/connectiondeveloperConnectionhttps://github.com/eacdy/developerConnection /scmdistributionManagementsnapshotRepositoryidossrh/idurlhttps://oss.sonatype.org/content/repositories/snapshots/url/snapshotRepositoryrepositoryidossrh/idurlhttps://oss.sonatype.org/service/local/staging/deploy/maven2//url/repository /distributionManagementprofilesprofileidrelease/idbuildpluginsplugingroupIdorg.sonatype.plugins/groupIdartifactIdnexus-staging-maven-plugin/artifactIdversion1.6.7/versionextensionstrue/extensionsconfigurationserverIdossrh/serverIdnexusUrlhttps://oss.sonatype.org//nexusUrlautoReleaseAfterClosetrue/autoReleaseAfterClose/configuration/pluginplugingroupIdorg.apache.maven.plugins/groupIdartifactIdmaven-release-plugin/artifactIdversion2.5/versionconfigurationautoVersionSubmodulestrue/autoVersionSubmodulesuseReleaseProfilefalse/useReleaseProfilereleaseProfilesrelease/releaseProfilesgoalsdeploy/goals/configuration/pluginplugingroupIdorg.apache.maven.plugins/groupIdartifactIdmaven-source-plugin/artifactIdversion2.2.1/versionexecutionsexecutionidattach-sources/idgoalsgoaljar-no-fork/goal/goals/execution/executions/pluginplugingroupIdorg.apache.maven.plugins/groupIdartifactIdmaven-javadoc-plugin/artifactIdversion2.9.1/versionexecutionsexecutionidattach-javadocs/idgoalsgoaljar/goal/goals/execution/executions/pluginplugingroupIdorg.apache.maven.plugins/groupIdartifactIdmaven-gpg-plugin/artifactIdversion1.5/versionexecutionsexecutionidsign-artifacts/idphaseverify/phasegoalsgoalsign/goal/goals/execution/executions/plugin/plugins/build/profile /profiles可参考我的配置https://github.com/eacdy/light-security/blob/master/light-security-spring-boot-starter/pom.xml 2 修改 $MAVEN_HOME/conf/settings.xml 文件(即你的Maven配置文件)添加如下内容 server!-- 这里的ID要和distributionManagement.repository.id一致 --idossrh/id!-- https://issues.sonatype.org/的账号 --username账号/username!-- https://issues.sonatype.org/的密码 --password密码/password /server四、修改项目版本 用如下命令修改项目的版本例如1.0.1-RELEASE 。 mvn versions:set -DnewVersion1.0.1-RELEASE当然也可手动修改版本不过当项目比较复杂module比较多时手动修改就会比较麻烦而且容易出错。建议用命令修改。 五、发布 执行如下命令即可将依赖发布到中央仓库。 mvn clean install deploy -P release不出意外构建会报xxx服务器无法找到GPG的异常。原因是前文生成的秘钥尚未发布到key server。keyserver的地址会在异常中打印出来。我的项目报的是 http://keys.gnupg.net:11371/ 。于是执行 gpg --keyserver http://keys.gnupg.net:11371/ --send-keys [xxxxxxxxx] 其中的[xxxxxxxxx]可用gpg --list-keys显示出来。然后再次执行如下命令 mvn clean install deploy -P release此时即可发布成功。发布完使用如下命令重置为SNAPSHOT版本 mvn versions:set -DnewVersion1.0.2-SNAPHOST六、遇到的问题 6.1 执行 gpg --gen-key 报 Key generation failed: Timeout 的异常 解决方案 rm -rf ~/.gnupg gpg --gen-key6.2 执行mvn clean install deploy -P release 时报gpg: signing failed: Inappropriate ioctl for device 原因是当前终端无法弹出密码输入页面。 解决方案 export GPG_TTY$(tty) mvn clean install deploy -P release6.3 连不上 https://oss.sonatype.org 科学上网在某些城市有被查水表、罚款的风险自己找梯子吧飞到香港、澳门或者海外等能没有墙的地方然后发布应用发布完再回国一种人傻钱多的方式移民更彻底的解决方案但如果想看抗日神剧或者听某些国内音乐可能要用梯子翻回来…… TIPS 如果你在发布时遇到其他问题也可添加我的微信 jumping_me 我尽量帮助到你。
http://www.pierceye.com/news/576805/

相关文章:

  • 网站安全证书出错怎么做dw网页制作素材网站
  • 收录查询 站长工具给网站做解答是干嘛的
  • 成都哪些公司可以做网站建网站现软件
  • 深圳wap网站建设传奇霸主页游
  • 做网站首先要干什么营销软文200字
  • 帝国cms做的网站私人定制女装店
  • 网站建设南沙wordpress video
  • 网站建设开票应该开哪个行业什么网站可以免费做视频的软件
  • 百度seo查询收录查询网站推广策划案seo教程
  • 如何免费建立网站中贤建设集团网站
  • 如何做转运网站黄聪 wordpress
  • 临海市住房与城乡建设规划局网站宁波网络推广培训
  • go 网站开发自己在线制作logo
  • 重庆市网站建设公司企业服务账号
  • 网站建设的市场情况网站系统里不能打印
  • 网站如何适应屏幕做网站时无法上传图片
  • 网站的橱窗怎么做嘉兴住房和城乡建设厅网站
  • 吉林省城乡建设官方网站163企业邮箱登录入口官网
  • 做网站参考文献某企业网站建设方案2000字
  • 网站托管哪家好织梦购物网站整站源码
  • 怎么做网站的优化排名wordpress的目录结构(一)
  • 个人可以做公益网站吗美食杰网站的建设目的
  • 宿迁公司企业网站建设《网站基础建设-首保》
  • 做全屏式网站尺寸是多大国外虚拟主机 两个网站
  • 黑龙江建设网站招聘广西住房和城乡建设厅培训中心官方网站
  • 做网站客户最关心的是什么制作网页原型的目的
  • 电子商务网站建设工具河南安阳吧
  • 南通网站建设公司哪个好肯德基的网站建设
  • 高端大气网站源码wordpress做双语网站
  • 360网站推广东莞凤岗