Skip to content

Update maven wrapper #283

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
VALIDATE_ALL_CODEBASE: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LINTER_RULES_PATH: ./tools/pr-checker/linters/
FILTER_REGEX_EXCLUDE: mvnw*
DEFAULT_BRANCH: prod
- name: Summary
if: "! github.event.pull_request.head.repo.fork"
Expand Down
79 changes: 72 additions & 7 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2018, 2024 IBM Corporation and others.
// Copyright (c) 2018, 2025 IBM Corporation and others.
// Licensed under Creative Commons Attribution-NoDerivatives
// 4.0 International (CC BY-ND 4.0)
// https://creativecommons.org/licenses/by-nd/4.0/
Expand Down Expand Up @@ -266,10 +266,32 @@ The starting Java project, which you can find in the `start` directory, is a mul

To build these microservices, navigate to the `start` directory and run the following command:

[role=command]

include::{common-includes}/os-tabs.adoc[]

[.tab_content.windows_section]
--
[role='command']
```
mvn package
mvnw.cmd package
```
--

[.tab_content.mac_section]
--
[role='command']
```
./mvnw package
```
--

[.tab_content.linux_section]
--
[role='command']
```
./mvnw package
```
--

Next, run the `docker build` commands to build container images for your application:
[role='command']
Expand Down Expand Up @@ -465,10 +487,31 @@ A few tests are included for you to test the basic functionality of the microser
Use the following command to run the integration tests against your cluster. Substitute
`[hostname]`, `[system-node-port]` and `[inventory-node-port]` with the appropriate values.

[role=command]
include::{common-includes}/os-tabs.adoc[]

[.tab_content.windows_section]
--
[role='command']
```
mvn failsafe:integration-test -Dcluster.ip=[hostname] -Dsystem.node.port=[system-node-port] -Dinventory.node.port=[inventory-node-port]
mvnw.cmd failsafe:integration-test -Dcluster.ip=[hostname] -Dsystem.node.port=[system-node-port] -Dinventory.node.port=[inventory-node-port]
```
--

[.tab_content.mac_section]
--
[role='command']
```
./mvnw failsafe:integration-test -Dcluster.ip=[hostname] -Dsystem.node.port=[system-node-port] -Dinventory.node.port=[inventory-node-port]
```
--

[.tab_content.linux_section]
--
[role='command']
```
./mvnw failsafe:integration-test -Dcluster.ip=[hostname] -Dsystem.node.port=[system-node-port] -Dinventory.node.port=[inventory-node-port]
```
--

If the tests pass, you'll see an output similar to the following for each service respectively:

Expand Down Expand Up @@ -503,10 +546,32 @@ Tests run: 4, Failures: 0, Errors: 0, Skipped: 0
Optionally, you might want to make changes to your microservice and redeploy the updated version. In this section, you will bump the version of the `system` microservice to `2.0-SNAPSHOT` and redeploy the new version of the microservice.

Use Maven to repackage your microservice:
[role=command]

include::{common-includes}/os-tabs.adoc[]

[.tab_content.windows_section]
--
[role='command']
```
mvnw.cmd package
```
--

[.tab_content.mac_section]
--
[role='command']
```
mvn package
./mvnw package
```
--

[.tab_content.linux_section]
--
[role='command']
```
./mvnw package
```
--

Next, build the new version of the container image as `2.0-SNAPSHOT`:
[role=command]
Expand Down
Binary file added finish/.mvn/wrapper/maven-wrapper.jar
Binary file not shown.
2 changes: 2 additions & 0 deletions finish/.mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.2/maven-wrapper-3.3.2.jar
Loading
Loading