Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
skip deployment of a few examples
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Mar 16, 2023
1 parent 9f2aa84 commit cc5c9a8
Show file tree
Hide file tree
Showing 7 changed files with 110 additions and 2 deletions.
21 changes: 20 additions & 1 deletion org.eclipse.xtext.testlanguages/pom.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.xtext</groupId>
Expand All @@ -11,4 +13,21 @@
<name>Common Xtext Testlanguages - Runtime</name>
<description>Common Xtext Testlanguages for UI and Runtime - Runtime</description>

<profiles>
<profile>
<id>sonatype-oss-release</id>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<configuration>

This comment has been minimized.

Copy link
@cdietrich

cdietrich Mar 16, 2023

Member

@LorenzoBettini does this work for snapshot deoployments too?

This comment has been minimized.

Copy link
@cdietrich

cdietrich Mar 16, 2023

Member

the classic maven.deploy.skip wont work?

This comment has been minimized.

Copy link
@LorenzoBettini

LorenzoBettini Mar 16, 2023

Author Contributor

@cdietrich Yes: the profile is the same for snapshots and releases. It is the Maven distribution server that understands whether you're deploying a snapshot (version with -SNAPSHOT) or a release (no -SNAPSHOT).

The classic property you mention does not work because we're using the nexus-staging-plugin to avoid the additional manual step of releasing staging artifacts; this plugin requires that configuration for skipping.

This comment has been minimized.

Copy link
@cdietrich

cdietrich Mar 16, 2023

Member

thx

This comment has been minimized.

Copy link
@LorenzoBettini

LorenzoBettini Mar 16, 2023

Author Contributor

@cdietrich To be honest, I forgot to ask you whether you'd be OK with the nexus-staging-plugin. However, that's standard to use that plugin, and it's also suggested here https://wiki.eclipse.org/Jenkins

This comment has been minimized.

Copy link
@cdietrich

cdietrich Mar 16, 2023

Member

i am ok with it. we will test it with a m0 or the m1

<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>
17 changes: 17 additions & 0 deletions org.eclipse.xtext.web.example.entities.ide/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,23 @@
</dependency>
</dependencies>

<profiles>
<profile>
<id>sonatype-oss-release</id>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<configuration>
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<build>
<plugins>
<plugin>
Expand Down
17 changes: 17 additions & 0 deletions org.eclipse.xtext.web.example.entities/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,23 @@
</dependency>
</dependencies>

<profiles>
<profile>
<id>sonatype-oss-release</id>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<configuration>
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<build>
<plugins>
<plugin>
Expand Down
17 changes: 17 additions & 0 deletions org.eclipse.xtext.web.example.jetty/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,23 @@
</dependency>
</dependencies>

<profiles>
<profile>
<id>sonatype-oss-release</id>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<configuration>
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<build>
<pluginManagement>
<plugins>
Expand Down
17 changes: 17 additions & 0 deletions org.eclipse.xtext.web.example.statemachine.ide/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,23 @@
</dependency>
</dependencies>

<profiles>
<profile>
<id>sonatype-oss-release</id>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<configuration>
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<build>
<plugins>
<plugin>
Expand Down
17 changes: 17 additions & 0 deletions org.eclipse.xtext.web.example.statemachine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,23 @@
</dependency>
</dependencies>

<profiles>
<profile>
<id>sonatype-oss-release</id>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<configuration>
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<build>
<plugins>
<plugin>
Expand Down
6 changes: 5 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.3</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
Expand Down Expand Up @@ -516,6 +515,11 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.3</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
Expand Down

0 comments on commit cc5c9a8

Please sign in to comment.