Skip to content

Commit 814428f

Browse files
committed
Try a different approach with nexus-staging-maven-plugin
1 parent 4c4c7a2 commit 814428f

File tree

23 files changed

+93
-87
lines changed

23 files changed

+93
-87
lines changed

milo-examples/client-examples/pom.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,6 @@
5959
<skip>true</skip>
6060
</configuration>
6161
</plugin>
62-
<plugin>
63-
<groupId>org.sonatype.plugins</groupId>
64-
<artifactId>nexus-staging-maven-plugin</artifactId>
65-
<version>${nexus-staging-maven-plugin.version}</version>
66-
<configuration>
67-
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
68-
</configuration>
69-
</plugin>
7062
<plugin>
7163
<groupId>org.apache.maven.plugins</groupId>
7264
<artifactId>maven-shade-plugin</artifactId>

milo-examples/pom.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,6 @@
4343
<skip>true</skip>
4444
</configuration>
4545
</plugin>
46-
<plugin>
47-
<groupId>org.sonatype.plugins</groupId>
48-
<artifactId>nexus-staging-maven-plugin</artifactId>
49-
<version>${nexus-staging-maven-plugin.version}</version>
50-
<configuration>
51-
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
52-
</configuration>
53-
</plugin>
5446
</plugins>
5547

5648
<pluginManagement>

milo-examples/server-examples/pom.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,6 @@
5858
<skip>true</skip>
5959
</configuration>
6060
</plugin>
61-
<plugin>
62-
<groupId>org.sonatype.plugins</groupId>
63-
<artifactId>nexus-staging-maven-plugin</artifactId>
64-
<version>${nexus-staging-maven-plugin.version}</version>
65-
<configuration>
66-
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
67-
</configuration>
68-
</plugin>
6961
<plugin>
7062
<groupId>org.apache.maven.plugins</groupId>
7163
<artifactId>maven-shade-plugin</artifactId>

opc-ua-sdk/codec-json/pom.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,6 @@
4242
<skip>true</skip>
4343
</configuration>
4444
</plugin>
45-
<plugin>
46-
<groupId>org.sonatype.plugins</groupId>
47-
<artifactId>nexus-staging-maven-plugin</artifactId>
48-
<version>${nexus-staging-maven-plugin.version}</version>
49-
<configuration>
50-
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
51-
</configuration>
52-
</plugin>
5345
</plugins>
5446
</build>
5547

opc-ua-sdk/dtd-core/pom.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@
100100
</dependency>
101101
</dependencies>
102102
</plugin>
103-
103+
<plugin>
104+
<groupId>org.sonatype.plugins</groupId>
105+
<artifactId>nexus-staging-maven-plugin</artifactId>
106+
</plugin>
104107
<plugin>
105108
<groupId>org.apache.maven.plugins</groupId>
106109
<artifactId>maven-shade-plugin</artifactId>

opc-ua-sdk/dtd-manager/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@
4545
<groupId>org.apache.maven.plugins</groupId>
4646
<artifactId>maven-shade-plugin</artifactId>
4747
</plugin>
48+
<plugin>
49+
<groupId>org.sonatype.plugins</groupId>
50+
<artifactId>nexus-staging-maven-plugin</artifactId>
51+
</plugin>
4852
</plugins>
4953
</build>
5054

opc-ua-sdk/dtd-reader/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@
6363
<groupId>org.apache.maven.plugins</groupId>
6464
<artifactId>maven-shade-plugin</artifactId>
6565
</plugin>
66+
<plugin>
67+
<groupId>org.sonatype.plugins</groupId>
68+
<artifactId>nexus-staging-maven-plugin</artifactId>
69+
</plugin>
6670
</plugins>
6771
</build>
6872

opc-ua-sdk/integration-tests/pom.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,6 @@
8686
<skip>true</skip>
8787
</configuration>
8888
</plugin>
89-
<plugin>
90-
<groupId>org.sonatype.plugins</groupId>
91-
<artifactId>nexus-staging-maven-plugin</artifactId>
92-
<version>${nexus-staging-maven-plugin.version}</version>
93-
<configuration>
94-
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
95-
</configuration>
96-
</plugin>
9789
<plugin>
9890
<groupId>org.apache.maven.plugins</groupId>
9991
<artifactId>maven-failsafe-plugin</artifactId>

opc-ua-sdk/pom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@
8787
<excludeFilterFile>${basedir}/../findbugs-exclude.xml</excludeFilterFile>
8888
</configuration>
8989
</plugin>
90+
91+
<plugin>
92+
<groupId>org.sonatype.plugins</groupId>
93+
<artifactId>nexus-staging-maven-plugin</artifactId>
94+
<inherited>false</inherited>
95+
</plugin>
9096
</plugins>
9197

