Compare commits

...

2 Commits

Author SHA1 Message Date
ehlxr c8ad808a0b update deploy
continuous-integration/drone/push Build is passing Details
2021-01-21 18:04:19 +08:00
ehlxr a819c0179d add deploy 2021-01-21 17:43:41 +08:00
4 changed files with 103 additions and 15 deletions

View File

@ -23,4 +23,18 @@
<artifactId>logback-classic</artifactId>
</dependency>
</dependencies>
</project>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<!--<plugin>-->
<!-- <groupId>com.github.github</groupId>-->
<!-- <artifactId>site-maven-plugin</artifactId>-->
<!--</plugin>-->
</plugins>
</build>
</project>

View File

@ -39,10 +39,16 @@
</artifactSet>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<!--<plugin>-->
<!-- <groupId>com.github.github</groupId>-->
<!-- <artifactId>site-maven-plugin</artifactId>-->
<!--</plugin>-->
</plugins>
</build>
</project>

View File

@ -30,7 +30,8 @@
<execution>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>cn.ceres.did.ServerStarter</mainClass>
</transformer>
</transformers>
@ -38,6 +39,14 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>

85
pom.xml
View File

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