che icon indicating copy to clipboard operation
che copied to clipboard

Use mvn commands to run and debug for java-maven-based devfiles

Open apupier opened this issue 4 years ago • 2 comments

Is your enhancement related to a problem? Please describe

Currently, most devfiles are using java -jar target/*.jar.

the inconvenient of using java -jar is that it requires users to have launch the build task beforehand, and every time there si a modification done. https://github.com/eclipse-che/che-devfile-registry/blob/884b521459fcc1b6657b2241044ccf222fd149c2/devfiles/java-web-spring/devfile.yaml#L59

Describe the solution you'd like

For instance to launch in debug with mvn with springboot

https://github.com/eclipse-che/che-devfile-registry/blob/884b521459fcc1b6657b2241044ccf222fd149c2/devfiles/apache-camel-springboot/devfile.yaml#L72

Describe alternatives you've considered

No response

Additional context

/!\ devfiles are currently in migration to devfile v2 in che-samples repository

apupier avatar Nov 18 '21 13:11 apupier

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

che-bot avatar May 20 '22 00:05 che-bot

java-mven based samples update status

  • [x] apache-camel-springboot :: https://github.com/che-samples/fuse-rest-http-booster/tree/devfilev2 - up to date
  • [x] java-lombok :: https://github.com/che-samples/lombok-project-sample/tree/devfilev2 - up to date
  • [x] java-mongo :: https://github.com/che-samples/java-guestbook/tree/devfilev2 - Pull Request
  • [x] java-web-spring :: https://github.com/che-samples/java-spring-petclinic/tree/devfilev2 - Pull Request
  • [x] quarkus :: https://github.com/che-samples/quarkus-quickstarts/tree/devfilev2 - up to date

vitaliy-guliy avatar Aug 03 '22 15:08 vitaliy-guliy

Devfile registry contains only five java maven based samples. Two of them, that were using java -jar have been updated.

vitaliy-guliy avatar Aug 18 '22 12:08 vitaliy-guliy