[ https://issues.apache.org/jira/browse/ARCHETYPE-460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte closed ARCHETYPE-460. ------------------------------------ Resolution: Duplicate Assignee: Robert Scholte Closing as duplicate of ARCHETYPE-204. With version 3.0.0 this will be improved, mirrors, proxies and authorization from settings.xml are respected. > archetype:generate does not use settings.xml when archetype is in repository > with restricted access > --------------------------------------------------------------------------------------------------- > > Key: ARCHETYPE-460 > URL: https://issues.apache.org/jira/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 > Assignee: Robert Scholte > 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.3.15#6346)