Create Java project with Maven archetype cn1app-archetype

Codename One Bare-bones App project archetype

Create a Java Project by archetype cn1app-archetype with Command Line:

mvn archetype:generate   -DgroupId="com.mycompany.app"   -DartifactId="my-app-id"   -Dcn1-version="My-cn1-version"   -Dkotlin="My-kotlin"   -Dkotlin-version="My-kotlin-version"   -DmainName="My-mainName"   -DarchetypeGroupId="com.codenameone"   -DarchetypeArtifactId="cn1app-archetype"   -DarchetypeVersion="7.0.8-b3"   -DinteractiveMode=false 

Required parameters for generate java project:

cn1-version
validationRegex: none
kotlin
validationRegex: none
kotlin-version
validationRegex: none
mainName
validationRegex: ^[A-Z][a-zA-Z0-9]+$

Generated Project modules

  • ${rootArtifactId}-common
  • ${rootArtifactId}-javase
  • ${rootArtifactId}-javascript
  • ${rootArtifactId}-ios
  • ${rootArtifactId}-android
  • ${rootArtifactId}-win

Details about maven archetype cn1app-archetype

GroupId

GroupId

com.codenameone
ArtifactId

ArtifactId

cn1app-archetype
Version

Version

7.0.8-b3
Type

Type

maven-archetype

How to add to project

mvn archetype:generate -DgroupId=<com.mycompany.app> -DartifactId=<my-app>  -DarchetypeGroupId=com.codenameone -DarchetypeArtifactId=cn1app-archetype -DarchetypeVersion=7.0.8-b3 -DinteractiveMode=false