If I use the AEM plugin for Eclipse then the Archetypes available through it are all multimodule projects.
Is there an archetype I can use to build single module OSGI components, such as an OSGI budle for use as a Servlet.
In the past I could do this from the command line using
$ mvn archetype:generate -DarchetypeGroupId=com.day.jcr.vault -DarchetypeArtifactId=multimodule-content-package-archetype -DarchetypeVersion=1.0.0 -DarchetypeRepository=adobe-public-releases
But now I get
Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on project lambda-java: The desired archetype does not exist (com.day.jcr.vault:multimodule-content-package-archetype:1.0.0)
Are there any AEM MAven archetypes for developing simple sling servlets.
Regards
Clive Stewart
Solved! Go to Solution.
Views
Replies
Total Likes
See this article and the Maven command in it:
https://helpx.adobe.com/experience-manager/using/first-osgi.html
DarchetypeRepository=http://repo.adobe.com/nexus/content/groups/public/ -DarchetypeGroupId=com.day.jcr.vault -DarchetypeArtifactId=multimodule-content-package-archetype -DarchetypeVersion=1.0.2 -DgroupId=com.adobe.cq -DartifactId=key61 -Dversion=1.0-SNAPSHOT -Dpackage=com.adobe.cq -DappsFolderName=myproject -DartifactName="My Project" -DcqVersion="5.6.1" -DpackageGroup="My Company"
Views
Replies
Total Likes
Hi
For your second part of the problem, i would suggest you to have a look at this old forum thread :-
Link:- https://github.com/kolorobot/spring-mvc-quickstart-archetype/issues/50
// Resolved the problem by removing the pom.xml file from the folder .
I hope this would be of some help to you.
Thanks and Regards
Kautuk Sahni
Views
Replies
Total Likes
See this article and the Maven command in it:
https://helpx.adobe.com/experience-manager/using/first-osgi.html
DarchetypeRepository=http://repo.adobe.com/nexus/content/groups/public/ -DarchetypeGroupId=com.day.jcr.vault -DarchetypeArtifactId=multimodule-content-package-archetype -DarchetypeVersion=1.0.2 -DgroupId=com.adobe.cq -DartifactId=key61 -Dversion=1.0-SNAPSHOT -Dpackage=com.adobe.cq -DappsFolderName=myproject -DartifactName="My Project" -DcqVersion="5.6.1" -DpackageGroup="My Company"
Views
Replies
Total Likes
Hi Clive,
Yes as scott stated above, use the maven command as mentioned in the article: https://helpx.adobe.com/experience-manager/using/first-osgi.html
The command which you have referred is outdated one - $ mvn archetype:generate -DarchetypeGroupId=com.day.jcr.vault -DarchetypeArtifactId=multimodule-content-package-archetype -DarchetypeVersion=1.0.0 -DarchetypeRepository=adobe-public-releases
This has been replaced to: mvn archetype:generate -DarchetypeRepository=http://repo.adobe.com/nexus/content/groups/public/ -DarchetypeGroupId=com.day.jcr.vault -DarchetypeArtifactId=multimodule-content-package-archetype -DarchetypeVersion=1.0.2 -DgroupId=com.adobe.cq -DartifactId=key61 -Dversion=1.0-SNAPSHOT -Dpackage=com.adobe.cq -DappsFolderName=myproject -DartifactName="My Project" -DcqVersion="5.6.1" -DpackageGroup="My Company"
This perfectly works for me. Hope this helps!!
Thanks,
Ratna Kumar.
Views
Replies
Total Likes
kautuksahni wrote...
Hi
For your second part of the problem, i would suggest you to have a look at this old forum thread :-
Link:- https://github.com/kolorobot/spring-mvc-quickstart-archetype/issues/50
// Resolved the problem by removing the pom.xml file from the folder .
I hope this would be of some help to you.
Thanks and Regards
Kautuk Sahni
Thank you Kautuk,
I appreciate the help.
I will read at the thread. It makes sense the solution would lye in the pom
regards
Clive
Views
Replies
Total Likes
Hi Scott,
Thank you for both the article and the maven command.
I really appreciate all the help people have given me on this forum.
Regards
Clive
Views
Replies
Total Likes
Ratna Kumar wrote...
Hi Clive,
Yes as scott stated above, use the maven command as mentioned in the article: https://helpx.adobe.com/experience-manager/using/first-osgi.html
The command which you have referred is outdated one - $ mvn archetype:generate -DarchetypeGroupId=com.day.jcr.vault -DarchetypeArtifactId=multimodule-content-package-archetype -DarchetypeVersion=1.0.0 -DarchetypeRepository=adobe-public-releases
This has been replaced to: mvn archetype:generate -DarchetypeRepository=http://repo.adobe.com/nexus/content/groups/public/ -DarchetypeGroupId=com.day.jcr.vault -DarchetypeArtifactId=multimodule-content-package-archetype -DarchetypeVersion=1.0.2 -DgroupId=com.adobe.cq -DartifactId=key61 -Dversion=1.0-SNAPSHOT -Dpackage=com.adobe.cq -DappsFolderName=myproject -DartifactName="My Project" -DcqVersion="5.6.1" -DpackageGroup="My Company"
This perfectly works for me. Hope this helps!!
Thanks,
Ratna Kumar.
Hi Ratna,
The above maven command worked perfectly for me.
regards
Clive Stewart
Views
Replies
Total Likes
Views
Likes
Replies