Skip to content

Commit

Permalink
Fixed Maven release profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
funfried committed Sep 29, 2024
1 parent 3148d1f commit cdeb2cc
Showing 1 changed file with 17 additions and 25 deletions.
42 changes: 17 additions & 25 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -649,36 +649,28 @@
</reporting>

<profiles>
<profile>
<id>github</id>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub funfried Apache Maven Packages</name>
<url>https://maven.pkg.github.com/funfried/nb-editor-close-left-right</url>
</repository>
<snapshotRepository>
<id>github</id>
<url>https://maven.pkg.github.com/funfried/nb-editor-close-left-right</url>
</snapshotRepository>
</distributionManagement>
</profile>
<profile>
<id>sonatype-oss-release</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>regex-snapshot-property</id>
<phase>validate</phase>
<goals>
<goal>regex-property</goal>
</goals>
<configuration>
<name>project.version.isSnapshot</name>
<value>${project.version}</value>
<regex>.*(-SNAPSHOT)$</regex>
<replacement>true</replacement>
<failIfNoMatch>false</failIfNoMatch>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<configuration>
<skipPublishing>${project.version.isSnapshot}</skipPublishing>
</configuration>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down

0 comments on commit cdeb2cc

Please sign in to comment.