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

William Leung commented on MRESOLVER-98:
----------------------------------------

After applying the patch, the resolving mechanism still does not work as 
expected

test case
{code:xml}
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.apache.maven.resolver</groupId>
        <artifactId>maven-resolver-api</artifactId>
        <version>1.4.1</version>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <dependencies>
    <dependency>
      <groupId>org.apache.maven.resolver</groupId>
      <artifactId>maven-resolver-util</artifactId>
      <version>1.4.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
{code}

the dependency tree
{noformat}
[INFO] \- org.apache.maven.resolver:maven-resolver-util:jar:1.4.1:test
[INFO]    \- org.apache.maven.resolver:maven-resolver-api:jar:1.4.1:test
{noformat}

but the resolver will incorrectly resolve {{maven-resolver-api}} as {{compile}} 
scope

> resolver ant task doesn't appear to obey dependencyManagement
> -------------------------------------------------------------
>
>                 Key: MRESOLVER-98
>                 URL: https://issues.apache.org/jira/browse/MRESOLVER-98
>             Project: Maven Resolver
>          Issue Type: Bug
>          Components: ant tasks
>    Affects Versions: ant-tasks-1.2.0
>            Reporter: Jay Kahrman
>            Priority: Major
>             Fix For: waiting-for-feedback
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> We have a dependency in our pom which has dependencies that don't specify an 
> upper bound to the version range. To avoid getting different versions in 
> every build we use a dependencyManagement section in the POM to lock down the 
> version. This works via the maven 3 CLI, and via the old ant-tasks utility we 
> were using (). The maven-resolver-ant-tasks jar doesn't appear to obey the 
> dependencyManagement section, however. 
>  
> I'm not sure is this is related to MRESOLVER-33 and/or MRESOLVER-10 and if 
> updating maven-resolver-ant-tasks to depend on Maven Resolver 1.4.0 would 
> solve the problem.
>  



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

Reply via email to