Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with archetype 11 / AEM 6.3 #94

Closed
ttaveira opened this issue Jun 5, 2017 · 11 comments
Closed

Issues with archetype 11 / AEM 6.3 #94

ttaveira opened this issue Jun 5, 2017 · 11 comments

Comments

@ttaveira
Copy link

ttaveira commented Jun 5, 2017

Hi,

I'm having some issues with archetype 11. Through the command line I created my local project with:
mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeGroupId=com.adobe.granite.archetypes -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=11 -DarchetypeCatalog=https://repo.adobe.com/nexus/content/groups/public/

After that, I tried to deploy the project to AEM with:
mvn clean install -PautoInstallPackage

This results in the following error:
[INFO] Scanning for projects... [WARNING] The POM for com.day.jcr.vault:content-package-maven-plugin:jar:0.5.1 is missing, no dependency information available [ERROR] [ERROR] Some problems were encountered while processing the POMs: [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: Failure to find com.day.jcr.vault:content-package-maven-plugin:jar:0.5.1 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @ [ERROR] Unknown packaging: content-package @ org.deloittedigital:testproject.ui.apps:[unknown-version], C:\Users\ttaveira\workspace\testproject\ui.apps\pom.xml, line 34, column 16 [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: Failure to find com.day.jcr.vault:content-package-maven-plugin:jar:0.5.1 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @ [ERROR] Unknown packaging: content-package @ org.deloittedigital:testproject.ui.content:[unknown-version], C:\Users\ttaveira\workspace\testproject\ui.content\pom.xml, line 34, column 16

I'm using Maven 3.5.0 with Java 1.8.0_131.

Any idea what might be wrong?

Thank you,
Tiago

@Hawleywood
Copy link

Add -Padobe-public to the mvn command

@jamiecounsell
Copy link

@ttaveira You also may need to update your settings.xml as described in this article.

@wiiitek
Copy link
Contributor

wiiitek commented Sep 4, 2017

I have added some updates for the archetype to make it work for AEM 6.3.0.
See #101.

@bpauli
Copy link
Contributor

bpauli commented Sep 28, 2017

fixed in #101

@bpauli bpauli closed this as completed Sep 28, 2017
@timdonovanuk
Copy link

I see the fix is merged but I get the same error when following https://github.com/Adobe-Marketing-Cloud/aem-project-archetype

@wiiitek
Copy link
Contributor

wiiitek commented Oct 26, 2017

What is the error you get? Are you executing the command in single line?:

mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeGroupId=com.adobe.granite.archetypes -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=12 -DarchetypeCatalog=https://repo.adobe.com/nexus/content/groups/public/

It works for me on Windows 8.1 with Maven 3.3.9 and Oracle java 1.8 ...

@timdonovanuk
Copy link

@wiiitek As mentioned by the original poster, it is not a problem executing the mvn generate command, it's a problem doing mvn clean install after.

java version "1.8.0_144"
maven 3.5.0

@devinyan
Copy link

@ttaveira Hi ,did you fix it yet? I met the same issue with you.

@mukul24
Copy link

mukul24 commented Apr 21, 2018

Use below command to deploy the package to your AEM server:
mvn -PautoInstallPackage -Padobe-public clean install

It is working for me.

@godanny86
Copy link
Collaborator

@devinyan have you updated your .m2/settings.xml file to include a reference to the Adobe Nexus repo? You can follow this article to add the adobe-public profile: https://helpx.adobe.com/experience-manager/kb/SetUpTheAdobeMavenRepository.html

@nithyanairkh
Copy link

mvn -PautoInstallPackage -Padobe-public clean install worked to solve the issue with Archetype13, AEM6.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants