forked from googleapis/java-cloud-bom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
94 lines (93 loc) · 3.8 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?xml version='1.0' encoding='UTF-8'?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.google.cloud</groupId>
<artifactId>java-cloud-bom-root</artifactId>
<packaging>pom</packaging>
<!-- This pom.xml is not meant to be published to Maven Central -->
<version>0.1.0</version>
<name>Google Cloud Java BOM root project</name>
<url>https://github.com/googleapis/java-cloud-bom</url>
<description>
BOMs for Google Cloud Java SDK
</description>
<organization>
<name>Google</name>
</organization>
<scm>
<connection>scm:git:[email protected]:googleapis/java-cloud-bom.git</connection>
<developerConnection>scm:git:[email protected]:googleapis/java-cloud-bom-java.git</developerConnection>
<url>https://github.com/googleapis/java-cloud-bom</url>
<tag>HEAD</tag>
</scm>
<licenses>
<license>
<name>Google Cloud Software License</name>
<url>https://raw.githubusercontent.com/googleapis/google-cloud-java/main/LICENSE</url>
</license>
</licenses>
<modules>
<!-- Only modules to be published to Maven Central. No tests or release note generation. -->
<module>google-cloud-bom</module>
<module>libraries-bom</module>
<module>libraries-bom-protobuf3</module>
</modules>
<build>
<plugins>
<plugin>
<!-- This root pom.xml is not referenced by the BOMs and no need to
be published to Maven Central
https://maven.apache.org/plugins/maven-deploy-plugin/faq.html#skip -->
<artifactId>maven-deploy-plugin</artifactId>
<version>3.1.3</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<!--
Not adding nexus-staging-maven-plugin here, because it would override
the skip configuration above when running "mvn deploy" command and tries to upload
this root pom.xml to the staging repository. When we tried the skip configuration
of nexus-staging-maven-plugin, it skipped all modules in this repository.
Thus, we cannot use nexus-staging-maven-plugin when uploading artifacts to a staging
repository.
However, when we release the staging repository as the next step,
"mvn nexus-staging:release" command requires nexus-staging-maven-plugin.
Therefore, the plugin is configured to be available only for the "release" command
as defined in the "release-staging-repository" profile below.
-->
</plugins>
</build>
<profiles>
<profile>
<!-- profile for nexus-staging:release invocation -->
<id>release-staging-repository</id>
<distributionManagement>
<snapshotRepository>
<id>sonatype-nexus-snapshots</id>
<url>https://google.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>sonatype-nexus-staging</id>
<url>https://google.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<build>
<plugins>
<plugin>
<!-- The root project runs nexus-staging:release task -->
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.7.0</version>
<extensions>true</extensions>
<configuration>
<serverId>sonatype-nexus-staging</serverId>
<nexusUrl>https://google.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>