Github Action 发布 Jar 到 Maven 中央仓库
作为一名 Java 开发者,将自己的项目发布到 Maven 中央仓库是一个非常重要的步骤。这不仅可以让更多的开发者发现和使用您的项目,也可以提高项目的知名度和影响力。
作为一名 Java 开发者,将自己的项目发布到 Maven 中央仓库是一个非常重要的步骤。这不仅可以让更多的开发者发现和使用您的项目,也可以提高项目的知名度和影响力。
本文源代码:https://github.com/chensoul/maven-site-github-example/ 。
让我们使用 Maven 创建一个简单的 Java 项目
官方下载安装地址:https://jfrog.com/community/download-artifactory-oss/ ,支持三种安装方式:
$ docker volume create --name nexus_data
$ docker run -d -p 8081:8081--name nexus -v nexus_data://nexus-data sonatype/nexus3
services:
nexus:
image: sonatype/nexus3
platform: linux/amd64
ports:
- "8081:8081"
volumes:
- nexus_data://nexus-data
- /etc/localtime://etc/localtime:ro
volumes:
nexus_data:
访问 http://127.0.0.1:8081/ 或者是 http://<your IP>:8081
,用户名为 admin ,初始密码在容器里的 /nexus-data/admin.password 文件
Today I Learned. 今天分享内容:购买新的 VPS 服务器、最近在做什么。