Skip to content

Commit 5ae5839

Browse files
authored
Add login before jibBuild
1 parent 05a8920 commit 5ae5839

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/container-registry/container-registry-java-quickstart.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,13 @@ Finally, you'll update your project configuration and use the command prompt to
103103

104104
1. Navigate to the completed project directory for your Spring Boot application (for example, "*C:\SpringBoot\gs-spring-boot-docker\complete*" or "*/users/robert/SpringBoot/gs-spring-boot-docker/complete*"), and open the *pom.xml* file with a text editor.
105105

106-
1. Update the `<properties>` collection in the *pom.xml* file with the following XML. Replace the placeholder with your registry name, and add a `<jib-maven-plugin.version>` property with value `2.1.0`, or a newer version of the [jib-maven-plugin](https://github.com/GoogleContainerTools/jib/tree/master/jib-maven-plugin).
106+
1. Update the `<properties>` collection in the *pom.xml* file with the following XML. Replace the placeholder with your registry name, and add a `<jib-maven-plugin.version>` property with value `2.2.0`, or a newer version of the [jib-maven-plugin](https://github.com/GoogleContainerTools/jib/tree/master/jib-maven-plugin).
107107

108108
```xml
109109
<properties>
110110
<docker.image.prefix><your registry name>.azurecr.io</docker.image.prefix>
111111
<java.version>1.8</java.version>
112-
<jib-maven-plugin.version>2.1.0</jib-maven-plugin.version>
112+
<jib-maven-plugin.version>2.2.0</jib-maven-plugin.version>
113113
</properties>
114114
```
115115

@@ -134,7 +134,7 @@ Finally, you'll update your project configuration and use the command prompt to
134134
1. Navigate to the completed project directory for your Spring Boot application and run the following command to build the image and push the image to the registry:
135135

136136
```bash
137-
mvn compile jib:build
137+
az acr login && mvn compile jib:build
138138
```
139139

140140
> [!NOTE]

0 commit comments

Comments
 (0)