9298
<pluginManagement>
@@ -119,6 +125,17 @@
119125
</execution>
120126
</executions>
121127
</plugin>
128+
<plugin>
129+
<groupId>org.sonatype.plugins</groupId>
130+
<artifactId>nexus-staging-maven-plugin</artifactId>
131+
<version>${nexus-staging-maven-plugin.version}</version>
132+
<extensions>true</extensions>
133+
<configuration>
134+
<serverId>ossrh</serverId>
135+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
136+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
137+
</configuration>
138+
</plugin>
122139
</plugins>
123140
</pluginManagement>
124141
</build>

opc-ua-sdk/sdk-client/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@
5050
<groupId>org.apache.maven.plugins</groupId>
5151
<artifactId>maven-shade-plugin</artifactId>
5252
</plugin>
53+
<plugin>
54+
<groupId>org.sonatype.plugins</groupId>
55+
<artifactId>nexus-staging-maven-plugin</artifactId>
56+
</plugin>
5357
</plugins>
5458
</build>
5559

opc-ua-sdk/sdk-core/pom.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
-->
1111

1212
<project xmlns="http://maven.apache.org/POM/4.0.0"
13-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
14-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
13+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
14+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1515
<modelVersion>4.0.0</modelVersion>
1616

1717
<parent>
@@ -77,6 +77,10 @@
7777
<groupId>org.apache.maven.plugins</groupId>
7878
<artifactId>maven-shade-plugin</artifactId>
7979
</plugin>
80+
<plugin>
81+
<groupId>org.sonatype.plugins</groupId>
82+
<artifactId>nexus-staging-maven-plugin</artifactId>
83+
</plugin>
8084
</plugins>
8185
</build>
8286

opc-ua-sdk/sdk-server/pom.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
-->
1111

1212
<project xmlns="http://maven.apache.org/POM/4.0.0"
13-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
14-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
13+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
14+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1515
<modelVersion>4.0.0</modelVersion>
1616

1717
<parent>
@@ -78,6 +78,10 @@
7878
<groupId>org.apache.maven.plugins</groupId>
7979
<artifactId>maven-shade-plugin</artifactId>
8080
</plugin>
81+
<plugin>
82+
<groupId>org.sonatype.plugins</groupId>
83+
<artifactId>nexus-staging-maven-plugin</artifactId>
84+
</plugin>
8185
</plugins>
8286
</build>
8387

opc-ua-sdk/sdk-tests/pom.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,6 @@
6767
<skip>true</skip>
6868
</configuration>
6969
</plugin>
70-
<plugin>
71-
<groupId>org.sonatype.plugins</groupId>
72-
<artifactId>nexus-staging-maven-plugin</artifactId>
73-
<version>${nexus-staging-maven-plugin.version}</version>
74-
<configuration>
75-
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
76-
</configuration>
77-
</plugin>
7870
<plugin>
7971
<groupId>org.apache.maven.plugins</groupId>
8072
<artifactId>maven-failsafe-plugin</artifactId>

opc-ua-stack/encoding-json/pom.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
-->
1111

1212
<project xmlns="http://maven.apache.org/POM/4.0.0"
13-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
14-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
13+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
14+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1515
<modelVersion>4.0.0</modelVersion>
1616

1717
<parent>
@@ -64,6 +64,10 @@
6464
<groupId>org.apache.maven.plugins</groupId>
6565
<artifactId>maven-shade-plugin</artifactId>
6666
</plugin>
67+
<plugin>
68+
<groupId>org.sonatype.plugins</groupId>
69+
<artifactId>nexus-staging-maven-plugin</artifactId>
70+
</plugin>
6771
</plugins>
6872
</build>
6973

opc-ua-stack/encoding-xml/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@
7575
<groupId>org.apache.maven.plugins</groupId>
7676
<artifactId>maven-shade-plugin</artifactId>
7777
</plugin>
78+
<plugin>
79+
<groupId>org.sonatype.plugins</groupId>
80+
<artifactId>nexus-staging-maven-plugin</artifactId>
81+
</plugin>
7882
</plugins>
7983
</build>
8084

