Your ~/.m2/settings.xml  may need an entry similar to below.  Full docs
for this can be found on the main maven website.  This works correctly
on my Ubuntu system with openjdk7, netbeans, eclipse, jenkins and
command line.  You may be able to find the proxy info from your IT group
or in firefox or IE Internet settings.

    <proxies>
        <proxy>
            <active>true</active>
            <protocol>http</protocol>
            <host>firewall.domain.com</host>
            <username>we...b</username>
            <password>...</password>
            <port>8080</port>
            <nonProxyHosts>localhost</nonProxyHosts>
        </proxy>
    </proxies>

-------- Original Message --------
Subject: Maven proxy problem in ubuntu 12.04
From: dzungdev
To: [email protected]
Date: 02/12/2013 05:37 AM

> Hi all,
> 
> I would like to ask about the maven in ubuntu 12.04. I downloaded maven
> version: 3.0.4 and tried to run the mvn archtype:generate, then I have the
> result like bellow:
> 
> *dzung@dzung:~$ mvn archtype:generate
> [INFO] Scanning for projects...
> Downloading:
> http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
> [WARNING] Failed to retrieve plugin descriptor for
> org.apache.maven.plugins:maven-clean-plugin:2.4.1: Plugin
> org.apache.maven.plugins:maven-clean-plugin:2.4.1 or one of its dependencies
> could not be resolved: Failed to read artifact descriptor for
> org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1
> Downloading:
> http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1.pom
> [WARNING] Failed to retrieve plugin descriptor for
> org.apache.maven.plugins:maven-install-plugin:2.3.1: Plugin
> org.apache.maven.plugins:maven-install-plugin:2.3.1 or one of its
> dependencies could not be resolved: Failed to read artifact descriptor for
> org.apache.maven.plugins:maven-install-plugin:jar:2.3.1
> Downloading:
> http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/2.7/maven-deploy-plugin-2.7.pom
> [WARNING] Failed to retrieve plugin descriptor for
> org.apache.maven.plugins:maven-deploy-plugin:2.7: Plugin
> org.apache.maven.plugins:maven-deploy-plugin:2.7 or one of its dependencies
> could not be resolved: Failed to read artifact descriptor for
> org.apache.maven.plugins:maven-deploy-plugin:jar:2.7
> Downloading:
> http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-site-plugin/3.0/maven-site-plugin-3.0.pom
> [WARNING] Failed to retrieve plugin descriptor for
> org.apache.maven.plugins:maven-site-plugin:3.0: Plugin
> org.apache.maven.plugins:maven-site-plugin:3.0 or one of its dependencies
> could not be resolved: Failed to read artifact descriptor for
> org.apache.maven.plugins:maven-site-plugin:jar:3.0
> Downloading:
> http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.pom
> [WARNING] Failed to retrieve plugin descriptor for
> org.apache.maven.plugins:maven-antrun-plugin:1.3: Plugin
> org.apache.maven.plugins:maven-antrun-plugin:1.3 or one of its dependencies
> could not be resolved: Failed to read artifact descriptor for
> org.apache.maven.plugins:maven-antrun-plugin:jar:1.3
> Downloading:
> http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-assembly-plugin/2.2-beta-5/maven-assembly-plugin-2.2-beta-5.pom
> [WARNING] Failed to retrieve plugin descriptor for
> org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5: Plugin
> org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5 or one of its
> dependencies could not be resolved: Failed to read artifact descriptor for
> org.apache.maven.plugins:maven-assembly-plugin:jar:2.2-beta-5*
> 
> I tried to search google and they said that maybe I have to configure the
> proxy in ~/.m2/settings.xml but I don't know what the information of proxy
> ip, port I have to add in settings.xml. I checked in System Setting -->
> Network Settings of ubuntu 12.04 and see that the proxy mode is None.
> 
> Could you please give me an advice ?
> 
> Thanks and best regards,
> Dzung
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to