Skip to content

Commit

Permalink
Add new 1.3.0 version for 'java-maven', with JDK 17
Browse files Browse the repository at this point in the history
Signed-off-by: Armel Soro <[email protected]>
  • Loading branch information
rm3l committed Apr 6, 2023
1 parent df3c096 commit 8911fd8
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
63 changes: 63 additions & 0 deletions stacks/java-maven/1.3.0/devfile.yaml
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:latest
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
2 changes: 2 additions & 0 deletions stacks/java-maven/stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ icon: https://raw.githubusercontent.com/devfile-samples/devfile-stack-icons/main
versions:
- version: 1.2.0
default: true # should have one and only one default version
# 1.3.0: with JDK 17
- version: 1.3.0

0 comments on commit 8911fd8

Please sign in to comment.