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

深圳网站营销公司网站做实名验证

深圳网站营销公司,网站做实名验证,烟台建设用地规划查询网站,互联网服务网站建设目的将自己的jar包发布到maven中央仓库(2025-08-29) 一、注册账号 https://central.sonatype.com/ 二、新建命名空间 这里的命名空间需要填写github的用户名因为我的用户名是daimao0,所以命名空间填io.github.daimao0 这里要求你建一个名为ubuxfc5q7r的公共项目,先创…

将自己的jar包发布到maven中央仓库(2025-08-29)

一、注册账号

https://central.sonatype.com/

在这里插入图片描述
在这里插入图片描述

二、新建命名空间

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
这里的命名空间需要填写github的用户名因为我的用户名是daimao0,所以命名空间填io.github.daimao0
在这里插入图片描述
在这里插入图片描述
这里要求你建一个名为ubuxfc5q7r的公共项目,先创建项目在点confrim
在这里插入图片描述
在这里插入图片描述

三、创建PUSH的账号密码

在这里插入图片描述
在这里插入图片描述

四、GPG准备

GPG 用于创建asc文件用于验证你的文件的正确性和安全性,我们直接去官网下载:

https://gnupg.org/download/index.html
在这里插入图片描述
在这里插入图片描述
用于我是arch-linux, linux系统一般自带gpg
在这里插入图片描述
在这里插入图片描述
输入两遍密码
在这里插入图片描述
这里的密钥发布到keyserver.ubuntu.com服务器上,把你的密钥替换掉 4CB3D9314CD5F1277582A11F4ADBA3851D627E38
备用地址:

keyserver.ubuntu.com 
keys.openpgp.org pgp.mit.edu
gpg --keyserver keyserver.ubuntu.com --send-keys 4CB3D9314CD5F1277582A11F4ADBA3851D627E38

在这里插入图片描述

验证密钥

如果出现了下面的内容说明发布成功
在这里插入图片描述

五、发布jar包

完整pom示例

<?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.github.daimao0</groupId><artifactId>easy-http</artifactId><version>1.0.0</version><name>easy-http</name><description>A simple and easy-to-use HTTP client library for Java</description> <!-- 项目描述 --><url>https://github.com/daimao0/easy-http</url> <!-- 项目URL --><properties><maven.compiler.source>1.8</maven.compiler.source><maven.compiler.target>1.8</maven.compiler.target><project.build.sourceEncoding>UTF-8</project.build.sourceEncoding></properties><dependencies><dependency><groupId>com.squareup.okhttp3</groupId><artifactId>okhttp</artifactId><version>4.12.0</version></dependency><dependency><groupId>com.fasterxml.jackson.core</groupId><artifactId>jackson-databind</artifactId><version>2.19.2</version></dependency></dependencies><licenses><license><name>The Apache Software License, Version 2.0</name><url>http://www.apache.org/licenses/LICENSE-2.0.txt</url></license></licenses><developers><developer><name>daimao0</name><email>daimao2817@gmail.com</email></developer></developers><scm><url>https://github.com/daimao0/easy-http</url><connection>scm:git:https://github.com/daimao0/easy-http.git</connection><developerConnection>scm:git:ssh://git@github.com/daimao0/easy-http.git</developerConnection></scm><profiles><profile><id>ossrh</id><build><plugins><!--   central发布插件    --><plugin><groupId>org.sonatype.central</groupId><artifactId>central-publishing-maven-plugin</artifactId><version>0.5.0</version><extensions>true</extensions><configuration><publishingServerId>ossrh</publishingServerId><tokenAuth>true</tokenAuth></configuration></plugin><!--   source源码插件 --><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-source-plugin</artifactId><version>3.3.1</version><executions><execution><id>attach-sources</id><goals><goal>jar-no-fork</goal></goals></execution></executions></plugin><!--   javadoc插件 --><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-javadoc-plugin</artifactId><version>3.10.0</version><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.2.5</version><executions><execution><id>sign-artifacts</id><phase>verify</phase><goals><goal>sign</goal></goals></execution></executions></plugin></plugins></build></profile></profiles>
</project>

