update deploy
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
ehlxr 2021-01-21 18:04:19 +08:00
parent a819c0179d
commit c8ad808a0b
3 changed files with 54 additions and 46 deletions

View File

@ -31,10 +31,10 @@
<artifactId>maven-source-plugin</artifactId> <artifactId>maven-source-plugin</artifactId>
</plugin> </plugin>
<plugin> <!--<plugin>-->
<groupId>com.github.github</groupId> <!-- <groupId>com.github.github</groupId>-->
<artifactId>site-maven-plugin</artifactId> <!-- <artifactId>site-maven-plugin</artifactId>-->
</plugin> <!--</plugin>-->
</plugins> </plugins>
</build> </build>
</project> </project>

View File

@ -45,10 +45,10 @@
<artifactId>maven-source-plugin</artifactId> <artifactId>maven-source-plugin</artifactId>
</plugin> </plugin>
<plugin> <!--<plugin>-->
<groupId>com.github.github</groupId> <!-- <groupId>com.github.github</groupId>-->
<artifactId>site-maven-plugin</artifactId> <!-- <artifactId>site-maven-plugin</artifactId>-->
</plugin> <!--</plugin>-->
</plugins> </plugins>
</build> </build>
</project> </project>

84
pom.xml
View File

@ -56,10 +56,10 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId> <artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version> <version>2.8.2</version>
<configuration> <!--<configuration>-->
<altDeploymentRepository>maven.repo::default::file://${project.build.directory}/mvn-repo <!-- <altDeploymentRepository>maven.repo::default::file://${project.build.directory}/mvn-repo-->
</altDeploymentRepository> <!-- </altDeploymentRepository>-->
</configuration> <!--</configuration>-->
</plugin> </plugin>
<plugin> <plugin>
@ -90,46 +90,54 @@
</executions> </executions>
</plugin> </plugin>
<plugin> <!--<plugin>-->
<!-- Deploy the web site --> <!-- &lt;!&ndash; Deploy the web site &ndash;&gt;-->
<groupId>com.github.github</groupId> <!-- <groupId>com.github.github</groupId>-->
<artifactId>site-maven-plugin</artifactId> <!-- <artifactId>site-maven-plugin</artifactId>-->
<version>0.12</version> <!-- <version>0.12</version>-->
<executions> <!-- <executions>-->
<execution> <!-- <execution>-->
<goals> <!-- <goals>-->
<goal>site</goal> <!-- <goal>site</goal>-->
</goals> <!-- </goals>-->
<!-- select the Maven phase in which the plugin will be executed --> <!-- &lt;!&ndash; select the Maven phase in which the plugin will be executed &ndash;&gt;-->
<phase>deploy</phase> <!-- <phase>deploy</phase>-->
<configuration> <!-- <configuration>-->
<!-- Plugin configuration goes here --> <!-- &lt;!&ndash; Plugin configuration goes here &ndash;&gt;-->
<server>github</server> <!-- <server>github</server>-->
<!-- The commit message --> <!-- &lt;!&ndash; The commit message &ndash;&gt;-->
<message>init git maven repository</message> <!-- <message>init git maven repository</message>-->
<!-- The location where the site is uploaded --> <!-- &lt;!&ndash; The location where the site is uploaded &ndash;&gt;-->
<repositoryName>mvn-repository</repositoryName> <!-- github repo name --> <!-- <repositoryName>mvn-repository</repositoryName> &lt;!&ndash; github repo name &ndash;&gt;-->
<repositoryOwner>ehlxr</repositoryOwner> <!-- organization or user name --> <!-- <repositoryOwner>ehlxr</repositoryOwner> &lt;!&ndash; organization or user name &ndash;&gt;-->
<!-- Use merge or override the content --> <!-- &lt;!&ndash; Use merge or override the content &ndash;&gt;-->
<merge>true</merge> <!-- <merge>true</merge>-->
<outputDirectory>${project.build.directory}/mvn-repo</outputDirectory> <!-- <outputDirectory>${project.build.directory}/mvn-repo</outputDirectory>-->
<branch>refs/heads/mvn-repo</branch> <!-- <branch>refs/heads/mvn-repo</branch>-->
<!--<includes>--> <!-- &lt;!&ndash;<includes>&ndash;&gt;-->
<!-- <include>**/*</include>--> <!-- &lt;!&ndash; <include>**/*</include>&ndash;&gt;-->
<!--</includes>--> <!-- &lt;!&ndash;</includes>&ndash;&gt;-->
</configuration> <!-- </configuration>-->
</execution> <!-- </execution>-->
</executions> <!-- </executions>-->
</plugin> <!--</plugin>-->
</plugins> </plugins>
</pluginManagement> </pluginManagement>
</build> </build>
<!--<distributionManagement>-->
<!-- <repository>-->
<!-- <id>maven.repo</id>-->
<!-- <name>Local Staging Repository</name>-->
<!-- <url>file://${project.build.directory}/mvn-repo</url>-->
<!-- </repository>-->
<!--</distributionManagement>-->
<distributionManagement> <distributionManagement>
<repository> <repository>
<id>maven.repo</id> <id>github</id>
<name>Local Staging Repository</name> <name>GitHub Apache Maven Packages</name>
<url>file://${project.build.directory}/mvn-repo</url> <url>https://maven.pkg.github.com/ehlxr/mvn-repository</url>
</repository> </repository>
</distributionManagement> </distributionManagement>