[ARCH-20] Downloading Enterprise Archetypes results in AuthorizationException Created: 26/Feb/13  Updated: 10/Oct/13  Resolved: 10/Oct/13

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

Type: Bug Priority: Neutral
Reporter: Matthias Widmer Assignee: Magnolia International
Resolution: Workaround exists Votes: 0
Labels: Archetype,, Enterprise, Magnolia, Maven,
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux Mint 13


Attachments: PNG File first_time.png     PNG File second_time.png    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

When building the Archetype with "mvn archetype:generate -DarchetypeCatalog=http://nexus.magnolia-cms.com/content/groups/enterprise/" it works for the first Time (e.g. 4. Project).

The second time (e.g. trying to get the module 1) it throws an exception:

[WARNING] Error reading archetype catalog http://nexus.magnolia-cms.com/content/groups/enterprise
org.apache.maven.wagon.authorization.AuthorizationException: Access denied to: http://nexus.magnolia-cms.com/content/groups/enterprise



 Comments   
Comment by Magnolia International [ 26/Feb/13 ]

For the record, those archetypes are available in the public repo.

That said, this should work, if your settings are correct. AFAIK, there is no reason for this to work once and fail some other time, unless your settings changed in the meantime.

Did you go through http://wiki.magnolia-cms.com/display/DEV/Maven+setup ?

Comment by Matthias Widmer [ 28/Feb/13 ]

The enterprise versions are available at the public repo.? Odd!? Anyway I could not find them here --> http://nexus.magnolia-cms.com/content/groups/public (in my comprehension the public repo. please correct me if I'm wrong) only here http://nexus.magnolia-cms.com/content/groups/enterprise.

Furthermore I talked to Christian Ringele from Magnolia Basel (Senior Developer and Trainer in Basel) via Skype. He said, that he has all possible rights, nevertheless he got the same Problem respectively Exception, while giving it a short try. He had no Time to further investigate it, and told me I should open a Bug report.

My settings are from my Magnolia Developer training this fall.

Yes I followed the instructions from the Wiki.

Comment by Magnolia International [ 04/Mar/13 ]

The archetypes are not enterprise-only, so yes, they are available in the public repository.

They are available through the enterprise group, because this includes both public AND enterprise- only artifacts.

And now I do get the same problem you're seeing. I'll investigate. In the meantime, just do

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

, which should work.

Comment by Magnolia International [ 04/Mar/13 ]

Seems like it might be a variation on http://jira.codehaus.org/browse/ARCHETYPE-358 - I'll try to follow. Since there's no need for the enteprise repo to use the Maven archetypes (which doesn't imply that projects created with the archetypes can't use the enterprise repo, at all), this won't get high priority.

Can you remember if/how you thought about using http://nexus.magnolia-cms.com/content/groups/enterprise for this ? Was this documented that way somewhere, perhaps in the training material ?

Comment by Magnolia International [ 10/Oct/13 ]

Our archetypes are (currently, anyway), all public.
Closing this as this is a Maven/Archetype bug that we can't do much about. Go and vote/comment on the issue, or better, provide them with a patch !

Generated at Sun Feb 11 23:22:45 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.