Details
-
Documentation
-
Status: Resolved
-
Trivial
-
Resolution: Won't Fix
-
1.0.2
-
linux suse 11
maven version:apache-maven-3.0.5
spark version: 1.0.1
proxy setting of maven is:
<proxy>
<id>lzb</id>
<active>true</active>
<protocol>http</protocol>
<username>user</username>
<password>password</password>
<host>proxy.company.com</host>
<port>8080</port>
<nonProxyHosts>*.company.com</nonProxyHosts>
</proxy>linux suse 11 maven version:apache-maven-3.0.5 spark version: 1.0.1 proxy setting of maven is: <proxy> <id>lzb</id> <active>true</active> <protocol>http</protocol> <username>user</username> <password>password</password> <host>proxy.company.com</host> <port>8080</port> <nonProxyHosts>*.company.com</nonProxyHosts> </proxy>
Description
When I use "mvn -Pyarn -Phadoop-2.2 -Dhadoop.version=2.2.0 -DskipTests clean package" in http proxy enviroment, I cannot finish this task.Error is as follows:
[INFO] Spark Project YARN Stable API ..................... SUCCESS [34.217s]
[INFO] Spark Project Assembly ............................ FAILURE [43.133s]
[INFO] Spark Project External Twitter .................... SKIPPED
[INFO] Spark Project External Kafka ...................... SKIPPED
[INFO] Spark Project External Flume ...................... SKIPPED
[INFO] Spark Project External ZeroMQ ..................... SKIPPED
[INFO] Spark Project External MQTT ....................... SKIPPED
[INFO] Spark Project Examples ............................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 27:57.309s
[INFO] Finished at: Sat Aug 23 09:43:21 CST 2014
[INFO] Final Memory: 51M/1080M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.2:shade (default) on project spark-assembly_2.10: Execution default of goal org.apache.maven.plugins:maven-shade-plugin:2.2:shade failed: Plugin org.apache.maven.plugins:maven-shade-plugin:2.2 or one of its dependencies could not be resolved: Could not find artifact com.google.code.findbugs:jsr305:jar:1.3.9 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :spark-assembly_2.10
If you use this command, It is ok
mvn -Pyarn -Phadoop-2.2 -Dhadoop.version=2.2.0 -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -DskipTests clean package
The error is not very obvious, I spent a long time to solve this issues
In order to facilitate other guys who use spark in http proxy environment, I highly recommed add this to documents