I'm kinda lost in here trying to get shindig (java) up and running...
I've downloaded the code from the svn repository (from trunk and other beta from tags) and I've been trying to install the code in the .m2 folder as a repository.
I did't succeed -.-
When I execute $ mvn in order to clean and install, it goes through the process until it reaches the 'Apache Shindig Gadget Renderer'. Trying to compile the project fails.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Shindig Project ............................ SUCCESS [3.004s]
[INFO] Apache Shindig Features ........................... SUCCESS [56.893s]
[INFO] Apache Shindig Common Code ........................ SUCCESS [20.824s]
[INFO] Apache Shindig Gadget Renderer .................... FAILURE [0.270s]
[INFO] Apache Shindig Social API ......................... SKIPPED
[INFO] Apache Shindig Sample Container ................... SKIPPED
[INFO] Apache Shindig Web App Resources .................. SKIPPED
[INFO] Apache Shindig Extra Modules ...................... SKIPPED
[INFO] Apache Shindig Web App Dependencies ............... SKIPPED
[INFO] Apache Shindig Web App ............................ SKIPPED
[INFO] ------------------------------------------------------------------------
The same happens if I use the eclipse plugin. I have the newest version of maven.
What's the problem here? Isn't it weird that the trunk (or any other beta) can compile? o.O
Thank's a lot in advance!
Related
am trying to install some code on my workstation using an own remote repository using Nexus. Some of the projects can be deployed and installed correctly. However, there is a project which some dependencies cannot be resolved.
This is the log:
[INFO] Building Apache CloudStack Plugin - Network Juniper Contrail 4.5.3-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://192.168.1.109:8081/nexus/content/groups/public/net/juniper/contrail/juniper-contrail-api/1.0-SNAPSHOT/maven-metadata.xml
Downloading: http://192.168.1.109:8081/nexus/content/groups/public/net/juniper/contrail/juniper-contrail-api/1.0-SNAPSHOT/juniper-contrail-api-1.0-SNAPSHOT.pom
[WARNING] The POM for net.juniper.contrail:juniper-contrail-api:jar:1.0-SNAPSHOT is missing, no dependency information available
Downloading: http://192.168.1.109:8081/nexus/content/groups/public/org/apache/commons/commons-exec/1.1/commons-exec-1.1.pom
Downloaded: http://192.168.1.109:8081/nexus/content/groups/public/org/apache/commons/commons-exec/1.1/commons-exec-1.1.pom (11 KB at 456.2 KB/sec)
Downloading: http://192.168.1.109:8081/nexus/content/groups/public/net/juniper/contrail/juniper-contrail-api/1.0-SNAPSHOT/juniper-contrail-api-1.0-SNAPSHOT.jar
Downloading: http://192.168.1.109:8081/nexus/content/groups/public/org/apache/commons/commons-exec/1.1/commons-exec-1.1.jar
Downloaded: http://192.168.1.109:8081/nexus/content/groups/public/org/apache/commons/commons-exec/1.1/commons-exec-1.1.jar (52 KB at 2332.3 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache CloudStack Developer Tools - Checkstyle Configuration SUCCESS [5.957s]
[INFO] Apache CloudStack ................................. SUCCESS [7.994s]
[INFO] Apache CloudStack Maven Conventions Parent ........ SUCCESS [1.824s]
[INFO] Apache CloudStack Framework - Managed Context ..... SUCCESS [3.565s]
[INFO] Apache CloudStack Utils ........................... SUCCESS [19.943s]
[INFO] Apache CloudStack Framework ....................... SUCCESS [0.056s]
[INFO] Apache CloudStack Framework - Event Notification .. SUCCESS [7.477s]
[INFO] Apache CloudStack Framework - Configuration ....... SUCCESS [3.243s]
[INFO] Apache CloudStack API ............................. SUCCESS [12.763s]
[INFO] Apache CloudStack Framework - REST ................ SUCCESS [2.796s]
[INFO] Apache CloudStack Framework - IPC ................. SUCCESS [3.335s]
[INFO] Apache CloudStack Cloud Engine .................... SUCCESS [0.036s]
[INFO] Apache CloudStack Cloud Engine API ................ SUCCESS [3.927s]
[INFO] Apache CloudStack Framework - Security ............ SUCCESS [2.258s]
[INFO] Apache CloudStack Core ............................ SUCCESS [18.340s]
[INFO] Apache CloudStack Agents .......................... SUCCESS [6.946s]
[INFO] Apache CloudStack Framework - Clustering .......... SUCCESS [4.111s]
[INFO] Apache CloudStack Framework - Event Notification .. SUCCESS [1.263s]
[INFO] Apache CloudStack Cloud Engine Schema Component ... SUCCESS [12.014s]
[INFO] Apache CloudStack Framework - Jobs ................ SUCCESS [4.621s]
[INFO] Apache CloudStack Cloud Engine Internal Components API SUCCESS [2.448s]
[INFO] Apache CloudStack Server .......................... SUCCESS [34.150s]
[INFO] Apache CloudStack Usage Server .................... SUCCESS [5.247s]
[INFO] Apache CloudStack Cloud Engine Orchestration Component SUCCESS [7.926s]
[INFO] Apache CloudStack Cloud Services .................. SUCCESS [0.029s]
[INFO] Apache CloudStack Secondary Storage ............... SUCCESS [0.221s]
[INFO] Apache CloudStack Secondary Storage Service ....... SUCCESS [4.067s]
[INFO] Apache CloudStack Engine Storage Component ........ SUCCESS [5.103s]
[INFO] Apache CloudStack Engine Storage Volume Component . SUCCESS [3.416s]
[INFO] Apache CloudStack Engine Storage Image Component .. SUCCESS [1.988s]
[INFO] Apache CloudStack Engine Storage Data Motion Component SUCCESS [2.026s]
[INFO] Apache CloudStack Engine Storage Cache Component .. SUCCESS [2.160s]
[INFO] Apache CloudStack Engine Storage Snapshot Component SUCCESS [5.856s]
[INFO] Apache CloudStack Cloud Engine API ................ SUCCESS [1.439s]
[INFO] Apache CloudStack Cloud Engine Service ............ SUCCESS [3.501s]
[INFO] Apache CloudStack Plugin POM ...................... SUCCESS [0.381s]
[INFO] Apache CloudStack Plugin - API Rate Limit ......... SUCCESS [5.112s]
[INFO] Apache CloudStack Plugin - Storage Volume default provider SUCCESS [2.032s]
[INFO] Apache CloudStack Plugin - Storage Volume SolidFire Provider SUCCESS [4.023s]
[INFO] Apache CloudStack Plugin - API SolidFire .......... SUCCESS [2.192s]
[INFO] Apache CloudStack Plugin - API Discovery .......... SUCCESS [3.353s]
[INFO] Apache CloudStack Plugin - ACL Static Role Based .. SUCCESS [1.870s]
[INFO] Apache CloudStack Plugin - Host Anti-Affinity Processor SUCCESS [2.430s]
[INFO] Apache CloudStack Plugin - Explicit Dedication Processor SUCCESS [2.099s]
[INFO] Apache CloudStack Plugin - User Concentrated Pod Deployment Planner SUCCESS [1.766s]
[INFO] Apache CloudStack Plugin - User Dispersing Deployment Planner SUCCESS [1.562s]
[INFO] Apache CloudStack Plugin - Implicit Dedication Planner SUCCESS [5.620s]
[INFO] Apache CloudStack Plugin - Skip Heurestics Planner SUCCESS [1.554s]
[INFO] Apache CloudStack Plugin - Host Allocator Random .. SUCCESS [2.016s]
[INFO] Apache CloudStack Plugin - Dedicated Resources .... SUCCESS [5.028s]
[INFO] Apache CloudStack Plugin - Hypervisor OracleVM .... SUCCESS [2.520s]
[INFO] Apache CloudStack Plugin - Open vSwitch ........... SUCCESS [2.586s]
[INFO] Apache CloudStack Plugin - Hypervisor XenServer ... SUCCESS [7.608s]
[INFO] Apache CloudStack Plugin - Hypervisor KVM ......... SUCCESS [7.350s]
[INFO] Apache CloudStack Plugin - RabbitMQ Event Bus ..... SUCCESS [1.861s]
[INFO] Apache CloudStack Plugin - In Memory Event Bus .... SUCCESS [3.026s]
[INFO] Apache CloudStack Plugin - Hypervisor Baremetal ... SUCCESS [4.021s]
[INFO] Apache CloudStack Plugin - Hypervisor UCS ......... SUCCESS [2.294s]
[INFO] Apache CloudStack Plugin - Hypervisor Hyper-V ..... SUCCESS [4.920s]
[INFO] Apache CloudStack Plugin - Network Elastic Load Balancer SUCCESS [5.291s]
[INFO] Apache CloudStack Plugin - Network Internal Load Balancer SUCCESS [6.544s]
[INFO] Apache CloudStack Framework - Spring Life Cycle ... SUCCESS [1.831s]
[INFO] Apache CloudStack Plugin - Network Juniper Contrail FAILURE [2.055s]
[INFO] Apache CloudStack Plugin - Palo Alto .............. SKIPPED
[INFO] Apache CloudStack Plugin - Network Netscaler ...... SKIPPED
[INFO] Apache CloudStack Plugin - Network Nicira NVP ..... SKIPPED
[INFO] Apache CloudStack Plugin - BigSwitch Virtual Network Segment SKIPPED
[INFO] Apache CloudStack Plugin - Network Brocade VCS .... SKIPPED
[INFO] Apache CloudStack Plugin - Midokura Midonet ....... SKIPPED
[INFO] Apache CloudStack Plugin - Stratosphere SSP ....... SKIPPED
[INFO] Apache CloudStack Plugin - Network Opendaylight ... SKIPPED
[INFO] Apache CloudStack Plugin - Storage Allocator Random SKIPPED
[INFO] Apache CloudStack Plugin - User Authenticator LDAP SKIPPED
[INFO] Apache CloudStack Plugin - User Authenticator MD5 . SKIPPED
[INFO] Apache CloudStack Plugin - User Authenticator PBKDF2-SHA-256 SKIPPED
[INFO] Apache CloudStack Plugin - User Authenticator Plain Text SKIPPED
[INFO] Apache CloudStack Plugin - User Authenticator SAML2 SKIPPED
[INFO] Apache CloudStack Plugin - User Authenticator SHA256 Salted SKIPPED
[INFO] Apache CloudStack Plugin - Dns Notifier Example ... SKIPPED
[INFO] Apache CloudStack Plugin - Storage Image S3 ....... SKIPPED
[INFO] Apache CloudStack Plugin - Storage Image Swift provider SKIPPED
[INFO] Apache CloudStack Plugin - Storage Image default provider SKIPPED
[INFO] Apache CloudStack Plugin - Storage Image sample provider SKIPPED
[INFO] Apache CloudStack Plugin - Storage Volume Nexenta Provider SKIPPED
[INFO] Apache CloudStack Plugin - Storage Volume CloudByte Provider SKIPPED
[INFO] Apache CloudStack Plugin - Storage Volume sample provider SKIPPED
[INFO] Apache CloudStack Plugin - SNMP Alerts ............ SKIPPED
[INFO] Apache CloudStack Plugin - Syslog Alerts .......... SKIPPED
[INFO] Apache CloudStack Plugin - Network VXLAN .......... SKIPPED
[INFO] Apache CloudStack Plugin - GloboDNS ............... SKIPPED
[INFO] Apache CloudStack Framework - Spring Module ....... SKIPPED
[INFO] Apache CloudStack Secondary Storage Controller .... SKIPPED
[INFO] Apache CloudStack Console Proxy - RDP Client ...... SKIPPED
[INFO] Apache CloudStack Console Proxy ................... SKIPPED
[INFO] Apache CloudStack Console Proxy - Server .......... SKIPPED
[INFO] Apache CloudStack System VM ....................... SKIPPED
[INFO] Apache CloudStack Client UI ....................... SKIPPED
[INFO] Apache CloudStack Framework - QuickCloud .......... SKIPPED
[INFO] Apache CloudStack Test ............................ SKIPPED
[INFO] Apache CloudStack Developer Mode .................. SKIPPED
[INFO] Apache CloudStack Developer Tools ................. SKIPPED
[INFO] Apache CloudStack apidocs ......................... SKIPPED
[INFO] Apache CloudStack marvin .......................... SKIPPED
[INFO] Apache CloudStack DevCloud ........................ SKIPPED
[INFO] Apache CloudStack DevCloud-KVM .................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4:56.657s
[INFO] Finished at: Sun Nov 01 15:35:45 CET 2015
[INFO] Final Memory: 73M/340M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project cloud-plugin-network-contrail: Could not resolve dependencies for project org.apache.cloudstack:cloud-plugin-network-contrail:jar:4.5.3-SNAPSHOT: Could not find artifact net.juniper.contrail:juniper-contrail-api:jar:1.0-SNAPSHOT in internal-repository (http://192.168.1.109:8081/nexus/content/groups/public) -> [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/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :cloud-plugin-network-contrail
This is my .m2/settings.xml
<settings>
<mirrors>
<mirror>
<id>internal-repository</id>
<name>Maven Repository Manager running on Spielplatz</name>
<url>http://192.168.1.109:8081/nexus/content/groups/public</url>
<mirrorOf>*</mirrorOf>
</mirror>
</mirrors>
</settings>
When I deploy cloudstack without using my own repository, everything works fine, so I tried to copy the jar file that is required in the Hosted - SNAPSHOTS repository on nexus (by copying it into the /opt/nexus/sonatype-work/nexus/storage/snapshots and refreshing the repository in the web UI) but it won't work. The same error shows up.
Please, any help would be greatly appreciated.
Maven's output says it all:
[WARNING] The POM for net.juniper.contrail:juniper-contrail-api:jar:1.0-SNAPSHOT is missing,
no dependency information available
...
[ERROR] Failed to execute goal on project cloud-plugin-network-contrail:
Could not resolve dependencies for project
org.apache.cloudstack:cloud-plugin-network-contrail:jar:4.5.3-SNAPSHOT:
Could not find artifact net.juniper.contrail:juniper-contrail-api:jar:1.0-SNAPSHOT
in internal-repository (http://192.168.1.109:8081/nexus/content/groups/public)
This occurs since you:
tried to copy the jar file that is required in the Hosted - SNAPSHOTS repository on nexus (by copying it into the /opt/nexus/sonatype-work/nexus/storage/snapshots and refreshing the repository in the web UI)
which is not one of the proper ways to do such:
Using the deploy-file goal of the Apache Maven Deploy Plugin.
Using Nexus' UI to upload artifact(s) manually.
See Repository Management with Nexus, 5.13. Uploading Components.
I tried to compile Spark 1.3.1 using the following flags
mvn -Pyarn -Phadoop-2.4 -Dhadoop.version=2.6.0 \
-Dscala-2.11 \
-Phive -Phive-0.13.1 -Phive-thriftserver \
-DskipTests clean package
The compilation failed with the following the error.
Any suggestions?
Thanks
[INFO] Reactor Summary:
[INFO]
[INFO] Spark Project Parent POM ........................... SUCCESS [01:08 min]
[INFO] Spark Project Core ................................. SUCCESS [02:38 min]
[INFO] Spark Project Bagel ................................ SUCCES [ 17.700 s]
[INFO] Spark Project GraphX ............................... SUCCESS [ 35.732 s]
[INFO] Spark Project ML Library ........................... SUCCESS [01:11 min]
[INFO] Spark Project Tools ................................ SUCCESS [ 6.718 s]
[INFO] Spark Project Networking ........................... SUCCESS [ 6.837 s]
[INFO] Spark Project Shuffle Streaming Service ............ SUCCESS [ 3.534 s]
[INFO] Spark Project Streaming ............................ SUCCESS [ 43.771 s]
[INFO] Spark Project Catalyst ............................. SUCCESS [ 48.411 s]
[INFO] Spark Project SQL .................................. SUCCESS [ 56.046 s]
[INFO] Spark Project Hive ................................. SUCCESS `enter code here`[01:01 min]
[INFO] Spark Project Assembly ............................. FAILURE [ 6.365 s]
[INFO] Spark Project External Twitter ..................... SKIPPED
[INFO] Spark Project External Flume ....................... SKIPPED
[INFO] Spark Project External Flume Sink .................. SKIPPED
[INFO] Spark Project External MQTT ........................ SKIPPED
[INFO] Spark Project External ZeroMQ ...................... SKIPPED
[INFO] Spark Project Examples ............................. SKIPPED
[INFO] Spark Project REPL ................................. SKIPPED
[INFO] Spark Project YARN ................................. SKIPPED
[INFO] Spark Project YARN Shuffle Service ................. SKIPPED
[INFO] Spark Project Hive Thrift Server ................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 09:45 min
[INFO] Finished at: 2015-05-15T11:25:53-06:00
[INFO] Final Memory: 77M/1176M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project spark-assembly_2.10: Could not resolve dependencies for project org.apache.spark:spark-assembly_2.10:pom:1.3.1: Could not find artifact org.apache.spark:spark-hive-thriftserver_2.11:jar:1.3.1 in central (https://repo1.maven.org/maven2) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project spark-assembly_2.10: Could not resolve dependencies for project org.apache.spark:spark-assembly_2.10:pom:1.3.1: Could not find artifact org.apache.spark:spark-hive-thriftserver_2.11:jar:1.3.1 in central (https://repo1.maven.org/maven2)
Seems no dependency of spark-hive-thriftserver_2.11 exists In maven repository, I also search it manually in maven repo and find nothing. I think thrift server is not ready for scala2.11 for now.
I am trying to build Spark 1.2 with Maven. My goal is to use PySpark with YARN on Hadoop 2.2.
I saw that this was only possible by building Spark with Maven. First, is this true?
If it is true, what is the problem in the log below? How do I correct this?
C:\Spark\spark-1.2.0>mvn -Pyarn -Phadoop-2.2 -Dhadoop.version=2.2.0 -DskipTests
clean package
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Spark Project Parent POM
[INFO] Spark Project Networking
[INFO] Spark Project Shuffle Streaming Service
[INFO] Spark Project Core
[INFO] Spark Project Bagel
[INFO] Spark Project GraphX
[INFO] Spark Project Streaming
[INFO] Spark Project Catalyst
[INFO] Spark Project SQL
[INFO] Spark Project ML Library
[INFO] Spark Project Tools
[INFO] Spark Project Hive
[INFO] Spark Project REPL
[INFO] Spark Project YARN Parent POM
[INFO] Spark Project YARN Stable API
[INFO] Spark Project Assembly
[INFO] Spark Project External Twitter
[INFO] Spark Project External Flume Sink
[INFO] Spark Project External Flume
[INFO] Spark Project External MQTT
[INFO] Spark Project External ZeroMQ
[INFO] Spark Project External Kafka
[INFO] Spark Project Examples
[INFO] Spark Project YARN Shuffle Service
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Spark Project Parent POM 1.2.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # spark-parent ---
[INFO] Deleting C:\Spark\spark-1.2.0\target
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-versions) # spark-parent
---
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:add-source (add-scala-sources) # spark-
parent ---
[INFO] Source directory: C:\Spark\spark-1.2.0\src\main\scala added.
[INFO]
[INFO] --- maven-remote-resources-plugin:1.5:process (default) # spark-parent --
-
[INFO]
[INFO] --- scala-maven-plugin:3.2.0:compile (scala-compile-first) # spark-parent
---
[INFO] No sources to compile
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:add-test-source (add-scala-test-sources
) # spark-parent ---
[INFO] Test Source directory: C:\Spark\spark-1.2.0\src\test\scala added.
[INFO]
[INFO] --- scala-maven-plugin:3.2.0:testCompile (scala-test-compile-first) # spa
rk-parent ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-dependency-plugin:2.9:build-classpath (default) # spark-parent
---
[INFO] Wrote classpath file 'C:\Spark\spark-1.2.0\target\spark-test-classpath.tx
t'.
[INFO]
[INFO] --- gmavenplus-plugin:1.2:execute (default) # spark-parent ---
[INFO] Using Groovy 2.3.7 to perform execute.
[INFO]
[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) # spark-p
arent ---
[INFO]
[INFO] --- maven-shade-plugin:2.2:shade (default) # spark-parent ---
[INFO] Including org.spark-project.spark:unused:jar:1.0.0 in the shaded jar.
[INFO] Replacing original artifact with shaded artifact.
[INFO]
[INFO] --- maven-source-plugin:2.2.1:jar-no-fork (create-source-jar) # spark-par
ent ---
[INFO]
[INFO] --- scalastyle-maven-plugin:0.4.0:check (default) # spark-parent ---
[WARNING] sourceDirectory is not specified or does not exist value=C:\Spark\spar
k-1.2.0\src\main\scala
Saving to outputFile=C:\Spark\spark-1.2.0\scalastyle-output.xml
Processed 0 file(s)
Found 0 errors
Found 0 warnings
Found 0 infos
Finished in 32 ms
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Spark Project Networking 1.2.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # spark-network-common_2
.10 ---
[INFO] Deleting C:\Spark\spark-1.2.0\network\common\target
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-versions) # spark-networ
k-common_2.10 ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:add-source (add-scala-sources) # spark-
network-common_2.10 ---
[INFO] Source directory: C:\Spark\spark-1.2.0\network\common\src\main\scala adde
d.
[INFO]
[INFO] --- maven-remote-resources-plugin:1.5:process (default) # spark-network-c
ommon_2.10 ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # spark-netw
ork-common_2.10 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Spark\spark-1.2.0\network\common\s
rc\main\resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- scala-maven-plugin:3.2.0:compile (scala-compile-first) # spark-networ
k-common_2.10 ---
[WARNING] Zinc server is not available at port 3030 - reverting to normal increm
ental compile
[INFO] Using incremental compilation
[INFO] compiler plugin: BasicArtifact(org.scalamacros,paradise_2.10.4,2.0.1,null
)
[INFO] Compiling 42 Java sources to C:\Spark\spark-1.2.0\network\common\target\s
cala-2.10\classes...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Spark Project Parent POM ........................... SUCCESS [ 5.267 s]
[INFO] Spark Project Networking ........................... FAILURE [ 1.922 s]
[INFO] Spark Project Shuffle Streaming Service ............ SKIPPED
[INFO] Spark Project Core ................................. SKIPPED
[INFO] Spark Project Bagel ................................ SKIPPED
[INFO] Spark Project GraphX ............................... SKIPPED
[INFO] Spark Project Streaming ............................ SKIPPED
[INFO] Spark Project Catalyst ............................. SKIPPED
[INFO] Spark Project SQL .................................. SKIPPED
[INFO] Spark Project ML Library ........................... SKIPPED
[INFO] Spark Project Tools ................................ SKIPPED
[INFO] Spark Project Hive ................................. SKIPPED
[INFO] Spark Project REPL ................................. SKIPPED
[INFO] Spark Project YARN Parent POM ...................... SKIPPED
[INFO] Spark Project YARN Stable API ...................... SKIPPED
[INFO] Spark Project Assembly ............................. SKIPPED
[INFO] Spark Project External Twitter ..................... SKIPPED
[INFO] Spark Project External Flume Sink .................. SKIPPED
[INFO] Spark Project External Flume ....................... SKIPPED
[INFO] Spark Project External MQTT ........................ SKIPPED
[INFO] Spark Project External ZeroMQ ...................... SKIPPED
[INFO] Spark Project External Kafka ....................... SKIPPED
[INFO] Spark Project Examples ............................. SKIPPED
[INFO] Spark Project YARN Shuffle Service ................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.048 s
[INFO] Finished at: 2015-02-09T10:17:47+08:00
[INFO] Final Memory: 49M/331M
[INFO] ------------------------------------------------------------------------
[**ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.0:compi
le (scala-compile-first) on project spark-network-common_2.10: wrap: java.io.IOE
xception: Cannot run program "javac": CreateProcess error=2, The system cannot f
ind the file specified -> [Help 1]**
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :spark-network-common_2.10
I had first installed JRE instead of JDK. My environment variables still referenced the JRE folder, and so it couldn't find the javac.exe binary.
A 'quirk' with Spark builds is that it can download its own version of Maven if it determines it is required.
When you run ./build/mvn clean package you are not running Maven directly, you are running a Spark proprietary script. The first thing that script does is check if your mvn --version is new enough for the version that the project determines it needs (which is set in the pom.xml file).
This is an important point because if you're running an old version of maven, Spark may download an additional maven version and install it and use that instead.
Some key things:
When you run ./build/mvn clean package, check which version of maven it is using
When maven runs it does its own traversal to figure out which JAVA_HOME is used
Before trying to run the spark build, check JAVA_HOME is set as a variable
Check that the JAVA_HOME version is a full jdk, not just a jre
Update your Maven to the latest version (or check it is at least as new as the version set by in the pom.xml in the root directory
Thanks
For this problem you need to set your java environment path correctly in .bashrc file. Then you need to build maven correct on set maven path for that check mvn -version.
Then it will build automaticaly without error.
I am trying to build Neo4j from https://github.com/neo4j/neo4j.git. I'm running Ubuntu 13.10 (32-bit), Maven 3.0.4 and Oracle JDK 1.7.0_45.
I am building it under the parent POM, using
$ mvn clean install -DminimalBuild -Dlicense.skip=true
The build fails, however:
enter code here------------------------------------------------------------------------
[INFO] Building Neo4j - JMX support 2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Neo4j ............................................. SUCCESS [0.683s]
[INFO] Licensing configuration ........................... SUCCESS [1.783s]
[INFO] Neo4j - Graph Database Kernel ..................... SUCCESS [24.188s]
[INFO] Neo4j - JMX support ............................... FAILURE [0.033s]
[INFO] Neo4j - Usage Data Collection ..................... SKIPPED
[INFO] Neo4j - Graphviz generation ....................... SKIPPED
[INFO] Neo4j - Lucene Index .............................. SKIPPED
[INFO] Neo4j - Graph Algorithms .......................... SKIPPED
[INFO] Neo4j - Graph Matching ............................ SKIPPED
[INFO] Neo4j - Cypher Compile 1.9 ........................ SKIPPED
[INFO] Neo4j - Cypher Compile 2.0 ........................ SKIPPED
[INFO] Neo4j - Cypher .................................... SKIPPED
[INFO] Neo4j Community ................................... SKIPPED
[INFO] Neo4j Community ................................... SKIPPED
[INFO] Neo4j - Generic shell ............................. SKIPPED
[INFO] Neo4j Examples .................................... SKIPPED
[INFO] Neo4j Server API .................................. SKIPPED
[INFO] Neo4j Server ...................................... SKIPPED
[INFO] Neo4j Server Examples ............................. SKIPPED
[INFO] Neo4j - Server Plugin Tests ....................... SKIPPED
[INFO] Neo4j Community Build ............................. SKIPPED
[INFO] Neo4j - Graph DB Monitoring and Management tools .. SKIPPED
[INFO] Neo4j Advanced .................................... SKIPPED
[INFO] Neo4j Advanced Server ............................. SKIPPED
[INFO] Neo4j Advanced Build .............................. SKIPPED
[INFO] Neo4j - Communication Package ..................... SKIPPED
[INFO] Neo4j - Clustering Infrastructure ................. SKIPPED
[INFO] Neo4j - Consistency Checker ....................... SKIPPED
[INFO] Neo4j - Backup Tool ............................... SKIPPED
[INFO] Neo4j - High Availability ......................... SKIPPED
[INFO] Neo4j Enterprise .................................. SKIPPED
[INFO] Neo4j Enterprise Server ........................... SKIPPED
[INFO] Neo4j - Enterprise Performance Tests .............. SKIPPED
[INFO] Neo4j Enterprise Build ............................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 29.571s
[INFO] Finished at: Wed Oct 23 18:16:07 BST 2013
[INFO] Final Memory: 42M/301M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project neo4j-jmx: Could not resolve dependencies for
project org.neo4j:neo4j-jmx:jar:2.0-SNAPSHOT: Failure to find org.neo4j:neo4j-
kernel:jar:tests:2.0-SNAPSHOT in http://m2.neo4j.org/content/repositories/snapshots/
was cached in the local repository, resolution will not be reattempted until the update
interval of neo4j-snapshot-repository has elapsed or updates are forced -> [Help 1]
I have had the same problem running it under Windows 7.
Any help is appreciated.
The problem is now resolved. The community/jmx project had a dependency on the community/kernel test-jar which is only built after the jmx project. Being a Maven noob, I'm not sure if Maven is supposed to get the dependencies from the snapshot repository or not. Anyway, I have the artifact locally now.
I am using Gitlab_ci to trigger a maven script when code is pushed.
The script executes:
mvn compile
[...]
[INFO] project ............................................ SUCCESS [1.312s]
[INFO] project-api ........................................ SUCCESS [1.416s]
[INFO] project-api-impl ................................... SUCCESS [0.329s]
[INFO] project-webapp ..................................... SUCCESS [0.192s]
[INFO] project-webapp-exec ................................ SUCCESS [0.026s]
[INFO] project-webapp-it .................................. SUCCESS [2.052s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
mvn tomcat7:deploy
[INFO] project............................................ SUCCESS [1.840s]
[INFO] project-api ........................................ SUCCESS [2.524s]
[INFO] project-api-impl ................................... FAILURE [0.257s]
[INFO] project-webapp ..................................... SKIPPED
[INFO] project-webapp-exec ................................ SKIPPED
[INFO] project-webapp-it .................................. SKIPPED
And I get the following error:
[ERROR] Failed to execute goal on project project-api-impl: Could not resolve dependencies for project eu.project:project-api-impl:jar:0.6-DEVELOPMENT: Failure to find eu.project:project-api:jar:0.6-DEVELOPMENT in http://repo.maven.apache.org/maven2
Since the project builds successfuly (the WAR is created), I can't understand why when executing deploy, build fails.
[Also, I am not sure whether to mark this as homework. The assignment's goal is to create a tomcat web application and manually deploy to a server to test. Since maven / continuous integration wasn't a requisit, I believe this should not be marked as a homework question]