Skip to content

Commit 005ab6d

Browse files
Prevent sample modules from being published to Maven Central (#324)
* Configure Maven plugins to prevent samples from being published to Maven Central Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
1 parent 87c735f commit 005ab6d

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

samples/pom.xml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,52 @@
8282
<skip>true</skip>
8383
</configuration>
8484
</plugin>
85+
<plugin>
86+
<groupId>org.apache.maven.plugins</groupId>
87+
<artifactId>maven-install-plugin</artifactId>
88+
<configuration>
89+
<!-- Prevent samples from being installed to local repository during release -->
90+
<skip>true</skip>
91+
</configuration>
92+
</plugin>
93+
<plugin>
94+
<groupId>org.apache.maven.plugins</groupId>
95+
<artifactId>maven-source-plugin</artifactId>
96+
<executions>
97+
<execution>
98+
<id>attach-sources</id>
99+
<phase>none</phase>
100+
</execution>
101+
</executions>
102+
</plugin>
103+
<plugin>
104+
<groupId>org.apache.maven.plugins</groupId>
105+
<artifactId>maven-javadoc-plugin</artifactId>
106+
<executions>
107+
<execution>
108+
<id>attach-javadocs</id>
109+
<phase>none</phase>
110+
</execution>
111+
</executions>
112+
</plugin>
113+
<plugin>
114+
<groupId>org.apache.maven.plugins</groupId>
115+
<artifactId>maven-gpg-plugin</artifactId>
116+
<executions>
117+
<execution>
118+
<id>sign-artifacts</id>
119+
<phase>none</phase>
120+
</execution>
121+
</executions>
122+
</plugin>
123+
<plugin>
124+
<groupId>org.sonatype.plugins</groupId>
125+
<artifactId>nexus-staging-maven-plugin</artifactId>
126+
<configuration>
127+
<!-- Prevent samples from being staged to Maven Central -->
128+
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
129+
</configuration>
130+
</plugin>
85131
</plugins>
86132
</build>
87133
</project>

0 commit comments

Comments
 (0)