Maven archetype:generate not working for multimodule-content-package-archetype | Community
Skip to main content
Level 3
October 16, 2015
Solved

Maven archetype:generate not working for multimodule-content-package-archetype

  • October 16, 2015
  • 4 replies
  • 1256 views

I get an error when I run ...

mvn archetype:generate -DarchetypeGroupId=com.day.jcr.vault -DarchetypeArtifactId=multimodule-content-package-archetype -DarchetypeVersion=1.0.0 -DarchetypeRepository=adobe-public-releases

It appears the artifact has disappeared from this location:
http://repo.adobe.com/nexus/content/groups/public/com/day/jcr/vault/

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by danchapmanme

If you look at the date in the Adobe repo, all artifacts were re-added today, 4th September so thats why it wasn't working.

4 replies

Feike_Visser1
Adobe Employee
Adobe Employee
October 16, 2015

Can you try again?, yesterday we some artifacts have been put back.

It works for me the command from above.

--

Feike

Adobe Employee
October 16, 2015

I would recommend using the latest released version, 1.0.2:

mvn archejcr.vault -DarchetypeArtifactId=multimodule-content-package-archetype -DarchetypeVersion=1.0.2 -DarchetypeRepository=adobe-public-releases

That said, both should work fine. Does your maven settings.xml contain the correct repository details? I've pasted a working settings.xml below:

<?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <profiles> <profile> <id>adobe-public</id> <activation> <activeByDefault>true</activeByDefault> </activation> <repositories> <repository> <id>adobe-public-releases</id> <name>Adobe Public Repository</name> <url>http://repo.adobe.com/nexus/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>adobe-public-releases</id> <name>Adobe Public Repository</name> <url>http://repo.adobe.com/nexus/content/groups/public</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> <!-- ========================================================================== --> <!--     A C T I V E   P R O F I L E S                                          --> <!-- ========================================================================== --> <activeProfiles> <activeProfile>adobe-public</activeProfile> </activeProfiles> <!-- ========================================================================== --> <!--     P L U G I N  G R O U P S                                               --> <!-- ========================================================================== --> <pluginGroups> <pluginGroup>org.sonatype.plugins</pluginGroup> <pluginGroup>com.day.jcr.vault</pluginGroup> <pluginGroup>org.apache.sling</pluginGroup> <pluginGroup>com.adobe.granite</pluginGroup> </pluginGroups> </settings>
Level 3
October 16, 2015

mvn archejcr.vault -DarchetypeArtifactId=multimodule-content-package-archetype -DarchetypeVersion=1.0.2 -DarchetypeRepository=adobe-public-releases

This has started working again now :) Thank you for replying.

danchapmanmeAuthorAccepted solution
Level 3
October 16, 2015

If you look at the date in the Adobe repo, all artifacts were re-added today, 4th September so thats why it wasn't working.