[DOCU-1497] maven command in Blossom documentation fails Created: 04/May/18  Updated: 11/May/18  Resolved: 04/May/18

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Roger Waldner Assignee: Richard Gange
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Sprint: Docu Sprint 49
Story Points: 0.5

 Description   

According to https://documentation.magnolia-cms.com/display/DOCS56/Getting+started+with+Blossom#GettingstartedwithBlossom-Creatingyourownmodule one has to execute the command

mvn archetype:generate -DarchetypeCatalog=https://nexus.magnolia-cms.com/content/groups/public/

In my case I get the error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) on project standalone-pom: archetypeCatalog 'https://nexus.magnolia-cms.com/content/groups/public/' is not supported anymore. Please read the plugin documentation for details. -> [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:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

My maven version:

$ mvn --version
Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 2018-02-24T20:49:05+01:00)
Maven home: /usr/local/Cellar/maven/3.5.3/libexec
Java version: 1.8.0_172, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home/jre
Default locale: de_CH, platform encoding: UTF-8
OS name: "mac os x", version: "10.12.6", arch: "x86_64", family: "mac"


 Comments   
Comment by Roger Waldner [ 04/May/18 ]

I guess the solution is
mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeCatalog=https://nexus.magnolia-cms.com/content/groups/public/

Can please someone change this in the documentation? Thanks.

Comment by Richard Gange [ 04/May/18 ]

Hi Rodger-

Thanks for pointing that out. I have fixed it.

Cheers!

Comment by Richard Gange [ 04/May/18 ]

I went ahead an updated the entire tutorial for 5.6.5. I also changed around some of the parameters used to be more in-line with best practice.

Comment by Christoph Meier [ 11/May/18 ]

Thanks for the update.
I had a look at the changes - seems fine.
Hence I close this ticket.

Generated at Mon Feb 12 01:18:38 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.