DevEnv Setup - mschvarc/PB138-Inventory-Management GitHub Wiki

Project uses Hibernate Metamodel. To support this in IDEA follow these steps:

  1. run 'mvn clean install' from the project root
  2. From IDEA: Build > Build project (ignore any errors)
  3. Open IDEA Settings > Build, Execution, Deployment > Compiler > Annotation Processors
  4. Enable annotation processing
  5. Obtain processors from project classpath
  6. Select: Module content root
  7. Production sources: target\generated-sources\annotations (On Linux use forward slash /)
  8. Test sources: target\generated-test-sources\test-annotations (On Linux use forward slash /)
  9. Apply. Do not specify Processor FQ Name
  10. If you are still getting errors, go to IDEA Settings > Build, Execution, Deployment > Compiler > Uncheck 'Clear output directory on rebuild'
  11. Select / highlight Maven annotation processor as seen in the screenshot. Hit Apply & OK.