Skip to content

Make Maven skip deployment by default and enable it for specific artifacts only #970

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions driver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<maven.build.timestamp.format>'v'yyyyMMdd-HHmm</maven.build.timestamp.format>
<moduleName>org.neo4j.driver</moduleName>
<rootDir>${project.basedir}/..</rootDir>
<maven.deploy.skip>false</maven.deploy.skip>
</properties>

<dependencies>
Expand Down
11 changes: 0 additions & 11 deletions examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<executions>
<execution>
<id>default-deploy</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
11 changes: 11 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
<!-- All tests tagged are to be executed in parallel -->
<parallelizable.it.tags>parallelizableIT</parallelizable.it.tags>
<surefire.and.failsafe.version>2.22.1</surefire.and.failsafe.version>
<!-- Skip deployment by default for everything in this project. -->
<maven.deploy.skip>true</maven.deploy.skip>

<!-- Versions -->
<reactive-streams.version>1.0.3</reactive-streams.version>
Expand Down Expand Up @@ -424,6 +426,15 @@
</execution>
</executions>
</plugin>
<!-- Explicit deployment override for this artifact only. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<inherited>false</inherited>
<configuration>
<skip>false</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>