The java commandlet allows to install and setup Java. Also it supports devon4j.
The arguments (devon java «args») are explained by the following table:
devon java| Argument(s) | Meaning |
|---|---|
|
setup OpenJDK (install or update and verify), configurable via |
|
create a new Java project based on devon4j application template. If a single argument is provided, this is the package name and is automatically split into groupId and artifactId. Use |
|
migrate a devon4j project to the latest version. If for some reasons the current devonfw version (e.g. oasp4j:2.6.0) can not be auto-detected you may provide it manually after the 'from' argument. Also the 'single' option allows to migrate only to the next available version." |
|
generate cicd files for the currect devon4java project |
Examples for create a new devon4j application:
devon java create com.example.domain.myappWill create an app with package com.example.domain.myapp, groupId com.example.domain, artifactId myapp, version 1.0.0-SNAPSHOT, and h2 database.
devon java create -Dversion=0.0.1-alpha1 com.example.domain.myappWill create an app with package com.example.domain.myapp, groupId com.example.domain, artifactId myapp, version 0.0.1-alpha1, and h2 database.
devon java create com.example.domain.myapp com.example.groupWill create an app with package com.example.domain.myapp, groupId com.example.group, artifactId myapp, version 1.0.0-SNAPSHOT, and h2 database.
devon java create com.example.domain.myapp com.example.group demo-appWill create an app with package com.example.domain.myapp, groupId com.example.group, artifactId demo-app, version 1.0.0-SNAPSHOT, and h2 database.
devon java create com.example.domain.myapp -DartifactId=demo-app -DdbType=hanaWill create an app with package com.example.domain.myapp, groupId com.example.group, artifactId demo-app, version 1.0.0-SNAPSHOT, and SAP hana database.
devon java create com.example.domain.myapp -DdbType=oracle -Dversion=0.0.1 com.example.group -Dbatch=batchWill create an app with package com.example.domain.myapp, groupId com.example.group, artifactId myapp, version 0.0.1, oracle database, and with a batch module.