You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (Jira)" <ji...@apache.org> on 2020/01/17 07:22:00 UTC

[jira] [Updated] (MANTTASKS-206) dependecies task overrides custom definition of 'central' repository

     [ https://issues.apache.org/jira/browse/MANTTASKS-206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy updated MANTTASKS-206:
------------------------------------
    Description: 
While using 
{code:xml}<artifact:dependencies cacheDependencyRefs="false" pathId="maven.dependency.classpath"  useScope="test">
  <pom file="pom.xml"/>
</artifact:dependencies>{code}
with pom 
{code:xml} <project>
 ...
 <repositories>
   <repository>
     <id>central</id>
     <url>[https://custom/mvn/central]</url>
     <snapshots>
       <enabled>true</enabled>
     </snapshots>
     <releases>
       <enabled>true</enabled>
     </releases>
   </repository>

  </repositories>
 </project>{code}

the task is still trying to resolve my dependecies from [http://repo2.maven.org/maven2].

A patch resolving this issue is attached.

  was:
While using 
<artifact:dependencies 
  cacheDependencyRefs="false"
  pathId="maven.dependency.classpath" 
  useScope="test">
  <pom file="pom.xml"/>
</artifact:dependencies>

with pom 
<project>
...
	<repositories>
		<repository>
			<id>central</id>
			<url>https://custom/mvn/central</url>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
			<releases>
				<enabled>true</enabled>
			</releases>
		</repository>


	</repositories>
</project>

the task is still trying to resolve my dependecies from http://repo2.maven.org/maven2.

A patch resolving this issue is attached.



> dependecies task overrides custom definition of 'central' repository
> --------------------------------------------------------------------
>
>                 Key: MANTTASKS-206
>                 URL: https://issues.apache.org/jira/browse/MANTTASKS-206
>             Project: Maven Ant Tasks (RETIRED)
>          Issue Type: Bug
>    Affects Versions: 2.1.1
>            Reporter: Miroslaw Michalski
>            Assignee: Paul Gier
>            Priority: Major
>             Fix For: 2.1.2
>
>         Attachments: patch2.txt
>
>
> While using 
> {code:xml}<artifact:dependencies cacheDependencyRefs="false" pathId="maven.dependency.classpath"  useScope="test">
>   <pom file="pom.xml"/>
> </artifact:dependencies>{code}
> with pom 
> {code:xml} <project>
>  ...
>  <repositories>
>    <repository>
>      <id>central</id>
>      <url>[https://custom/mvn/central]</url>
>      <snapshots>
>        <enabled>true</enabled>
>      </snapshots>
>      <releases>
>        <enabled>true</enabled>
>      </releases>
>    </repository>
>   </repositories>
>  </project>{code}
> the task is still trying to resolve my dependecies from [http://repo2.maven.org/maven2].
> A patch resolving this issue is attached.



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