Maven Ant Tasks
  1. Maven Ant Tasks
  2. MANTTASKS-205

pom task doesn't use auth settings to resolve parent pom

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Flags:
      Patch

      Description

      In settings.xml I have defined <server>; in pom there is a <parent> pom defined and also a custom <repository>.

      when trying to build this project using ant using

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

      to resolve artifacts I get ERROR massage that the parent pom artifact could not be downloaded from my custom repository due to authentication error.

      I'm attaching a patch that resolved this problem for me.

      1. patch1.txt
        1 kB
        Miroslaw Michalski

        Activity

        Miroslaw Michalski created issue -
        Hide
        Miroslaw Michalski added a comment -

        Problem exists in version 2.1.1 and previous

        Show
        Miroslaw Michalski added a comment - Problem exists in version 2.1.1 and previous
        Hide
        Ronald Jenkins Jr added a comment -

        Ran into this exact same issue with version 2.1.3, while running on Ant 1.8.4 and Ant 1.9.2. Miroslaw's patch also worked for me.

        Show
        Ronald Jenkins Jr added a comment - Ran into this exact same issue with version 2.1.3, while running on Ant 1.8.4 and Ant 1.9.2. Miroslaw's patch also worked for me.
        Mark Thomas made changes -
        Field Original Value New Value
        Project Import Sun Apr 05 09:00:58 UTC 2015 [ 1428224458201 ]
        Mark Thomas made changes -
        Workflow jira [ 12716276 ] Default workflow, editable Closed status [ 12759926 ]
        Mark Thomas made changes -
        Flags Patch [ 10430 ]
        Patch Submitted Yes [ 10763 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 22:08:22 UTC 2015 [ 1428271702400 ]
        Mark Thomas made changes -
        Workflow jira [ 12953530 ] Default workflow, editable Closed status [ 12990660 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Miroslaw Michalski
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development