Skip to content

Junit_dev_module_profile

Antonin Abhervé edited this page Sep 3, 2020 · 1 revision

Creating a module profile

Profiles are the parent of the extensions, therefore we need one profile to declare the stereotypes.

A profile is declared in module.xml file. Edit the template module.xml file, replace prepared field name and leave the field uid empty.

1 <Profiles>
2    <Profile uid="" id="JUnitProfile">
3
4    ...
5
6    </Profile>
7 </Profiles>
  • uid value is a unique identifier. It is very important that the value shouldn’t be copied from another object (don’t copy the id from the example), nor modified after module delivery. If you are using a Maven project, this identifier is automatically generated during the module packaging.

  • id value is the name of the profile. By convention it should end with Profile.

A profile is not associated to a Java class.

For organization concern of extensions, several profiles can be declared in the module but they can’t be nested.


Clone this wiki locally