Dcevm with maven

323 Views Asked by At

I was in a process to set up dcevm on my laptop so that code can be deployed to server without running mvn clean install for every server side change I make. And I managed it working for me using jre.

But now if I try to build project manually using maven command mvn clean install. It gives me error saying you are using jre instead of jdk.

So is there any way by which, I can use both the option to build and deploy server side code. Manually using maven command and automatically using dcevm??

1

There are 1 best solutions below

0
On

Building AEM projects using Maven will only work with a compatible Java JDK. Java JRE will not work so you must set your JAVA_HOME to point to the JDK folder and not the JRE folder.