Skip to content

Commit e7d8e38

Browse files
committed
deployment improvements
1 parent 8b70592 commit e7d8e38

File tree

2 files changed

+11
-16
lines changed

2 files changed

+11
-16
lines changed

dbus-java-examples/pom.xml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,13 @@
2222
<parentDir>${project.parent.basedir}</parentDir>
2323
<project.build.outputTimestamp>2025-03-14T09:18:08Z</project.build.outputTimestamp>
2424
<dateFormatTimeZone>UTC</dateFormatTimeZone>
25+
26+
<skipDeployment>true</skipDeployment>
27+
<check.skip-javadoc>true</check.skip-javadoc>
2528
</properties>
2629

2730
<build>
2831
<plugins>
29-
<!-- exclude this module from release/snapshots, it is only for showing sample code -->
30-
<plugin>
31-
<groupId>org.apache.maven.plugins</groupId>
32-
<artifactId>maven-deploy-plugin</artifactId>
33-
<configuration>
34-
<skip>true</skip>
35-
</configuration>
36-
</plugin>
37-
<!-- No javadoc for sample code -->
38-
<plugin>
39-
<groupId>org.apache.maven.plugins</groupId>
40-
<artifactId>maven-javadoc-plugin</artifactId>
41-
<configuration>
42-
<skip>true</skip>
43-
</configuration>
44-
</plugin>
4532
<!-- do not install sample code to the local maven repo -->
4633
<plugin>
4734
<groupId>org.apache.maven.plugins</groupId>

pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161
<parentDir>${maven.multiModuleProjectDirectory}</parentDir>
6262
<project.build.outputTimestamp>2025-03-14T09:18:08Z</project.build.outputTimestamp>
6363
<dateFormatTimeZone>UTC</dateFormatTimeZone>
64+
65+
<skipDeployment>false</skipDeployment>
6466
</properties>
6567

6668
<modules>
@@ -81,6 +83,9 @@
8183
<plugin>
8284
<groupId>org.apache.maven.plugins</groupId>
8385
<artifactId>maven-deploy-plugin</artifactId>
86+
<configuration>
87+
<skip>${skipDeployment}</skip>
88+
</configuration>
8489
</plugin>
8590

8691
<plugin>
@@ -125,6 +130,9 @@
125130
<plugin>
126131
<groupId>org.sonatype.central</groupId>
127132
<artifactId>central-publishing-maven-plugin</artifactId>
133+
<configuration>
134+
<skipPublishing>${skipDeployment}</skipPublishing>
135+
</configuration>
128136
</plugin>
129137

130138
</plugins>

0 commit comments

Comments
 (0)