Adobe-Marketing-Cloud / aem-guides-wknd

Steps to create a website with Adobe Experience Manager (AEM)
https://helpx.adobe.com/experience-manager/kt/sites/using/getting-started-wknd-tutorial-develop.html
76 stars 68 forks source link

Problems since AEM 6.4 updates #20

Closed fernandohu closed 6 years ago

fernandohu commented 6 years ago

I am trying to run a mvn clean install -PautoInstallPackage command on a fresh installation of Adobe AEM 6.3 and the following error is showing:

[ERROR] The build could not read 2 projects -> [Help 1]
[ERROR]   
[ERROR]   The project com.adobe.aem.guides:aem-guides-wknd.ui.apps:0.0.1-SNAPSHOT (/home/fernando/Documents/htdocs/adobe-aem-test/aem-guides-wknd-3/ui.apps/pom.xml) has 2 errors
[ERROR]     Unresolveable build extension: Plugin com.day.jcr.vault:content-package-maven-plugin:0.5.1 or one of its dependencies could not be resolved: Could not find artifact com.day.jcr.vault:content-package-maven-plugin:jar:0.5.1 in central (https://repo.maven.apache.org/maven2) -> [Help 2]
[ERROR]     Unknown packaging: content-package @ com.adobe.aem.guides:aem-guides-wknd.ui.apps:[unknown-version], /home/fernando/Documents/htdocs/adobe-aem-test/aem-guides-wknd-3/ui.apps/pom.xml, line 34, column 16
[ERROR]   
[ERROR]   The project com.adobe.aem.guides:aem-guides-wknd.ui.content:0.0.1-SNAPSHOT (/home/fernando/Documents/htdocs/adobe-aem-test/aem-guides-wknd-3/ui.content/pom.xml) has 2 errors
[ERROR]     Unresolveable build extension: Plugin com.day.jcr.vault:content-package-maven-plugin:0.5.1 or one of its dependencies could not be resolved: Could not find artifact com.day.jcr.vault:content-package-maven-plugin:jar:0.5.1 in central (https://repo.maven.apache.org/maven2) -> [Help 2]
[ERROR]     Unknown packaging: content-package @ com.adobe.aem.guides:aem-guides-wknd.ui.content:[unknown-version], /home/fernando/Documents/htdocs/adobe-aem-test/aem-guides-wknd-3/ui.content/pom.xml, line 34, column 16
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException

By the way, I am having lots of problems with the tutorial since you updated it with new content of Adobe AEM 6.4. Previously, everything was working good. I tried reinstalling Adobe AEM. But this time I couldn't even build and deploy. I can't finish the tutorial now. :(

godanny86 commented 6 years ago

Ah sorry to hear that @fernandohu. FWIW the lazybones finished version can still be found: https://github.com/Adobe-Marketing-Cloud/aem-guides-wknd/tree/legacy/lazybones

The content-package-maven-plugin should be available on the Nexus repo: https://repo.adobe.com/nexus/content/groups/public/com/day/jcr/vault/content-package-maven-plugin/0.5.1/. It looks like your mvn command is only looking in the central repo. Does your .m2/settings.xml file have any references to https://repo.adobe.com/nexus/content/groups/public?

Also what version of mvn / java is running?

godanny86 commented 6 years ago

@fernandohu could you verify that your settings.xml file includes a reference to Adobe Nexus repo? Instructions here: https://helpx.adobe.com/experience-manager/kb/SetUpTheAdobeMavenRepository.html. Others seem to have run into this as well: https://github.com/Adobe-Marketing-Cloud/aem-project-archetype/issues/94 but I believe it can be solved by following the Helpx article.

nithyanairkh commented 6 years ago

Try mvn -PautoInstallPackage -Padobe-public clean install command.