Skip to content

project

Satish Sharma edited this page Jul 10, 2018 · 1 revision

#Configure project related options in Magic-Compose

In this section we explain about the elements which can be used to configure projcet generation.

Note: These elements may vary according to the framework and tool selected for project. Currently these are specific to Java, spring Boot and Maven.

!!! warning Do not use blank spaces and special characters in any of vlues for these element using which may cause failure in application generation.

** projectName **

!!! note "" This is the name given to the project. Magic-Code framework will generate the project using this name. This can contain any valid string. The value supplied here goes to Maven <name> tag.

** groupId **

!!! note "" Value of this element is used to generate the groupId for the maven based spring-boot project. The value supplied here goes to Maven <groupId> tag.

** artifactId **

!!! note "" Value of this element is used to generate the artifactId for the maven based spring-boot project. The value supplied here goes to Maven <artifactId> tag.

** basePackage **

!!! note "" Value of this element is used to generate the base pacakge for the source code. All the generated source code shall be placed inside this base package and sub packages. Standard java package declaration naming conventions apply to the value for this element.

** Sample : "com.magiccode.myaswesomeproject" **

Example for project configuration

{
  "projectName": "MagicCode",
  "groupId": "com.magiccode.project",
  "artifactId": "myfirstmagiccode",
  "basePackage": "com.magiccode.project"
}

Above Magic-Code snippet will generate project as below

Generated Project Structure

Clone this wiki locally