Hi Everyone,
I'm a facing the build error when i i type below command
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
G:\cq\maven_4>mvn archetype:generate -DarchetypeGroupId=com.day.jcr.vault -DarchetypeArtifactId=multimodule-content-package-archetype -DarchetypeVersion=1.0.0 -DarchetypeRepository=adobe-public-releases
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Interactive mode
[INFO] Archetype defined by properties
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.510s
[INFO] Finished at: Mon Oct 14 14:05:27 IST 2013
[INFO] Final Memory: 8M/79M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on project standalone-pom: The des
ired archetype does not exist (com.day.jcr.vault:multimodule-content-package-archetype:1.0.0) -> [Help 1]
[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/MojoFailureException
http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...
and followed the below link for reference it didn't work out for me
Note:Doing the below exercise but unable to set up maven :(
http://helpx.adobe.com/adobe-cq/using/querying-experience-manager-data-using.html
Thanks in advance!
Solved! Go to Solution.
Views
Replies
Total Likes
Excellent. You can also use the following to specify Profiles that are active, in the case you have 1+. I noticed your settings.xml does not have these.
<activeProfiles>
<activeProfile>local-cq</activeProfile>
<activeProfile>adobe-public</activeProfile>
</activeProfiles>
Views
Replies
Total Likes
Have you set up your Maven Repo correctly as per http://helpx.adobe.com/cq/kb/SetUpTheAdobeMavenRepository.html ?
EDIT: Check on your file system for existence of ".m2\repository\com\day\jcr\vault\multimodule-content-package-archetype", if that is not there, it looks like either don't have access to the repo for some reason (on your side, as it's public) or the configuration isn't right in your ".m2\settings.xml". It's definitely in the repo at http://repo.adobe.com/nexus/content/groups/public/com/day/jcr/vault/multimodule-content-package-arch....
Views
Replies
Total Likes
i've deleted the repo from C:\Users\viswa\.m2\repo i thought it may be a problem.Is there a way to get back the repo.
PFA settings.xml.Please revert back i've missed any part.
Thanks!
Views
Replies
Total Likes
Hi,
As before below command throws the build error
G:\cq\maven_4>mvn archetype:generate -DarchetypeGroupId=com.day.jcr.vault -DarchetypeArtifactId=multimodule-content-package-archetype -DarchetypeVersion=1.0.0 -DarchetypeRepository=adobe-public-releases
when we add few words(-P adobe-public) the command the build is passes
G:\cq\maven_4>mvn archetype:generate -DarchetypeGroupId=com.day.jcr.vault -DarchetypeArtifactId=multimodule-content-package-archetype -DarchetypeVersion=1.0.0 -DarchetypeRepository=adobe-public-releases -P adobe-public.
Is this the right approach please let me know?.
Thanks in advance!!
Views
Replies
Total Likes
Hi,
In Profile element in .\m2\settings.xml
<activation>
<activeByDefault>false</activeByDefault>
</activation>
If i make activeByDefault element to true i'm able build.
Thanks,
Viswa
Views
Replies
Total Likes
Excellent. You can also use the following to specify Profiles that are active, in the case you have 1+. I noticed your settings.xml does not have these.
<activeProfiles>
<activeProfile>local-cq</activeProfile>
<activeProfile>adobe-public</activeProfile>
</activeProfiles>
Views
Replies
Total Likes