vendredi 18 septembre 2015

pom.xml works, but proxy setting not working?

I have a pom.xml that works on AWS, but behind the proxy at work it does not. I have tried everything in this post Maven proxy settings not working but nothing worked.

Here is the error using mvn help:effective-settings

...
[WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0
Downloading:http://ift.tt/1P6S1Jx
Downloading:http://ift.tt/1ELXXEX
[WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to central (http://ift.tt/1pDkooA): repo.maven.apache.org
[WARNING] Could not transfer metadata http://ift.tt/1P6S4ot central (http://ift.tt/1pDkooA): repo.maven.apache.org
[WARNING] Failure to transfer org.apache.maven.plugins/maven-metadata.xmlfrom http://ift.tt/1pDkooA was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to central (http://ift.tt/1pDkooA): repo.maven.apache.org
[WARNING] Failure to transfer http://ift.tt/19RVGuV fromhttps://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updatesare forced. Original error: Could not transfer metadata http://ift.tt/19RVGuV from/to central (http://ift.tt/1pDkooA): repo.maven.apache.org
...
[ERROR] No plugin found for prefix 'help' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\David.Wynter\.m2\repository),central(http://ift.tt/1pDkooA)] -> [Help 1]

Here is the relevant part of my settings.xml

<proxies>
   <proxy>
      <active>true</active>
      <protocol>http</protocol>
      <host>10.***.0.60</host>
      <port>8080</port>
      <username>dmgp\david.blow</username>
      <password>*******</password>
      <nonProxyHosts>localhost|127.0.0.1</nonProxyHosts>
    </proxy>
</proxies>

The settings for the host etc. come from a pac file that works for the browsers. Any ideas?

I also tried adding this

    <extensions>
        <extension>
            <!-- this extension is required by wagon in order to pass the proxy -->
            <groupId>org.apache.maven.wagon</groupId>
            <artifactId>wagon-http-lightweight</artifactId>
            <version>2.2</version>
        </extension>
    </extensions>

To my pom.xml and added that jar to my maven install lib directory, but got this

[ERROR]     Unresolveable build extension: Plugin org.apache.maven.wagon:wagon-http-lightweight:2.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.wagon:wagon-http-lightweight:jar:2.2: Could not transfer artifact org.apache.maven.wagon:wagon-http-lightweight:pom:2.2 from/to central (http://ift.tt/1pDkooA): repo.maven.apache.org: Unknown host repo.maven.apache.org -> [Help 2]



from Newest questions tagged java - Stack Overflow http://ift.tt/1P6S4oA
via IFTTT

Aucun commentaire:

Enregistrer un commentaire