maven自定义仓库插件
引入包
<repository>
<id>github</id>
<name>SilenceShine maven-repository-plugin Maven Packages</name>
<url>https://maven.pkg.github.com/SilenceShine/maven-repository-plugin</url>
</repository>
自定义 github为仓库的插件
<servers>
<server>
<id>io.github.SilenceShine</id>
<password>GITHUB TOKEN</password>
</server>
</servers>
<distributionManagement>
<repository>
<id>Local</id>
<name>Local Repository</name>
<url>file://${project.build.directory}/mvn-repo</url>
</repository>
</distributionManagement>
<build>
<plugins>
<plugin>
<groupId>io.github.SilenceShine</groupId>
<artifactId>maven-repository-github-plugin</artifactId>
<version>${maven-repository-github-plugin.version}</version>
<configuration>
<!-- token 存在 及不会从setting.xml 获取password -->
<id>io.github.SilenceShine</id>
<token>GITHUB TOKEN</token>
<owner>SilenceShine</owner>
<repository>maven-repository</repository>
<branchRelease>release</branchRelease>
<branchSnapshot>snapshot</branchSnapshot>
<message>init maven-repository-github-plugin 0.0.1</message>
</configuration>
<executions>
<execution>
<phase>deploy</phase>
<goals>
<goal>github</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>io.github.SilenceShine</id>
<url>https://raw.githubusercontent.com/SilenceShine/maven-repository/release</url>
</repository>
</repositories>
<dependency>
<groupId>io.github.SilenceShine</groupId>
<artifactId>shine-framework-core</artifactId>
<version>0.3.1</version>
</dependency>