Skip to content

Commit

Permalink
use devfile.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Deel96 authored Aug 22, 2022
1 parent 39bf349 commit 4b090c5
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions dontuseme.yaml → devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ commands:
- id: maven-build
exec:
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: mvn clean install
group:
kind: build
Expand All @@ -79,9 +78,8 @@ commands:
exec:
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: |
mvn spring-boot:run -DskipTests \
-Dspring-boot.run.jvmArguments='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005,quiet=y'
commandLine: >-
java -jar target/*.jar
group:
kind: run
isDefault: true
Expand All @@ -91,8 +89,20 @@ commands:
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: |
mvn spring-boot:run -DskipTests -Dspring-boot.run.profiles=mysql \
-Dspring-boot.run.jvmArguments='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005,quiet=y'
java -jar -Dspring.profiles.active=mysql \
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 \
target/*.jar
group:
kind: run
isDefault: true

- id: run-debug
exec:
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: >-
java -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 target/*.jar
group:
kind: run
isDefault: true
isDefault: true
Footer

0 comments on commit 4b090c5

Please sign in to comment.