• Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • pipeline-maven-plugin
    • None

      Maven CLI prints this if I give wrong credentials:

      [WARNING] Could not transfer metadata org.apache.maven.plugins:maven-help-plugin/maven-metadata.xml from/to internal-repo (https://readonly-mvnrepo.acme-internal.com/): Not authorized , ReasonPhrase:Unauthorized.
      

      Trying to run a maven-pipeline build against a mirror requiring authentication fails in this way:

      13:33:21 + mvn help:effective-settings
      13:33:21 ----- withMaven Wrapper script -----
      [ ... SNIP ...  ]
      13:33:22 [jenkins-maven-event-spy] INFO generate /home/acme/workspace/ent-classification_BLD-2798-EVNDRW5B2OELJDWRHOFPU56LTM6EP34GPWNMP6QHXLZD72W5RS7Q@tmp/withMaven7c261ec7/maven-spy-20170705-133320-937.log ...
      13:33:22 [INFO] Scanning for projects...
      
      13:33:23 [INFO] Downloading: https://readonly-mvnrepo.acme-internal.com/content/groups/public/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
      13:33:23 [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-clean-plugin:2.5: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5
      

      The "Invoke Top-Level Maven Targets" step would print the warning

          [JENKINS-45314] Maven Spy seems to swallow transport warnings

          Jakub Bochenski created issue -
          Jakub Bochenski made changes -
          Description Original: Trying to run a maven build against a mirror requiring authentication fails.
          {code}
          13:33:21 + mvn help:effective-settings
          13:33:21 ----- withMaven Wrapper script -----
          [ ... SNIP ... ]
          13:33:22 [jenkins-maven-event-spy] INFO generate /home/acme/workspace/ent-classification_BLD-2798-EVNDRW5B2OELJDWRHOFPU56LTM6EP34GPWNMP6QHXLZD72W5RS7Q@tmp/withMaven7c261ec7/maven-spy-20170705-133320-937.log ...
          13:33:22 [INFO] Scanning for projects...

          13:33:23 [INFO] Downloading: https://readonly-mvnrepo.acme-internal.com/content/groups/public/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
          13:33:23 [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-clean-plugin:2.5: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5
          [ ... SNIP ... ]
          13:33:25 [INFO] --- maven-help-plugin:2.2:effective-settings (default-cli) @ standalone-pom ---
          13:33:25 [INFO]
          13:33:25 Effective user-specific configuration settings:
          13:33:25
          13:33:25 <?xml version="1.0" encoding="UTF-8"?>
          [ ... SNIP ... ]
          13:33:25 <settings xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">
          [ ... SNIP ... ]
          13:33:25 <servers xmlns="http://maven.apache.org/SETTINGS/1.1.0">
          13:33:25 <server>
          13:33:25 <server>
          13:33:25 <username>jenkins</username>
          13:33:25 <password>***</password>
          13:33:25 <id>internal-repo</id>
          13:33:25 </server>
          13:33:25 </servers>
          13:33:25 <mirrors xmlns="http://maven.apache.org/SETTINGS/1.1.0">
          13:33:25 <mirror>
          13:33:25 <mirrorOf>external:*,!jenkins,!jitpack.io</mirrorOf>
          13:33:25 <url>https://readonly-mvnrepo.acme-internal.com/content/groups/public/&lt;/url>
          13:33:25 <id>internal-repo</id>
          13:33:25 </mirror>
          13:33:25 </mirrors>
          [ ... SNIP ... ]
          {code}

          We have many freestyle jobs that work fine with said settings via "Invoke Top-Level Maven Targets" step.
          New: Trying to run a maven build against a mirror requiring authentication fails.
          {code}
          13:33:21 + mvn help:effective-settings
          13:33:21 ----- withMaven Wrapper script -----
          [ ... SNIP ... ]
          13:33:22 [jenkins-maven-event-spy] INFO generate /home/acme/workspace/ent-classification_BLD-2798-EVNDRW5B2OELJDWRHOFPU56LTM6EP34GPWNMP6QHXLZD72W5RS7Q@tmp/withMaven7c261ec7/maven-spy-20170705-133320-937.log ...
          13:33:22 [INFO] Scanning for projects...

          13:33:23 [INFO] Downloading: https://readonly-mvnrepo.acme-internal.com/content/groups/public/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
          13:33:23 [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-clean-plugin:2.5: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5
          [ ... SNIP ... ]
          13:33:25 [INFO] --- maven-help-plugin:2.2:effective-settings (default-cli) @ standalone-pom ---
          13:33:25 [INFO]
          13:33:25 Effective user-specific configuration settings:
          [ ... SNIP ... ]
          13:33:25 <servers xmlns="http://maven.apache.org/SETTINGS/1.1.0">
          13:33:25 <server>
          13:33:25 <server>
          13:33:25 <username>jenkins</username>
          13:33:25 <password>***</password>
          13:33:25 <id>internal-repo</id>
          13:33:25 </server>
          13:33:25 </servers>
          13:33:25 <mirrors xmlns="http://maven.apache.org/SETTINGS/1.1.0">
          13:33:25 <mirror>
          13:33:25 <mirrorOf>external:*,!jenkins,!jitpack.io</mirrorOf>
          13:33:25 <url>https://readonly-mvnrepo.acme-internal.com/content/groups/public/&lt;/url>
          13:33:25 <id>internal-repo</id>
          13:33:25 </mirror>
          13:33:25 </mirrors>
          [ ... SNIP ... ]
          {code}

          We have many freestyle jobs that work fine with said settings via "Invoke Top-Level Maven Targets" step.
          Jakub Bochenski made changes -
          Resolution New: Cannot Reproduce [ 5 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Cyrille Le Clerc made changes -
          Assignee Original: Alvaro Lobato [ alobato ] New: Cyrille Le Clerc [ cleclerc ]
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Jakub Bochenski made changes -
          Resolution Original: Cannot Reproduce [ 5 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]
          Jakub Bochenski made changes -
          Comment [ [~cleclerc] can you paste at least the console output from trying to reproduce this? ]
          Jakub Bochenski made changes -
          Issue Type Original: Bug [ 1 ] New: Improvement [ 4 ]
          Priority Original: Blocker [ 1 ] New: Minor [ 4 ]
          Jakub Bochenski made changes -
          Summary Original: Maven Spy ignores server credentials New: Maven Spy seems to swallow transport warnings
          Jakub Bochenski made changes -
          Description Original: Trying to run a maven build against a mirror requiring authentication fails.
          {code}
          13:33:21 + mvn help:effective-settings
          13:33:21 ----- withMaven Wrapper script -----
          [ ... SNIP ... ]
          13:33:22 [jenkins-maven-event-spy] INFO generate /home/acme/workspace/ent-classification_BLD-2798-EVNDRW5B2OELJDWRHOFPU56LTM6EP34GPWNMP6QHXLZD72W5RS7Q@tmp/withMaven7c261ec7/maven-spy-20170705-133320-937.log ...
          13:33:22 [INFO] Scanning for projects...

          13:33:23 [INFO] Downloading: https://readonly-mvnrepo.acme-internal.com/content/groups/public/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
          13:33:23 [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-clean-plugin:2.5: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5
          [ ... SNIP ... ]
          13:33:25 [INFO] --- maven-help-plugin:2.2:effective-settings (default-cli) @ standalone-pom ---
          13:33:25 [INFO]
          13:33:25 Effective user-specific configuration settings:
          [ ... SNIP ... ]
          13:33:25 <servers xmlns="http://maven.apache.org/SETTINGS/1.1.0">
          13:33:25 <server>
          13:33:25 <server>
          13:33:25 <username>jenkins</username>
          13:33:25 <password>***</password>
          13:33:25 <id>internal-repo</id>
          13:33:25 </server>
          13:33:25 </servers>
          13:33:25 <mirrors xmlns="http://maven.apache.org/SETTINGS/1.1.0">
          13:33:25 <mirror>
          13:33:25 <mirrorOf>external:*,!jenkins,!jitpack.io</mirrorOf>
          13:33:25 <url>https://readonly-mvnrepo.acme-internal.com/content/groups/public/&lt;/url>
          13:33:25 <id>internal-repo</id>
          13:33:25 </mirror>
          13:33:25 </mirrors>
          [ ... SNIP ... ]
          {code}

          We have many freestyle jobs that work fine with said settings via "Invoke Top-Level Maven Targets" step.
          New: Maven CLI prints this if I give wrong credentials:
          {code}
          [WARNING] Could not transfer metadata org.apache.maven.plugins:maven-help-plugin/maven-metadata.xml from/to internal-repo (https://readonly-mvnrepo.acme-internal.com/): Not authorized , ReasonPhrase:Unauthorized.
          {code}

          Trying to run a maven build against a mirror requiring authentication fails in this way:
          {code}
          13:33:21 + mvn help:effective-settings
          13:33:21 ----- withMaven Wrapper script -----
          [ ... SNIP ... ]
          13:33:22 [jenkins-maven-event-spy] INFO generate /home/acme/workspace/ent-classification_BLD-2798-EVNDRW5B2OELJDWRHOFPU56LTM6EP34GPWNMP6QHXLZD72W5RS7Q@tmp/withMaven7c261ec7/maven-spy-20170705-133320-937.log ...
          13:33:22 [INFO] Scanning for projects...

          13:33:23 [INFO] Downloading: https://readonly-mvnrepo.acme-internal.com/content/groups/public/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
          13:33:23 [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-clean-plugin:2.5: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5
          [ ... SNIP ... ]
          13:33:25 [INFO] --- maven-help-plugin:2.2:effective-settings (default-cli) @ standalone-pom ---
          13:33:25 [INFO]
          13:33:25 Effective user-specific configuration settings:
          [ ... SNIP ... ]
          13:33:25 <servers xmlns="http://maven.apache.org/SETTINGS/1.1.0">
          13:33:25 <server>
          13:33:25 <server>
          13:33:25 <username>jenkins</username>
          13:33:25 <password>***</password>
          13:33:25 <id>internal-repo</id>
          13:33:25 </server>
          13:33:25 </servers>
          13:33:25 <mirrors xmlns="http://maven.apache.org/SETTINGS/1.1.0">
          13:33:25 <mirror>
          13:33:25 <mirrorOf>external:*,!jenkins,!jitpack.io</mirrorOf>
          13:33:25 <url>https://readonly-mvnrepo.acme-internal.com/content/groups/public/&lt;/url>
          13:33:25 <id>internal-repo</id>
          13:33:25 </mirror>
          13:33:25 </mirrors>
          [ ... SNIP ... ]
          {code}

          We have many freestyle jobs that work fine with said settings via "Invoke Top-Level Maven Targets" step.
          Jakub Bochenski made changes -
          Description Original: Maven CLI prints this if I give wrong credentials:
          {code}
          [WARNING] Could not transfer metadata org.apache.maven.plugins:maven-help-plugin/maven-metadata.xml from/to internal-repo (https://readonly-mvnrepo.acme-internal.com/): Not authorized , ReasonPhrase:Unauthorized.
          {code}

          Trying to run a maven build against a mirror requiring authentication fails in this way:
          {code}
          13:33:21 + mvn help:effective-settings
          13:33:21 ----- withMaven Wrapper script -----
          [ ... SNIP ... ]
          13:33:22 [jenkins-maven-event-spy] INFO generate /home/acme/workspace/ent-classification_BLD-2798-EVNDRW5B2OELJDWRHOFPU56LTM6EP34GPWNMP6QHXLZD72W5RS7Q@tmp/withMaven7c261ec7/maven-spy-20170705-133320-937.log ...
          13:33:22 [INFO] Scanning for projects...

          13:33:23 [INFO] Downloading: https://readonly-mvnrepo.acme-internal.com/content/groups/public/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
          13:33:23 [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-clean-plugin:2.5: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5
          [ ... SNIP ... ]
          13:33:25 [INFO] --- maven-help-plugin:2.2:effective-settings (default-cli) @ standalone-pom ---
          13:33:25 [INFO]
          13:33:25 Effective user-specific configuration settings:
          [ ... SNIP ... ]
          13:33:25 <servers xmlns="http://maven.apache.org/SETTINGS/1.1.0">
          13:33:25 <server>
          13:33:25 <server>
          13:33:25 <username>jenkins</username>
          13:33:25 <password>***</password>
          13:33:25 <id>internal-repo</id>
          13:33:25 </server>
          13:33:25 </servers>
          13:33:25 <mirrors xmlns="http://maven.apache.org/SETTINGS/1.1.0">
          13:33:25 <mirror>
          13:33:25 <mirrorOf>external:*,!jenkins,!jitpack.io</mirrorOf>
          13:33:25 <url>https://readonly-mvnrepo.acme-internal.com/content/groups/public/&lt;/url>
          13:33:25 <id>internal-repo</id>
          13:33:25 </mirror>
          13:33:25 </mirrors>
          [ ... SNIP ... ]
          {code}

          We have many freestyle jobs that work fine with said settings via "Invoke Top-Level Maven Targets" step.
          New: Maven CLI prints this if I give wrong credentials:
          {code}
          [WARNING] Could not transfer metadata org.apache.maven.plugins:maven-help-plugin/maven-metadata.xml from/to internal-repo (https://readonly-mvnrepo.acme-internal.com/): Not authorized , ReasonPhrase:Unauthorized.
          {code}

          Trying to run a maven build against a mirror requiring authentication fails in this way:
          {code}
          13:33:21 + mvn help:effective-settings
          13:33:21 ----- withMaven Wrapper script -----
          [ ... SNIP ... ]
          13:33:22 [jenkins-maven-event-spy] INFO generate /home/acme/workspace/ent-classification_BLD-2798-EVNDRW5B2OELJDWRHOFPU56LTM6EP34GPWNMP6QHXLZD72W5RS7Q@tmp/withMaven7c261ec7/maven-spy-20170705-133320-937.log ...
          13:33:22 [INFO] Scanning for projects...

          13:33:23 [INFO] Downloading: https://readonly-mvnrepo.acme-internal.com/content/groups/public/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
          13:33:23 [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-clean-plugin:2.5: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5
          {code}

          We have many freestyle jobs that work fine with said settings via "Invoke Top-Level Maven Targets" step.
          Jakub Bochenski made changes -
          Description Original: Maven CLI prints this if I give wrong credentials:
          {code}
          [WARNING] Could not transfer metadata org.apache.maven.plugins:maven-help-plugin/maven-metadata.xml from/to internal-repo (https://readonly-mvnrepo.acme-internal.com/): Not authorized , ReasonPhrase:Unauthorized.
          {code}

          Trying to run a maven build against a mirror requiring authentication fails in this way:
          {code}
          13:33:21 + mvn help:effective-settings
          13:33:21 ----- withMaven Wrapper script -----
          [ ... SNIP ... ]
          13:33:22 [jenkins-maven-event-spy] INFO generate /home/acme/workspace/ent-classification_BLD-2798-EVNDRW5B2OELJDWRHOFPU56LTM6EP34GPWNMP6QHXLZD72W5RS7Q@tmp/withMaven7c261ec7/maven-spy-20170705-133320-937.log ...
          13:33:22 [INFO] Scanning for projects...

          13:33:23 [INFO] Downloading: https://readonly-mvnrepo.acme-internal.com/content/groups/public/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
          13:33:23 [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-clean-plugin:2.5: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5
          {code}

          We have many freestyle jobs that work fine with said settings via "Invoke Top-Level Maven Targets" step.
          New: Maven CLI prints this if I give wrong credentials:
          {code}
          [WARNING] Could not transfer metadata org.apache.maven.plugins:maven-help-plugin/maven-metadata.xml from/to internal-repo (https://readonly-mvnrepo.acme-internal.com/): Not authorized , ReasonPhrase:Unauthorized.
          {code}

          Trying to run a maven-pipeline build against a mirror requiring authentication fails in this way:
          {code}
          13:33:21 + mvn help:effective-settings
          13:33:21 ----- withMaven Wrapper script -----
          [ ... SNIP ... ]
          13:33:22 [jenkins-maven-event-spy] INFO generate /home/acme/workspace/ent-classification_BLD-2798-EVNDRW5B2OELJDWRHOFPU56LTM6EP34GPWNMP6QHXLZD72W5RS7Q@tmp/withMaven7c261ec7/maven-spy-20170705-133320-937.log ...
          13:33:22 [INFO] Scanning for projects...

          13:33:23 [INFO] Downloading: https://readonly-mvnrepo.acme-internal.com/content/groups/public/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
          13:33:23 [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-clean-plugin:2.5: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5
          {code}

          We have many freestyle jobs that work fine with said settings via "Invoke Top-Level Maven Targets" step.

            Unassigned Unassigned
            jbochenski Jakub Bochenski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: