-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[java-maven] Use LTS JDK 17 image (#167)
This merges pull request #167 from rm3l/java-maven_bump_jdk_to_17 Signed-off-by: Armel Soro <[email protected]>
- Loading branch information
Showing
3 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
schemaVersion: 2.1.0 | ||
metadata: | ||
name: java-maven | ||
displayName: Maven Java | ||
description: Java application based on Maven 3.6 and OpenJDK 17 | ||
icon: https://raw.githubusercontent.com/devfile-samples/devfile-stack-icons/main/java-maven.jpg | ||
tags: | ||
- Java | ||
- Maven | ||
projectType: Maven | ||
language: Java | ||
version: 1.3.0 | ||
starterProjects: | ||
- name: springbootproject | ||
git: | ||
remotes: | ||
origin: 'https://github.com/odo-devfiles/springboot-ex.git' | ||
components: | ||
- name: tools | ||
container: | ||
image: registry.access.redhat.com/ubi9/openjdk-17:1.16-1.1696518670 | ||
command: ["tail", "-f", "/dev/null"] | ||
memoryLimit: 512Mi | ||
mountSources: true | ||
endpoints: | ||
- name: http-maven | ||
targetPort: 8080 | ||
- exposure: none | ||
name: debug | ||
targetPort: 5858 | ||
volumeMounts: | ||
- name: m2 | ||
path: /home/user/.m2 | ||
env: | ||
- name: DEBUG_PORT | ||
value: '5858' | ||
- name: m2 | ||
volume: {} | ||
commands: | ||
- id: mvn-package | ||
exec: | ||
component: tools | ||
workingDir: ${PROJECT_SOURCE} | ||
commandLine: 'mvn -Dmaven.repo.local=/home/user/.m2/repository package' | ||
group: | ||
kind: build | ||
isDefault: true | ||
- id: run | ||
exec: | ||
component: tools | ||
workingDir: ${PROJECT_SOURCE} | ||
commandLine: 'java -jar target/*.jar' | ||
group: | ||
kind: run | ||
isDefault: true | ||
- id: debug | ||
exec: | ||
component: tools | ||
workingDir: ${PROJECT_SOURCE} | ||
commandLine: 'java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=${DEBUG_PORT},suspend=n -jar target/*.jar' | ||
group: | ||
kind: debug | ||
isDefault: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: java-maven | ||
description: 'Java application based on Maven and OpenJDK' | ||
displayName: Maven Java | ||
icon: https://raw.githubusercontent.com/devfile-samples/devfile-stack-icons/main/java-maven.jpg | ||
versions: | ||
- version: 1.2.0 | ||
# 1.3.0: with JDK 17 | ||
- version: 1.3.0 | ||
default: true # should have one and only one default version |