Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Is there Single module AEM Maven Archetype

Clive_Stewart
Level 6
Level 6

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

1 Accepted Solution
smacdonald2008
Correct answer by
Level 10
Level 10

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"

View solution in original post

6 Replies
kautuk_sahni
Community Manager
Community Manager

Hi 

For your second part of the problem, i would suggest you to have a look at this old forum thread :-

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

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

smacdonald2008
Correct answer by
Level 10
Level 10

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"

View solution in original post

Ratna_Kumar
Community Advisor
Community Advisor

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.

Clive_Stewart
Level 6
Level 6

kautuksahni wrote...

Hi 

For your second part of the problem, i would suggest you to have a look at this old forum thread :-

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

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

Clive_Stewart
Level 6
Level 6

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

Clive_Stewart
Level 6
Level 6

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