[ https://issues.apache.org/jira/browse/SPARK-1378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14991794#comment-14991794 ]
Stéphane Collot edited comment on SPARK-1378 at 11/5/15 3:21 PM: ----------------------------------------------------------------- I had the same issue behind a corporate proxy with Nexus, here is my {~/.m2/settings.xml} that solves the issue: {code} <settings> <mirrors> <mirror> <!--Spark compilation bug --> <id>eclipse</id> <mirrorOf>mqtt-repo</mirrorOf> <url>http://proxy/nexus/content/repositories/eclipse-paho</url> </mirror> <mirror> <!--This sends everything else to /public --> <id>nexus</id> <mirrorOf>*</mirrorOf> <url>http://proxy/nexus/content/groups/public</url> </mirror> </mirrors> <profiles> <profile> <id>nexus</id> <!--Enable snapshots for the built in central repo to direct --> <!--all requests to nexus via the mirror --> <repositories> <repository> <id>central</id> <url>http://central</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>central</id> <url>http://central</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> <activeProfiles> <!--make the profile active all the time --> <activeProfile>nexus</activeProfile> </activeProfiles> </settings> {code} It seems that there is a bug (maybe in Nexus), that blocks solving for dependencies of mqtt-repo in http://proxy/nexus/content/groups/public I hope my settings could help other. was (Author: scollot): I had the same issue behind a corporate proxy with Nexus, here is my {~/.m2/settings.xml} that solve the issue: {code} <settings> <mirrors> <mirror> <!--Spark compilation bug --> <id>eclipse</id> <mirrorOf>mqtt-repo</mirrorOf> <url>http://proxy/nexus/content/repositories/eclipse-paho</url> </mirror> <mirror> <!--This sends everything else to /public --> <id>nexus</id> <mirrorOf>*</mirrorOf> <url>http://proxy/nexus/content/groups/public</url> </mirror> </mirrors> <profiles> <profile> <id>nexus</id> <!--Enable snapshots for the built in central repo to direct --> <!--all requests to nexus via the mirror --> <repositories> <repository> <id>central</id> <url>http://central</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>central</id> <url>http://central</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> <activeProfiles> <!--make the profile active all the time --> <activeProfile>nexus</activeProfile> </activeProfiles> </settings> {code} It seems that there is a bug (maybe in Nexus), that blocks solving for dependencies of mqtt-repo in http://proxy/nexus/content/groups/public I hope my settings could help other. > Build error: org.eclipse.paho:mqtt-client > ----------------------------------------- > > Key: SPARK-1378 > URL: https://issues.apache.org/jira/browse/SPARK-1378 > Project: Spark > Issue Type: Bug > Components: Build > Affects Versions: 0.9.0 > Reporter: Ken Williams > > Using Maven, I'm unable to build the 0.9.0 distribution I just downloaded. I > attempt like so: > {code} > mvn -U -Pyarn -Dhadoop.version=2.2.0 -Dyarn.version=2.2.0 -DskipTests package > {code} > The Maven error is: > {code} > [ERROR] Failed to execute goal on project spark-examples_2.10: Could not > resolve dependencies for project > org.apache.spark:spark-examples_2.10:jar:0.9.0-incubating: Could not find > artifact org.eclipse.paho:mqtt-client:jar:0.4.0 in nexus > {code} > My Maven version is 3.2.1, running on Java 1.7.0, using Scala 2.10.4. > Is there an additional Maven repository I should add or something? > If I go into the {{pom.xml}} and comment out the {{external/mqtt}} and > {{examples}} modules, the build succeeds. I'm fine without the MQTT stuff, > but I would really like to get the examples working because I haven't played > with Spark before. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org