Skip to content

Commit 5884db9

Browse files
authored
Fixes for maven deploy (#366)
gradle-plugin-mvn-wrapper: * Fix disabling of install and deploy * Set skipNexusStagingDeployMojo to true
1 parent 12ab7e2 commit 5884db9

1 file changed

Lines changed: 24 additions & 21 deletions

File tree

  • modules/openapi-generator-gradle-plugin

modules/openapi-generator-gradle-plugin/pom.xml

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
<name>openapi-generator-gradle-plugin (maven wrapper)</name>
1414
<description>This is a maven wrapper to call gradle during installation phase</description>
1515

16+
<properties>
17+
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
18+
</properties>
1619

1720
<dependencies>
1821
<dependency>
@@ -23,19 +26,28 @@
2326
</dependencies>
2427

2528
<build>
26-
<plugins>
29+
<!-- NOTE: Consider this temporary, as a way to cleanly hook into our pipeline.
30+
We've discussed moving the entire project to gradle https://github.com/OpenAPITools/openapi-generator/issues/200, which would avoid this fitting. -->
31+
<pluginManagement>
32+
<plugins>
33+
<!-- 1) disable maven install. This wrapper is not needed. (gradle will install a jar and a pom into the local maven repo) -->
34+
<plugin>
35+
<artifactId>maven-install-plugin</artifactId>
36+
<configuration>
37+
<skip>true</skip>
38+
</configuration>
39+
</plugin>
40+
<!-- 3) disable maven deploy. This wrapper is not needed. -->
41+
<plugin>
42+
<artifactId>maven-deploy-plugin</artifactId>
43+
<configuration>
44+
<skip>true</skip>
45+
</configuration>
46+
</plugin>
47+
</plugins>
48+
</pluginManagement>
2749

28-
<!-- NOTE: Consider this temporary, as a way to cleanly hook into our pipeline.
29-
We've discussed moving the entire project to gradle https://github.com/OpenAPITools/openapi-generator/issues/200, which would avoid this fitting. -->
30-
<!-- 1) disable maven install. This wrapper is not needed. (gradle will install a jar and a pom into the local maven repo) -->
31-
<plugin>
32-
<groupId>org.apache.maven.plugins</groupId>
33-
<artifactId>maven-install-plugin</artifactId>
34-
<version>2.5.2</version>
35-
<configuration>
36-
<skip>true</skip>
37-
</configuration>
38-
</plugin>
50+
<plugins>
3951
<!-- 2) run gradle -->
4052
<plugin>
4153
<groupId>org.fortasoft</groupId>
@@ -65,15 +77,6 @@
6577
</execution>
6678
</executions>
6779
</plugin>
68-
<!-- 3) disable maven deploy. This wrapper is not needed. -->
69-
<plugin>
70-
<groupId>org.apache.maven.plugins</groupId>
71-
<artifactId>maven-deploy-plugin</artifactId>
72-
<version>2.8.2</version>
73-
<configuration>
74-
<skip>true</skip>
75-
</configuration>
76-
</plugin>
7780
</plugins>
7881
</build>
7982

0 commit comments

Comments
 (0)