当前位置: 首页 > 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/422850.html

相关文章:

  • sentinel docker gateway k8s 集群 主从
  • 嘉兴高端网站定制进销存软件排行榜前十名
  • 一个wordpress的爱好者北京关键词优化平台
  • 第四部分:VTK常用类详解(第111章 vtkGlyph3D符号化类)
  • 联邦大型语言模型、多智能体大型语言模型是什么?
  • Apache Doris 入门与技术替代方案
  • Day31_【 NLP _1.文本预处理 _(1)文本处理的基本方法】
  • 网站服务器 内容更新linux主机做网站
  • 外贸网站主机选择十大网游人气排行榜
  • 3D 和 4D 世界建模:综述(上)
  • C++单头文件实现windows进程间通信(基于命名管道)
  • Apache Flink:流处理革命的领导者与新一代大数据计算引擎
  • YOLO入门教程(番外):深度学习概识
  • 如何在 Apache 中启用 HSTS 以增强网络安全性 ?
  • AI 基础知识二 神经网络概述
  • 点拓网站建设做爰的细节描述和过程网站
  • 外贸网站建设哪家有名网站建设技术包括哪些方面
  • 鸿蒙NEXT安全单元访问开发指南:构建可信应用的安全基石
  • 申请免费网站建设网址备案
  • 排序算法汇总,堆排序,归并排序,冒泡排序,插入排序
  • 第四部分:VTK常用类详解(第110章 vtkVolumeTextureMapper2D体绘制纹理映射器类)
  • 【Linux网络】Socket编程:UDP网络编程实现ChatServer
  • Context Compliance Attack:大模型安全的新兴威胁与防御策略
  • 如何通过限制网络访问来降低服务器被攻击的风险?
  • 吉林省建设部网站yy直播是干什么的
  • 13.stack容器和queue容器
  • 详解STL中stack_queue为什么选择deque作为默认容器
  • ubuntu下AstrBot +NapCat QQ机器人
  • 新天力:食品容器领域的领军先锋正式开启资本市场新征程
  • iOS 不上架怎么安装?多种应用分发方式解析,ipa 文件安装、企业签名、Ad Hoc 与 TestFlight 实战经验