Skip to content

Commit 9a80685

Browse files
authored
Make Maven skip deployment by default and enable it for specific artifacts only (#970)
This is intended to prevent current and future modules from being deployed without explicit configuration.
1 parent 684893f commit 9a80685

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

driver/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<maven.build.timestamp.format>'v'yyyyMMdd-HHmm</maven.build.timestamp.format>
2222
<moduleName>org.neo4j.driver</moduleName>
2323
<rootDir>${project.basedir}/..</rootDir>
24+
<maven.deploy.skip>false</maven.deploy.skip>
2425
</properties>
2526

2627
<dependencies>

examples/pom.xml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,6 @@
8383
</execution>
8484
</executions>
8585
</plugin>
86-
<plugin>
87-
<groupId>org.apache.maven.plugins</groupId>
88-
<artifactId>maven-deploy-plugin</artifactId>
89-
<executions>
90-
<execution>
91-
<id>default-deploy</id>
92-
<phase>none</phase>
93-
</execution>
94-
</executions>
95-
</plugin>
9686
</plugins>
9787
</build>
98-
9988
</project>

pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
<!-- All tests tagged are to be executed in parallel -->
2323
<parallelizable.it.tags>parallelizableIT</parallelizable.it.tags>
2424
<surefire.and.failsafe.version>2.22.1</surefire.and.failsafe.version>
25+
<!-- Skip deployment by default for everything in this project. -->
26+
<maven.deploy.skip>true</maven.deploy.skip>
2527

2628
<!-- Versions -->
2729
<reactive-streams.version>1.0.3</reactive-streams.version>
@@ -424,6 +426,15 @@
424426
</execution>
425427
</executions>
426428
</plugin>
429+
<!-- Explicit deployment override for this artifact only. -->
430+
<plugin>
431+
<groupId>org.apache.maven.plugins</groupId>
432+
<artifactId>maven-deploy-plugin</artifactId>
433+
<inherited>false</inherited>
434+
<configuration>
435+
<skip>false</skip>
436+
</configuration>
437+
</plugin>
427438
</plugins>
428439
</build>
429440
</project>

0 commit comments

Comments
 (0)