Expand my Community achievements bar.

SOLVED

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

Avatar

Level 4

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/

1 Accepted Solution

Avatar

Correct answer by
Level 4

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.

View solution in original post

4 Replies

Avatar

Employee

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

It works for me the command from above.

--

Feike

Avatar

Employee

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>

Avatar

Level 4

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.

Avatar

Correct answer by
Level 4

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.