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"   -Dcn1Version="My-cn1Version"   -Dcn1PluginVersion="My-cn1PluginVersion"   -DkotlinVersion="My-kotlinVersion"   -DmainName="My-mainName"   -DarchetypeGroupId="com.codenameone"   -DarchetypeArtifactId="cn1app-archetype"   -DarchetypeVersion="7.0.77"   -DinteractiveMode=false 

Required parameters for generate java project:

cn1Version
validationRegex: none
cn1PluginVersion
validationRegex: none
kotlinVersion
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

License

License

GroupId

GroupId

com.codenameone
ArtifactId

ArtifactId

cn1app-archetype
Version

Version

7.0.77
Type

Type

maven-archetype
Description

Description

cn1app-archetype
Codename One Bare-bones App project archetype
Project URL

Project URL

https://github.com/shannah/cn1-maven-archetypes

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.