[
https://jira.codehaus.org/browse/ARCHETYPE-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=354888#comment-354888
]
Carlo Sciolla commented on ARCHETYPE-460:
-----------------------------------------
I believe this is a dupe of ARCHETYPE-204
> archetype:generate does not use settings.xml when archetype is in repository
> with restricted access
> ---------------------------------------------------------------------------------------------------
>
> Key: ARCHETYPE-460
> URL: https://jira.codehaus.org/browse/ARCHETYPE-460
> Project: Maven Archetype
> Issue Type: Bug
> Components: Generator
> Affects Versions: 2.2
> Environment: Apache Maven 3.2.2
> Java version: 1.8.0_05, vendor: Oracle Corporation
> Default locale: de_DE, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
> Reporter: heapifyman
> Priority: Blocker
>
> I have an archetype deployed to an Artifactory repository with restricted
> access.
> I have defined the <server> with <id>, <username> and <password> in my
> settings.xml.
> When I run
> "mvn archetype:generate
> -DarchetypeRepository=<my_artifactory_reop_with_restricted_access>"
> I get
> "Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Not
> authorized , ReasonPhrase:Unauthorized."
> Apparently, archetype:generate does not take into account the access rights
> defined in settings.xml
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)