Build individual module

I am trying to build the camunda-rest module without having to build the entire project, but it fails due to not recognizing a new classI have added to another module. Building the entire project succeeds though. This is the command I am using:

mvn -e clean package -Dmaven.test.skip=true

Any help on this?

Thanks

I’m still having trouble building engine-rest individually. Is there a solution?