schemaVersion: 2.0.0
metadata:
name: java-maven
version: 1.1.0
starterProjects:
- name: springbootproject
git:
remotes:
origin: "https://github.com/odo-devfiles/springboot-ex.git"
components:
- name: tools
container:
image: quay.io/eclipse/che-java11-maven:nightly
memoryLimit: 512Mi
mountSources: true
endpoints:
- name: 'http-8080'
targetPort: 8080
volumeMounts:
- name: m2
path: /home/user/.m2
- name: m2
volume: {}
commands:
- id: mvn-package
exec:
component: tools
commandLine: "mvn -Dmaven.repo.local=/home/user/.m2/repository -Dhttp.proxyHost=<proxy-host> -Dhttp.proxyPort=<proxy-port> -Dhttps.proxyHost=<proxy-host> -Dhttps.proxyPort=<proxy-port> package"
group:
kind: build
isDefault: true
- id: run
exec:
component: tools
commandLine: "java -jar target/*.jar"
group:
kind: run
isDefault: true
- id: debug
exec:
component: tools
commandLine: "java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=${DEBUG_PORT},suspend=n -jar target/*.jar"
group:
kind: debug
isDefault: true