Details
Description
Currently RMB places generated code into
src/main/java/org/folio/rest/jaxrs
This should be changed to
target/generated-sources/raml-jaxrs/org/folio/rest/jaxrs
Reasons:
Using target/generated-sources is the commonly used directory for java files that are fully autogenerated:
https://confluence.jetbrains.com/display/IDEADEV/Maven+Integration+FAQ#MavenIntegrationFAQ-GeneratedSources
http://www.antlr.org/api/maven-plugin/latest/
https://github.com/mulesoft-labs/raml-jaxrs-codegen/blob/e28c10b/maven-plugin/src/main/java/org/raml/jaxrs/codegen/maven/RamlJaxrsCodegenMojo.java#L60
https://www.jooq.org/doc/3.10/manual/code-generation/codegen-configuration/#N49CB2
IDEs support this directory and warn if one tries to edit the autogenerated java file.
mvn clean will delete the directory automatically.
src/main/java/org/folio/rest/.gitignore containing "jaxrs/" is no longer required.
Code coverage doesn't take target/generated-sources into account. This is correct. (However, the module of the code generator must thoroughly unit test the generated code.)
Generating the code to src/ already has caused some issues:
https://issues.folio.org/browse/RMB-115
https://issues.folio.org/browse/DMOD-23
https://issues.folio.org/browse/DMOD-24
https://issues.folio.org/browse/DMOD-138
https://issues.folio.org/browse/DMOD-141
TestRail: Results
Attachments
Issue Links
- blocks
-
FOLIO-1049 Reject pull request if new code doesn't pass sonar's quality gate (backend modules)
-
- Open
-
-
FOLIO-1076 Make SQ ignore generated sources
-
- Closed
-
- relates to
-
CIRCSTORE-43 Upgrade to RAML Module Builder version 19.0.0
-
- Closed
-
-
DIMPT-4 Update RMB for generated-sources directory
-
- Closed
-
-
MODCXMOCK-16 Update to RMB 19.0.0 (target/generated-sources)
-
- Closed
-
-
MODCXMUX-20 Update to RMB 19.0.0 (target/generated-sources)
-
- Closed
-
-
MODINVSTOR-65 Upgrade to RAML Module Builder version 19.0.0
-
- Closed
-
-
MODNOTES-35 Update to RMB 19.0.0 (target/generated-sources)
-
- Closed
-
-
MODNOTIFY-22 Update to RMB 19.0.0 (target/generated-sources)
-
- Closed
-
-
MODUSERBL-24 Update to RMB 19.0.0 (target/generated-sources)
-
- Closed
-
-
RMB-142 Update mod-rmb-template POM configuration to use target/generated-sources
-
- Closed
-
-
RMB-140 move to v19, 18.0.1 requires entry in pom
-
- Closed
-