mvn archetype:generate -DarchetypeGroupId=com.day.jcr.vault -DarchetypeArtifactId=multimodule-content-package-archetype -DarchetypeVersion=1.0.0 -DarchetypeRepository=adobe-public-releases
i tried replacing DarchetypeVersion=1.0.1 and DarchetypeVersion=1.0.2 nothing works.I think repo.adobe.com is up.
Solved! Go to Solution.
Views
Replies
Total Likes
Do you have the repository "adobe-public-releases" defined?
See [0] for the definition; maybe you need to add the parameter "-P adobe-public" to your maven command to enable the profile with the adobe repository.
[0] http://helpx.adobe.com/experience-manager/kb/SetUpTheAdobeMavenRepository.html
Views
Replies
Total Likes
I just sucessfully executed this:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\AdobeCQ>%M2_HOME%\bin\mvn archetype:generate -DarchetypeGroupId=com.day.jcr.v
ault -DarchetypeArtifactId=multimodule-content-package-archetype -DarchetypeVers
ion=1.0.0 -DarchetypeRepository=adobe-public-releases
[INFO] Scanning for projects...
Downloading: http://dev.cqblueprints.com/nexus/content/repositories/releases/org
/apache/maven/plugins/maven-metadata.xml
Downloading: http://repo2.maven.org/maven2/org/apache/maven/plugins/maven-metada
ta.xml
Downloading: http://repo.adobe.com/archiva/repository/day-central/org/apache/mav
en/plugins/maven-metadata.xml
Downloading: http://repo.dev.day.com/central/org/apache/maven/plugins/maven-meta
data.xml
Downloading: http://repo.adobe.com/archiva/repository/day-central/org/codehaus/m
ojo/maven-metadata.xml
Downloading: http://repo.dev.day.com/central/org/codehaus/mojo/maven-metadata.xm
l
Downloaded: http://repo2.maven.org/maven2/org/apache/maven/plugins/maven-metadat
a.xml (13 KB at 4.6 KB/sec)
Downloading: http://repo2.maven.org/maven2/org/codehaus/mojo/maven-metadata.xml
Downloaded: http://repo2.maven.org/maven2/org/codehaus/mojo/maven-metadata.xml (
22 KB at 102.7 KB/sec)
Downloading: http://dev.cqblueprints.com/nexus/content/repositories/releases/org
/codehaus/mojo/maven-metadata.xml
Downloaded: http://repo.adobe.com/archiva/repository/day-central/org/apache/mave
n/plugins/maven-metadata.xml (246 B at 0.1 KB/sec)
Downloaded: http://repo.adobe.com/archiva/repository/day-central/org/codehaus/mo
jo/maven-metadata.xml (258 B at 0.3 KB/sec)
Downloading: http://repo.adobe.com/archiva/repository/day-central/org/apache/mav
en/plugins/maven-archetype-plugin/maven-metadata.xml
Downloading: http://repo.dev.day.com/central/org/apache/maven/plugins/maven-arch
etype-plugin/maven-metadata.xml
Downloading: http://dev.cqblueprints.com/nexus/content/repositories/releases/org
/apache/maven/plugins/maven-archetype-plugin/maven-metadata.xml
Downloading: http://repo2.maven.org/maven2/org/apache/maven/plugins/maven-archet
ype-plugin/maven-metadata.xml
Downloaded: http://repo2.maven.org/maven2/org/apache/maven/plugins/maven-archety
pe-plugin/maven-metadata.xml (701 B at 3.2 KB/sec)
[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
Define value for property 'groupId': : com.test
Define value for property 'artifactId': : testmar
Define value for property 'version': 1.0-SNAPSHOT: :
Define value for property 'package': com.test: : com.test
Define value for property 'appsFolderName': : test3
Define value for property 'artifactName': : test3
Define value for property 'packageGroup': : test3
Confirm properties configuration:
groupId: com.test
artifactId: testmar
version: 1.0-SNAPSHOT
package: com.test
appsFolderName: test3
artifactName: test3
packageGroup: test3
Y: : Y
[INFO] -------------------------------------------------------------------------
---
[INFO] Using following parameters for creating project from Archetype: multimodu
le-content-package-archetype:1.0.0
[INFO] -------------------------------------------------------------------------
---
[INFO] Parameter: groupId, Value: com.test
[INFO] Parameter: artifactId, Value: testmar
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: package, Value: com.test
[INFO] Parameter: packageInPathFormat, Value: com/test
[INFO] Parameter: package, Value: com.test
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: groupId, Value: com.test
[INFO] Parameter: packageGroup, Value: test3
[INFO] Parameter: appsFolderName, Value: test3
[INFO] Parameter: artifactName, Value: test3
[INFO] Parameter: artifactId, Value: testmar
[INFO] Parent element not overwritten in C:\AdobeCQ\testmar\bundle\pom.xml
[INFO] Parent element not overwritten in C:\AdobeCQ\testmar\content\pom.xml
[INFO] project created from Archetype in dir: C:\AdobeCQ\testmar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 41.696s
[INFO] Finished at: Fri Mar 14 11:14:03 EDT 2014
[INFO] Final Memory: 10M/184M
[INFO] ------------------------------------------------------------------------
C:\AdobeCQ>
The service is running. Has it ever worked for you and stopped working?
Views
Replies
Total Likes
Have you created the maven profile? http://dev.day.com/docs/en/cq/current/core/how_to/how_to_use_the_vlttool/vlt-mavenplugin.html#Obtain...
Incidentally, you should use -DarchetypeVersion=1.0.2
scott
Views
Replies
Total Likes
i am getting this error when i try this..
D:\CQ\sling test>mvn archetype:generate -DarchetypeGroupId=com.day.jcr.vault -DarchetypeArtifactId=multimodule-content-package-archetype -D
archetypeVersion=1.0.2 -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: 0.770s
[INFO] Finished at: Fri Mar 14 20:46:19 IST 2014
[INFO] Final Memory: 7M/19M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on project standalone-pom: The de
sired archetype does not exist (com.day.jcr.vault:multimodule-content-package-archetype:1.0.2) -> [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
D:\CQ\sling test>
Views
Replies
Total Likes
[WARNING] Unrecognised tag: 'profile' (position: START_TAG seen ...</pluginGroup>\n -->\n\t<profile>... @83:11) @ D:\eclipse-jee-juno-S R1-win32-x86_64\apache-maven-3.1.1\bin\..\conf\settings.xml, line 83, column 11
This an error in your settings.xml file. It needs to match the file structure here: https://maven.apache.org/settings.html
Views
Replies
Total Likes
Sorry i actually messed my setting.xml file. i have edited my previous reply can you look into that.
Views
Replies
Total Likes
As Justin pointed out - the problem is the settings.xml file. Can you test this by installing Maven on a clean computer and trying this again.
Views
Replies
Total Likes
I delete and installed new maven 3.2.1 still i have the same problem. I am getting this error..
D:\CQ\sling test>mvn archetype:generate -DarchetypeGroupId=com.day.jcr.vault -DarchetypeArtifactId=multimodule-content-package-archetype -D
archetypeVersion=1.0.2 -DarchetypeRepository=adobe-public-releases
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[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: 0.744 s
[INFO] Finished at: 2014-03-15T23:38:18+05:30
[INFO] Final Memory: 7M/19M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on project standalone-pom: The de
sired archetype does not exist (com.day.jcr.vault:multimodule-content-package-archetype:1.0.2) -> [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
but when i try this .. mvn archetype: generate its working fine. I am getting all the archetypes
Views
Replies
Total Likes
Do you have the repository "adobe-public-releases" defined?
See [0] for the definition; maybe you need to add the parameter "-P adobe-public" to your maven command to enable the profile with the adobe repository.
[0] http://helpx.adobe.com/experience-manager/kb/SetUpTheAdobeMavenRepository.html
Views
Replies
Total Likes
thanks jorg hoh its working for me now.:)
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies