Skip to content

Commit 432742c

Browse files
authored
repo sync
2 parents 6df5f5d + 2fd01fa commit 432742c

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

content/actions/guides/building-and-testing-java-with-maven.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
with:
5454
java-version: 1.8
5555
- name: Build with Maven
56-
run: mvn -B package --file pom.xml
56+
run: mvn --batch-mode --update-snapshots verify
5757
```
5858
{% endraw %}
5959
@@ -85,7 +85,7 @@ steps:
8585
with:
8686
java-version: 1.8
8787
- name: Run the Maven verify phase
88-
run: mvn -B verify --file pom-ci.xml
88+
run: mvn --batch-mode --update-snapshots verify
8989
```
9090
{% endraw %}
9191

@@ -108,7 +108,7 @@ steps:
108108
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
109109
restore-keys: ${{ runner.os }}-m2
110110
- name: Build with Maven
111-
run: mvn -B package --file pom.xml
111+
run: mvn --batch-mode --update-snapshots verify
112112
```
113113
{% endraw %}
114114

@@ -125,7 +125,7 @@ Maven will usually create output files like JARs, EARs, or WARs in the `target`
125125
steps:
126126
- uses: actions/checkout@v2
127127
- uses: actions/setup-java@v1
128-
- run: mvn -B package --file pom.xml
128+
- run: mvn --batch-mode --update-snapshots verify
129129
- run: mkdir staging && cp target/*.jar staging
130130
- uses: actions/upload-artifact@v2
131131
with:

content/actions/guides/publishing-java-packages-with-maven.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
server-username: MAVEN_USERNAME
8585
server-password: MAVEN_PASSWORD
8686
- name: Publish package
87-
run: mvn -B deploy
87+
run: mvn --batch-mode deploy
8888
env:
8989
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
9090
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
@@ -143,7 +143,7 @@ jobs:
143143
with:
144144
java-version: 1.8
145145
- name: Publish package
146-
run: mvn -B deploy
146+
run: mvn --batch-mode deploy
147147
env:
148148
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
149149
```
@@ -182,7 +182,7 @@ jobs:
182182
server-username: MAVEN_USERNAME
183183
server-password: MAVEN_PASSWORD
184184
- name: Publish to the Maven Central Repository
185-
run: mvn -B deploy
185+
run: mvn --batch-mode deploy
186186
env:
187187
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
188188
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
@@ -191,7 +191,7 @@ jobs:
191191
with:
192192
java-version: 1.8
193193
- name: Publish to GitHub Packages
194-
run: mvn -B deploy
194+
run: mvn --batch-mode deploy
195195
env:
196196
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
197197
```
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Runs the `mvn -B deploy` command to publish to the `ossrh` repository. The `MAVEN_USERNAME` environment variable will be set with the contents of your `OSSRH_USERNAME` secret, and the `MAVEN_PASSWORD` environment variable will be set with the contents of your `OSSRH_TOKEN` secret.
1+
Runs the `mvn --batch-mode deploy` command to publish to the `ossrh` repository. The `MAVEN_USERNAME` environment variable will be set with the contents of your `OSSRH_USERNAME` secret, and the `MAVEN_PASSWORD` environment variable will be set with the contents of your `OSSRH_TOKEN` secret.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Runs the `mvn -B deploy` command to publish to {% data variables.product.prodname_registry %}. The `GITHUB_TOKEN` environment variable will be set with the contents of the `GITHUB_TOKEN` secret.
1+
Runs the `mvn --batch-mode deploy` command to publish to {% data variables.product.prodname_registry %}. The `GITHUB_TOKEN` environment variable will be set with the contents of the `GITHUB_TOKEN` secret.

0 commit comments

Comments
 (0)