Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Commit cdbd1ce

Browse files
authored
Issue 857: add maven settings.xml and update liberty version (#858)
* Issue 857: add maven settings.xml and update liberty version * Issue 857: Add maven settings.xml
1 parent 793a20d commit cdbd1ce

File tree

4 files changed

+22
-5
lines changed

4 files changed

+22
-5
lines changed

incubator/java-openliberty/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The Open Liberty stack provides a consistent way of developing microservices bas
44

55
The Open Liberty stack uses a parent Maven project object model (POM) to manage dependency versions and provide required capabilities and plugins.
66

7-
This stack is based on OpenJDK with container-optimizations in OpenJ9 and `Open Liberty v20.0.0.6`. It provides live reloading during development by utilizing the "dev mode" capability in the liberty-maven-plugin. To see dev mode in action (though not in Appsody) check out this [shorter demo](https://openliberty.io/blog/2019/10/22/liberty-dev-mode.html) and this [a bit longer demo](https://blog.sebastian-daschner.com/entries/openliberty-plugin-dev-mode).
7+
This stack is based on OpenJDK with container-optimizations in OpenJ9 and `Open Liberty v20.0.0.9`. It provides live reloading during development by utilizing the "dev mode" capability in the liberty-maven-plugin. To see dev mode in action (though not in Appsody) check out this [shorter demo](https://openliberty.io/blog/2019/10/22/liberty-dev-mode.html) and this [a bit longer demo](https://blog.sebastian-daschner.com/entries/openliberty-plugin-dev-mode).
88

99
**Note:** Maven is provided by the Appsody stack container, allowing you to build, test, and debug your Java application without installing Maven locally. However, we recommend installing Maven locally for the best IDE experience.
1010

incubator/java-openliberty/image/Dockerfile-stack

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ RUN groupadd --gid 1000 java_group \
1717
COPY ./LICENSE /licenses/
1818
COPY --chown=java_user:java_group ./project /project
1919
COPY --chown=java_user:java_group ./config /config
20+
COPY ./mvn-stack-settings.xml /usr/share/maven/conf/settings.xml
21+
2022

2123
USER java_user
2224

@@ -27,8 +29,8 @@ WORKDIR /project/
2729
RUN mkdir -p /mvn/repository
2830
# Let's see the command we're hiding within the next line
2931
RUN mvn -e help:evaluate -Dexpression=maven.version -DforceStdout
30-
RUN mvn -B -Dmaven.repo.local=/mvn/repository -N io.takari:maven:wrapper -Dmaven=$(mvn help:evaluate -Dexpression=maven.version -q -DforceStdout)
31-
RUN mvn -B -Pstack-image-package -Dmaven.repo.local=/mvn/repository liberty:install-server install dependency:go-offline
32+
RUN mvn -B -N io.takari:maven:wrapper -Dmaven=$(mvn help:evaluate -Dexpression=maven.version -q -DforceStdout)
33+
RUN mvn -B -Pstack-image-package liberty:install-server install dependency:go-offline
3234
RUN chmod -R 777 /opt/ol && chmod -R 777 /mvn/repository
3335

3436

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
4+
https://maven.apache.org/xsd/settings-1.0.0.xsd">
5+
6+
<!-- Use this file to customize maven repositories or other proxies that should be
7+
used when building projects:
8+
Defaults: https://maven.apache.org/settings.html
9+
Reference: https://maven.apache.org/ref/3.6.1/maven-settings/settings.html
10+
-->
11+
12+
<!-- Repository location in docker image -->
13+
<localRepository>/mvn/repository</localRepository>
14+
15+
</settings>

incubator/java-openliberty/stack.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Open Liberty
2-
version: 0.2.15
2+
version: 0.2.16
33
description: Eclipse MicroProfile & Jakarta EE on Open Liberty & OpenJ9 using Maven
44
license: Apache-2.0
55
language: java
@@ -21,7 +21,7 @@ requirements:
2121
docker-version: ">= 17.09.0"
2222
appsody-version: ">= 0.5.0"
2323
templating-data:
24-
libertyversion: '20.0.0.6'
24+
libertyversion: '20.0.0.9'
2525
parentpomgroup: 'dev.appsody'
2626
parentpomid: 'java-openliberty'
2727
parentpomrange: '[0.2, 0.3)'

0 commit comments

Comments
 (0)