FAQ
JEAF Maven Plugin
# | Question | Answer |
---|---|---|
1.1 | Why is JEAF Maven Plugin need in build process? |
|
JEAF Generator
# | Question | Answer |
---|---|---|
2.1 | When executing JEAF Generator Maven Plugin a warning with error code | Depending on how you export XMI files from your MagicDraw model it might happen that the files contain information about file systems paths. This should not be an issue on the machine where you exported the files. However, it may lead to problems on other devices or your CI/CD infrastructure where file system paths might not be the same.
How to solve this issue? Root cause when using MagicDraw for this problem is a setting in your MagicDraw UML project. There it is possible to configure an XMI path that makes use of variables. This variable causes that a file path will also be part in the generated XMI files.
As soon as you remove the variable no file system reference will be used inside the generated XMI files. |
2.2 | When generating code for a REST resource then warning about incompatible types (error-code | When working with OpenAPI and REST there are some restrictions concerning the data types that can be used in Java. This warning tells you that in a specific REST operation a incompatible parameter or return type is used. This will lead to an invalid request / response. The following Java date types are considered to not be OpenAPI compatible:
|
2.3 | Generated OpenAPI spec contains comment
What does that mean? | JEAF Generator supports to mark various elements in the UML model as deprecated. This information is also added to the generated code and OpenAPI specification. During code generation also a warning with code |