diff --git a/incubator/java-openliberty/README.md b/incubator/java-openliberty/README.md index afb881674..a595a23ee 100644 --- a/incubator/java-openliberty/README.md +++ b/incubator/java-openliberty/README.md @@ -4,7 +4,7 @@ The Open Liberty stack provides a consistent way of developing microservices bas The Open Liberty stack uses a parent Maven project object model (POM) to manage dependency versions and provide required capabilities and plugins. -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). +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). **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. diff --git a/incubator/java-openliberty/image/Dockerfile-stack b/incubator/java-openliberty/image/Dockerfile-stack index 79bcaae61..637e5d233 100644 --- a/incubator/java-openliberty/image/Dockerfile-stack +++ b/incubator/java-openliberty/image/Dockerfile-stack @@ -17,6 +17,8 @@ RUN groupadd --gid 1000 java_group \ COPY ./LICENSE /licenses/ COPY --chown=java_user:java_group ./project /project COPY --chown=java_user:java_group ./config /config +COPY ./mvn-stack-settings.xml /usr/share/maven/conf/settings.xml + USER java_user @@ -27,8 +29,8 @@ WORKDIR /project/ RUN mkdir -p /mvn/repository # Let's see the command we're hiding within the next line RUN mvn -e help:evaluate -Dexpression=maven.version -DforceStdout -RUN mvn -B -Dmaven.repo.local=/mvn/repository -N io.takari:maven:wrapper -Dmaven=$(mvn help:evaluate -Dexpression=maven.version -q -DforceStdout) -RUN mvn -B -Pstack-image-package -Dmaven.repo.local=/mvn/repository liberty:install-server install dependency:go-offline +RUN mvn -B -N io.takari:maven:wrapper -Dmaven=$(mvn help:evaluate -Dexpression=maven.version -q -DforceStdout) +RUN mvn -B -Pstack-image-package liberty:install-server install dependency:go-offline RUN chmod -R 777 /opt/ol && chmod -R 777 /mvn/repository diff --git a/incubator/java-openliberty/image/mvn-stack-settings.xml b/incubator/java-openliberty/image/mvn-stack-settings.xml new file mode 100644 index 000000000..bddb1304b --- /dev/null +++ b/incubator/java-openliberty/image/mvn-stack-settings.xml @@ -0,0 +1,15 @@ + + + + + + /mvn/repository + + diff --git a/incubator/java-openliberty/stack.yaml b/incubator/java-openliberty/stack.yaml index 3a38f0232..f3aca76b0 100644 --- a/incubator/java-openliberty/stack.yaml +++ b/incubator/java-openliberty/stack.yaml @@ -1,5 +1,5 @@ name: Open Liberty -version: 0.2.15 +version: 0.2.16 description: Eclipse MicroProfile & Jakarta EE on Open Liberty & OpenJ9 using Maven license: Apache-2.0 language: java @@ -21,7 +21,7 @@ requirements: docker-version: ">= 17.09.0" appsody-version: ">= 0.5.0" templating-data: - libertyversion: '20.0.0.6' + libertyversion: '20.0.0.9' parentpomgroup: 'dev.appsody' parentpomid: 'java-openliberty' parentpomrange: '[0.2, 0.3)'