Skip to content

SilenceShine/maven-repository-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

maven-repository-plugin

maven自定义仓库插件

maven-repository-github-plugin

引入包

<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为仓库的插件

settings.xml

<servers>
    <server>
        <id>io.github.SilenceShine</id>
        <password>GITHUB TOKEN</password>
    </server>
</servers>

pom.xml

<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>

About

maven自定义仓库插件

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages