...
Code Block |
---|
Command: mvn module-wizard:generate -D<parameterExpression>=<value> |
Parameter Description | ParameterExpression | Default Value | |
Group Id | groupId = | org.openmrs.module | |
Artifact Id | artifactId = | whirlygig | |
Package | org.openmrs.module.whirlgig | ||
Version | version = | 1.0-SNAPSHOT | |
Module Name No Spaces | whirlgigmodule | ||
Module Name | moduleName = | Whirlygig Module | |
Module Description | moduleDescription = | Allows user to generate and save whirlygigs. | |
Module Author | moduleAuthor= | <user user.name | <system-user-name> |
OpenMRS Version Depended on | openmrsVerison = | 1.8.2 | |
Do you want admin page link : (Y/N) | adminLinkReply = | n | |
Link Name | adminPageLink = | Manage Whirlygigs | |
Do you want Spring driven Mvc page : (Y/N) | springMvcReply = | n | |
Do you want service/serviceimpl/dao/hibernatedao mapping : (Y/N) | serviceReply = | n | |
Service Name | serviceDaoName = | Whirlygig | |
Object Name | objectName = | Whirlygig | |
Does this module depend on another module: (Y/N) | dependentModules = | null |
Note:
...
- Package parameter cannot be manipulated. package=org.openmrs.module+artifactId (set internally)
- Module Name parameter , " Module" string get concatenate's. So it is recommended to give only module name(Whirlygig) but not complete name(Whirlygig Module).
Module Name=<given-moduleName>+" Module" - Module No Name spaces is set internally.
- Passing dependent modules list in command line , it should follow a case-
<Module 1 Id>:<Module 1 Version>,<Module 2 Id >Id>:<Module 2 Version>,<Module 3 Id>:<Module 3 Version>,.....
Assumptions,Code Block -DdependentModules=reportmodule:1.0.0,cohortmodule:1.0.5,
-groupId=org.openmrs.module
-artifactid="given<given-module-id"id>-api
Example:
Creating a Demo module with a link in admin page and a dependent module with out any prompts.
...