[ 
https://issues.apache.org/jira/browse/MRESOLVER-66?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17244313#comment-17244313
 ] 

Jesse Barnum commented on MRESOLVER-66:
---------------------------------------

I lost many hours due to the documentation making this statement:

The Ant tasks are tightly integrated with the usual [Apache Maven 
settings.xml|https://maven.apache.org/settings.html]. By default, the usual 
{{${user.home}/.m2/settings.xml}} is used for user settings

This should either be classified as a bug, or the documentation should be 
changed.

> Settings task does not load active profile repositories defined in 
> settings.xml
> -------------------------------------------------------------------------------
>
>                 Key: MRESOLVER-66
>                 URL: https://issues.apache.org/jira/browse/MRESOLVER-66
>             Project: Maven Resolver
>          Issue Type: New Feature
>          Components: Ant Tasks
>    Affects Versions: ant-tasks-1.2.1
>            Reporter: lefebvre
>            Assignee: Michael Osipov
>            Priority: Major
>             Fix For: ant-tasks-next
>
>         Attachments: MRESOLVER-66.log, MRESOLVER-66.xml
>
>
> my-settings.xml :
> {code:xml}
>  <?xml version="1.0"?>
> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
>  http://maven.apache.org/xsd/settings-1.0.0.xsd";>
> <interactiveMode>false</interactiveMode>
> <servers>
>  <server>
>  <id>my-repo</id>
>  <configuration>
>  <httpHeaders>
>  <property>
>  <name>Private-Token</name>
>  <value>XXX</value>
>  </property>
>  </httpHeaders>
>  </configuration>
>  </server>
>  </servers>
> <profiles>
>  <profile>
>  <id>enable-repos</id>
>  <repositories>
>  <repository>
>  <id>central</id>
>  <name>central</name>
>  <url>http://repo1.maven.org/maven2</url>
>  </repository>
>  <repository>
>  <id>my-repo</id>
>  <name>my repository</name>
>  <url>XXX</url>
>  </repository>
>  </repositories>
>  </profile>
>  </profiles>
> <activeProfiles>
>  <activeProfile>enable-repos</activeProfile>
>  </activeProfiles>
> </settings>
> {code}
>  
> {{<settings file="my-settings.xml" globalfile="my-settings.xml"/>}}
>  
> The resolver task does not try to resolve artifacts using "my-repo".



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to