RM2PT Generator Project
Create CodeGenerator Project in RM2PT
In RM2PT, File -> New Project
Type project name e.g., SpringBoot
Click “Next >”
Click “Finish “
All the startup projects will be generated in project explorer as follows:
The main generator template is located in src-> package (ArtifactID) -> CodeGenerator.xtend
Note that code template is coded by Xtend language.
Test your generator project
Double Click Eclipse Application
Click Run to open a new Eclipse IDE and then import the requirements model, and right click .remodel and choose RM2PT-Dev / Generate XX Code
The generated code are shown as follows:
Package Code Generator Project through Maven
The Console will show the result as follows:
The finally code generator p2 updatesite is located in xxx.updatesite/target
you can distribute .zip to others to install your code generator
Upload your source code to github with CI/CD support
Create a project on Github
The default code generator project includes CI/CD script under .github/workflow/CICD.yml, you should add your PUSH_Token to secerts to make CI/CD work.
To your github ‘setting / Developer settings / Personal access tokens’, click generate new token. Note that you should select scope of repo and workflow
Then go back to your project, click settings / Secrets, and then paste the tokens with name PUSH_TOKEN
Push your source code to Github Repo
Click Create Repository
Click Commit and Push
Note that you should configure your ssh key propertly if your use ssh way.
Check CI/CD result
Push to RM2PT Plugins Repo
send your application email to firstname.lastname@example.org, then RM2PT will create a repo for your, then you can push your source code to RM2PT repo.