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 Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Patch Submitted:
      Yes
    • Number of attachments :
      1

      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

        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.

          People

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

            Dates

            • Created:
              Updated: