Skip to content

Commit

Permalink
build: skip binary distro on release to maven
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun committed Jan 5, 2023
1 parent ea60520 commit 594525a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 27 deletions.
19 changes: 0 additions & 19 deletions distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,4 @@
<module>commandline</module>
<module>native</module>
</modules>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<configuration>
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
</configuration>
</plugin>
</plugins>
</build>
</project>
21 changes: 13 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
<modules>
<module>hawkeye-command</module>
<module>hawkeye-core</module>
<module>distribution</module>
</modules>

<properties>
Expand All @@ -80,7 +79,6 @@

<!-- bundled maven plugins -->
<maven-assembly-plugin.version>3.3.0</maven-assembly-plugin.version>
<maven-deploy-plugin.version>3.0.0</maven-deploy-plugin.version>
<maven-release-plugin.version>3.0.0-M6</maven-release-plugin.version>
<maven-shade-plugin.version>3.4.1</maven-shade-plugin.version>
<maven-surefire-plugin.version>3.0.0-M7</maven-surefire-plugin.version>
Expand Down Expand Up @@ -192,11 +190,6 @@
<artifactId>maven-shade-plugin</artifactId>
<version>${maven-shade-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>${maven-deploy-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
Expand Down Expand Up @@ -312,12 +305,24 @@
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>distribution</id>
<activation>
<activeByDefault>true</activeByDefault>
<property>
<name>!release</name>
</property>
</activation>
<modules>
<module>distribution</module>
</modules>
</profile>
</profiles>

</project>

0 comments on commit 594525a

Please sign in to comment.