Quantcast
Channel: Adobe AEM CQ tips » AEM/CQ5
Viewing all articles
Browse latest Browse all 8

Add Maven dependencies to AEM/CQ5 project in Eclipse

$
0
0

Problem

Eclipse doesn’t see Maven dependencies in Maven based Adobe AEM/CQ5 projects and auto completion doesn’t work either.

Solution

Close Eclipse and run the following command from shell

mvn -Declipse.workspace=<path/to/eclipse/workspace> eclipse:add-maven-repo

after that, go to your folder with the project you want to make Maven dependencies working and run

mvn eclipse:eclipse

After that, simply start Eclipse and everything should work fine.


Viewing all articles
Browse latest Browse all 8