pom注意点

下面的配置必须都有

    <groupId>io.github.daimao0</groupId><artifactId>easy-http</artifactId><version>1.0.0</version><name>easy-http</name><description>A simple and easy-to-use HTTP client library for Java</description> <!-- 项目描述 --><url>https://github.com/daimao0/easy-http</url> <!-- 项目URL --><licenses><license><name>The Apache Software License, Version 2.0</name><url>http://www.apache.org/licenses/LICENSE-2.0.txt</url></license></licenses><developers><developer><!--   central发布插件 替换你自己的用户名和邮箱和pgp保持一致   --><name>daimao0</name><email>daimao2817@gmail.com</email></developer></developers><!--   scm 改成你自己的项目地址  --><scm><url>https://github.com/daimao0/easy-http</url><connection>scm:git:https://github.com/daimao0/easy-http.git</connection><developerConnection>scm:git:ssh://git@github.com/daimao0/easy-http.git</developerConnection></scm><profiles><profile><id>ossrh</id><build><plugins><!--   central发布插件    --><plugin><groupId>org.sonatype.central</groupId><artifactId>central-publishing-maven-plugin</artifactId><version>0.5.0</version><extensions>true</extensions><configuration><publishingServerId>ossrh</publishingServerId><tokenAuth>true</tokenAuth></configuration></plugin><!--   source源码插件 --><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-source-plugin</artifactId><version>3.3.1</version><executions><execution><id>attach-sources</id><goals><goal>jar-no-fork</goal></goals></execution></executions></plugin><!--   javadoc插件 --><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-javadoc-plugin</artifactId><version>3.10.0</version><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.2.5</version><executions><execution><id>sign-artifacts</id><phase>verify</phase><goals><goal>sign</goal></goals></execution></executions></plugin></plugins></build></profile></profiles>

然后就是执行

mvn clean deploy

在这里插入图片描述
在这里插入图片描述
点一下发布之后就等待就好了

http://www.dtcms.com/a/449669.html

相关文章:

  • python编写AI生常用匡架及使用指令集
  • GridView 中使用重绘边界的实用建议
  • FPGA学习篇——Verilog学习之计数器的实现
  • 网站建设万网浙江建设网站公司
  • 刷粉网站推广快点商标设计注册
  • MySQL 配置管理与日志系统完全指南:从基础到高级优化
  • Leecode hot100 - 279. 完全平方数
  • 珠宝营销型网站设计珠海做网站及推广
  • 视频原创度检测算法对比
  • Spring MVC 九大组件源码深度剖析(九):FlashMapManager - 重定向数据的守护者
  • 网站设计上市公司继续浏览此网站(不推荐)
  • The “Launch” - 价值交付与灰度发布
  • 做网站公司(信科网络)网站开发外包报价
  • libopenssl1_0_0-1.0.2p-3.49.1.x86_64安装教程(RPM包手动安装步骤+依赖解决附安装包下载)
  • 有些人做网站不用钱的 对吗网站建设经典范例
  • C52-二级指针
  • 【微科普】PID 多久计算一次?(第四弹):嵌入式系统中 PID 控制周期的科学选择与实践
  • 目前流行的网站开发设计廊坊商昊网站建设
  • 《WSGI 到 ASGI:Python Web 架构的演进与桥梁之道》
  • 数据库完整指南:从基础到 Django 集成
  • 福建设计招聘网站seo sem什么意思
  • 用scala做的网站视频网址链接哪里找
  • 基于pyqt5实现的视频抽帧工具源码+项目说明用于目标检测图片采集
  • 浙江省建设局房管科网站建筑模板915 1830价格
  • 怎么做公司官方网站苏州教育网站建设
  • AI Agent:重塑未来智能的核心驱动力
  • node-red 采集CNC?
  • Linux驱动开发与BuildRoot是什么关系与其的应用场景
  • 如何自己做企业网站网站建设与开发的论文
  • Windows批处理进阶使用教程