DevEnv Setup - mschvarc/PB138-Inventory-Management GitHub Wiki
Project uses Hibernate Metamodel. To support this in IDEA follow these steps:
- run 'mvn clean install' from the project root
- From IDEA: Build > Build project (ignore any errors)
- Open IDEA Settings > Build, Execution, Deployment > Compiler > Annotation Processors
- Enable annotation processing
- Obtain processors from project classpath
- Select: Module content root
- Production sources: target\generated-sources\annotations (On Linux use forward slash /)
- Test sources: target\generated-test-sources\test-annotations (On Linux use forward slash /)
- Apply. Do not specify Processor FQ Name
- If you are still getting errors, go to IDEA Settings > Build, Execution, Deployment > Compiler > Uncheck 'Clear output directory on rebuild'
- Select / highlight Maven annotation processor as seen in the screenshot. Hit Apply & OK.
