Add maven source plugin for deploy source code jar

This commit is contained in:
hongqiaowei
2021-11-08 18:21:29 +08:00
parent 934351f1dd
commit 3fbb5d5cb7
5 changed files with 64 additions and 0 deletions

35
pom.xml
View File

@@ -462,6 +462,29 @@
</license>
</licenses>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<configuration>
<attach>true</attach>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<!--<profile>
<id>local</id>
@@ -566,4 +589,16 @@
</distributionManagement>
</profile>
</profiles>
<distributionManagement>
<repository>
<id>nexus-releases</id>
<name>local private nexus</name>
<url>http://gzmaven.bestwehotel.com/nexus/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>nexus-snapshots</id>
<name>local private nexus</name>
<url>http://gzmaven.bestwehotel.com/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>
</project>