Skip to content

Commit 159f41f

Browse files
committed
fix 2nd mvn command
1 parent 2a76495 commit 159f41f

2 files changed

Lines changed: 25 additions & 1 deletion

File tree

.kokoro/release/stage.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ mvn clean deploy -B \
4444
-P release \
4545
-P release-non-google-oss-sonatype
4646

47+
echo "Finding nexus-staging"
48+
find . -name "nexus-staging"
49+
50+
echo "Done"
51+
echo "Finding staging"
52+
find . -name "staging"
53+
echo "Done"
4754

4855
# The job triggered by Release Please (release-trigger) has this AUTORELEASE_PR
4956
# environment variable. Fusion also lets us to specify this variable.
@@ -52,7 +59,9 @@ then
5259
echo "Releasing the staging repositories"
5360
mvn nexus-staging:release -B \
5461
-DperformRelease=true \
55-
--settings=${MAVEN_SETTINGS_FILE}
62+
--settings=${MAVEN_SETTINGS_FILE} \
63+
--projects "${includedMapsModule}" \
64+
-P release-non-google-oss-sonatype
5665
else
5766
echo "AUTORELEASE_PR is not set. Not releasing."
5867
fi

pom.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,5 +210,20 @@
210210
</plugins>
211211
</build>
212212
</profile>
213+
<profile>
214+
<id>release-non-google-oss-sonatype</id>
215+
<build>
216+
<plugins>
217+
<plugin>
218+
<groupId>org.sonatype.plugins</groupId>
219+
<artifactId>nexus-staging-maven-plugin</artifactId>
220+
<configuration>
221+
<serverId>ossrh</serverId>
222+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
223+
</configuration>
224+
</plugin>
225+
</plugins>
226+
</build>
227+
</profile>
213228
</profiles>
214229
</project>

0 commit comments

Comments
 (0)