在百度等发过提问啥的,至今没解决,请各位多多指教,谢谢!
这是我的export:export MAVEN_HOME=/home/hadoop/apache-maven-2.2.1
export PATH=$MAVEN_HOME/bin:$PATH
学校上网得设代理:
<proxies>
<proxy>
<username>s09120100006</username>
<password>54321</password>
<host>http://210.31.112.7</host>
<port>8080</port>
</proxy>
</proxies>
[hadoop@sc706-26 mahout-0.3]$ mvn -v
Apache Maven 2.2.1 (r801777; 2009-08-07 03:16:01+0800)
Java version: 1.6.0_19
Java home: /usr/java/jdk1.6.0_19/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "linux" version: "2.6.32.12-115.fc12.i686.pae" arch: "i386" Family: "unix"
出错:
[hadoop@sc706-26 mahout-0.3]$ mvn install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-resources-plugin:pom:2.3' from repository central (http://repo1.maven.org/maven2): Error transferring file: Connection timed out
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-resources-plugin:pom:2.3' from repository central (http://repo1.maven.org/maven2): Error transferring file: Connection timed out
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: org.apache.maven.plugins:maven-resources-plugin
Reason: POM 'org.apache.maven.plugins:maven-resources-plugin' not found in repository: Unable to download the artifact from any repository
org.apache.maven.plugins:maven-resources-plugin:pom:2.3
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
for project org.apache.maven.plugins:maven-resources-plugin
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 48 seconds
[INFO] Finished at: Wed Oct 13 19:06:58 CST 2010
[INFO] Final Memory: 1M/15M
[INFO] ------------------------------------------------------------------------
这是我的export:export MAVEN_HOME=/home/hadoop/apache-maven-2.2.1
export PATH=$MAVEN_HOME/bin:$PATH
学校上网得设代理:
<proxies>
<proxy>
<username>s09120100006</username>
<password>54321</password>
<host>http://210.31.112.7</host>
<port>8080</port>
</proxy>
</proxies>
[hadoop@sc706-26 mahout-0.3]$ mvn -v
Apache Maven 2.2.1 (r801777; 2009-08-07 03:16:01+0800)
Java version: 1.6.0_19
Java home: /usr/java/jdk1.6.0_19/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "linux" version: "2.6.32.12-115.fc12.i686.pae" arch: "i386" Family: "unix"
出错:
[hadoop@sc706-26 mahout-0.3]$ mvn install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-resources-plugin:pom:2.3' from repository central (http://repo1.maven.org/maven2): Error transferring file: Connection timed out
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-resources-plugin:pom:2.3' from repository central (http://repo1.maven.org/maven2): Error transferring file: Connection timed out
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: org.apache.maven.plugins:maven-resources-plugin
Reason: POM 'org.apache.maven.plugins:maven-resources-plugin' not found in repository: Unable to download the artifact from any repository
org.apache.maven.plugins:maven-resources-plugin:pom:2.3
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
for project org.apache.maven.plugins:maven-resources-plugin
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 48 seconds
[INFO] Finished at: Wed Oct 13 19:06:58 CST 2010
[INFO] Final Memory: 1M/15M
[INFO] ------------------------------------------------------------------------