opc-ua-stack/guava-dependencies/pom.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@
3737
<skip>true</skip>
3838
</configuration>
3939
</plugin>
40-
<plugin>
41-
<groupId>org.sonatype.plugins</groupId>
42-
<artifactId>nexus-staging-maven-plugin</artifactId>
43-
<version>${nexus-staging-maven-plugin.version}</version>
44-
<configuration>
45-
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
46-
</configuration>
47-
</plugin>
4840
<plugin>
4941
<groupId>org.apache.maven.plugins</groupId>
5042
<artifactId>maven-shade-plugin</artifactId>

opc-ua-stack/pom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@
106106
</execution>
107107
</executions>
108108
</plugin>
109+
110+
<plugin>
111+
<groupId>org.sonatype.plugins</groupId>
112+
<artifactId>nexus-staging-maven-plugin</artifactId>
113+
<inherited>false</inherited>
114+
</plugin>
109115
</plugins>
110116

111117
<pluginManagement>
@@ -138,6 +144,17 @@
138144
</execution>
139145
</executions>
140146
</plugin>
147+
<plugin>
148+
<groupId>org.sonatype.plugins</groupId>
149+
<artifactId>nexus-staging-maven-plugin</artifactId>
150+
<version>${nexus-staging-maven-plugin.version}</version>
151+
<extensions>true</extensions>
152+
<configuration>
153+
<serverId>ossrh</serverId>
154+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
155+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
156+
</configuration>
157+
</plugin>
141158
</plugins>
142159
</pluginManagement>
143160
</build>

opc-ua-stack/stack-core/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@
126126
</execution>
127127
</executions>
128128
</plugin>
129+
<plugin>
130+
<groupId>org.sonatype.plugins</groupId>
131+
<artifactId>nexus-staging-maven-plugin</artifactId>
132+
</plugin>
129133
</plugins>
130134
</build>
131135

opc-ua-stack/stack-tests/pom.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,6 @@
5959
<skip>true</skip>
6060
</configuration>
6161
</plugin>
62-
<plugin>
63-
<groupId>org.sonatype.plugins</groupId>
64-
<artifactId>nexus-staging-maven-plugin</artifactId>
65-
<version>${nexus-staging-maven-plugin.version}</version>
66-
<configuration>
67-
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
68-
</configuration>
69-
</plugin>
7062
<plugin>
7163
<groupId>org.apache.maven.plugins</groupId>
7264
<artifactId>maven-shade-plugin</artifactId>

opc-ua-stack/transport-https/pom.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,6 @@
7272
<skip>true</skip>
7373
</configuration>
7474
</plugin>
75-
<plugin>
76-
<groupId>org.sonatype.plugins</groupId>
77-
<artifactId>nexus-staging-maven-plugin</artifactId>
78-
<version>${nexus-staging-maven-plugin.version}</version>
79-
<configuration>
80-
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
81-
</configuration>
82-
</plugin>
8375
</plugins>
8476
</build>
8577

opc-ua-stack/transport-websocket/pom.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,6 @@
7373
<skip>true</skip>
7474
</configuration>
7575
</plugin>
76-
<plugin>
77-
<groupId>org.sonatype.plugins</groupId>
78-
<artifactId>nexus-staging-maven-plugin</artifactId>
79-
<version>${nexus-staging-maven-plugin.version}</version>
80-
<configuration>
81-
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
82-
</configuration>
83-
</plugin>
8476
</plugins>
8577
</build>
8678

opc-ua-stack/transport/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@
6969
<groupId>org.apache.maven.plugins</groupId>
7070
<artifactId>maven-shade-plugin</artifactId>
7171
</plugin>
72+
<plugin>
73+
<groupId>org.sonatype.plugins</groupId>
74+
<artifactId>nexus-staging-maven-plugin</artifactId>
75+
</plugin>
7276
</plugins>
7377
</build>
7478

pom.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@
151151
<artifactId>nexus-staging-maven-plugin</artifactId>
152152
<version>${nexus-staging-maven-plugin.version}</version>
153153
<extensions>true</extensions>
154+
<inherited>false</inherited>
154155
<configuration>
155156
<serverId>ossrh</serverId>
156157
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
@@ -363,6 +364,18 @@
363364
</configuration>
364365
</plugin>
365366

367+
<plugin>
368+
<groupId>org.sonatype.plugins</groupId>
369+
<artifactId>nexus-staging-maven-plugin</artifactId>
370+
<version>${nexus-staging-maven-plugin.version}</version>
371+
<extensions>true</extensions>
372+
<configuration>
373+
<serverId>ossrh</serverId>
374+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
375+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
376+
</configuration>
377+
</plugin>
378+
366379
<plugin>
367380
<groupId>org.apache.maven.plugins</groupId>
368381
<artifactId>maven-clean-plugin</artifactId>

0 commit comments

Comments
 (0)