Cannot create a project from archetype ...

1,682 views
Skip to first unread message

Filip G.

unread,
Feb 21, 2017, 8:00:08 AM2/21/17
to Hippo Community
I am following these instructions: https://www.onehippo.org/trails/getting-started/hippo-essentials-getting-started.html

When entering this command

mvn archetype:generate -DarchetypeGroupId=org.onehippo.cms7 -DarchetypeArtifactId=hippo-project-archetype -DarchetypeVersion=4.1.0 -DarchetypeRepository=https://maven.onehippo.com/maven2

I get this result: 

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:3.0.0:generate (default-cli) > generate-sources @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:3.0.0:generate (default-cli) < generate-sources @ standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:3.0.0:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Interactive mode
[WARNING] Archetype not found in any catalog. Falling back to central repository (http://repo.maven.apache.org/maven2).
[WARNING] Use -DarchetypeRepository=<your repository> if archetype's repository is elsewhere.
[WARNING] The POM for org.onehippo.cms7:hippo-project-archetype:jar:4.1.0 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.457 s
[INFO] Finished at: 2017-02-21T12:27:27+01:00
[INFO] Final Memory: 20M/399M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.0:generate (default-cli) on project standalone-pom: The desired archetype does not exist (org.onehippo.cms7:hippo-project-archetype:4.1.0) -> [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:

I tried this on two Linux machines and one Windows10, same result.
I am not behind a proxy.

Is there a general problem with the repository at present or am I missing something?


Marijan Milicevic

unread,
Feb 21, 2017, 8:21:05 AM2/21/17
to hippo-c...@googlegroups.com
how does your settings.xml looks like...(do you have any mirrors defined, like  nexus mirror instance)..
our archetype repository seems to be ignored: -DarchetypeRepository=https://maven.onehippo.com/maven2

If so, you should configure nexus to mirror our repository..
cheers
marijan



 




--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
 
To post to this group, send email to hippo-community@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-community+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.

Filip G.

unread,
Feb 21, 2017, 8:55:06 AM2/21/17
to Hippo Community
Clean, fresh maven install. Just global settings.xml (no mirrors, profiles, ...). No personal settings.xml in .m2 repository. 
Marijan, does the project creation work for you in case the archetype is not already in your local maven repository?

Marijan Milicevic

unread,
Feb 21, 2017, 9:01:45 AM2/21/17
to hippo-c...@googlegroups.com
On Tue, Feb 21, 2017 at 2:55 PM, Filip G. <f.g...@satzmedia.de> wrote:
Clean, fresh maven install. Just global settings.xml (no mirrors, profiles, ...). No personal settings.xml in .m2 repository. 
Marijan, does the project creation work for you in case the archetype is not already in your local maven repository?

just deleted:

 /.m2/repository/org/onehippo/cms7/hippo-project-archetype

and all running fine..(see below),

which maven version are you using? it should be at least 3.2.x + version,

cheers
marijan


~/projects/tmp$ mvn archetype:generate \
> -DarchetypeGroupId=org.onehippo.cms7 \
> -DarchetypeArtifactId=hippo-project-archetype \
> -DarchetypeVersion=4.1.0 \
> -DarchetypeRepository=https://maven.onehippo.com/maven2
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> maven-archetype-plugin:2.4:generate (default-cli) > generate-sources @ standalone-pom >>>
[INFO] 
[INFO] <<< maven-archetype-plugin:2.4:generate (default-cli) < generate-sources @ standalone-pom <<<
[INFO] 
[INFO] --- maven-archetype-plugin:2.4:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Interactive mode
[INFO] Archetype defined by properties
[INFO] Using property: groupId = org.example
[INFO] Using property: artifactId = myhippoproject
[INFO] Using property: version = 0.1.0-SNAPSHOT
[INFO] Using property: package = org.example
[INFO] Using property: projectName = My Hippo Project
Confirm properties configuration:
groupId: org.example
artifactId: myhippoproject
version: 0.1.0-SNAPSHOT
package: org.example
projectName: My Hippo Project
 Y: :

Arent-Jan Banck

unread,
Feb 21, 2017, 10:10:44 AM2/21/17
to hippo-c...@googlegroups.com
Hi,
I can confirm this is an issue with the latest Maven archetype plugin.. Maven released version 3.0.0 of the archetype plugin [1] and the archetypeRepository parameter is no longer supported.
Now it requires the Hippo repository to be defined in the settings.xml 

You can use the previous version of the plugin to create the project using the following command line:

mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeGroupId=org.onehippo.cms7 -DarchetypeArtifactId=hippo-project-archetype -DarchetypeVersion=4.1.0 -DarchetypeRepository=https://maven.onehippo.com/maven2


Hope this helps.
Regards,
- AJ


To post to this group, send email to hippo-c...@googlegroups.com

RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.

--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
 
To post to this group, send email to hippo-c...@googlegroups.com

RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.

Filip G.

unread,
Feb 21, 2017, 5:17:15 PM2/21/17
to Hippo Community
\o/ ... oh yeah, it helped, thanks a million AJ!!! I got everything up and runing now ...

Thorben Heins

unread,
Oct 5, 2017, 11:34:06 AM10/5/17
to Hippo Community
Could you please update your documentation https://www.onehippo.org/10/trails/getting-started/creating-a-project.html so that not everyone runs into it. (We are using v10 and have a new colleague who wants to do the trail as close as possible to the production environment, hence he went to the old documentation...)

Thanks!
Thorben
Reply all
Reply to author
Forward
0 new messages