amazon-archives / dynamodb-janusgraph-storage-backend

The Amazon DynamoDB Storage Backend for JanusGraph
Apache License 2.0
446 stars 99 forks source link

build error on 'mvn install' #3

Closed oren closed 9 years ago

oren commented 9 years ago

(ubuntu 15.04) sudo apt-get install maven2 mvn install

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Amazon DynamoDB Storage Backend for Titan
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).

Project ID: com.sun.jersey:jersey-project:pom:1.9

Reason: Cannot find parent: net.java:jvnet-parent for project: com.sun.jersey:jersey-project:pom:1.9 for project com.sun.jersey:jersey-project:pom:1.9

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12 seconds
[INFO] Finished at: Sun Aug 23 02:32:18 PDT 2015
[INFO] Final Memory: 50M/333M
[INFO] ------------------------------------------------------------------------
amcp commented 9 years ago

investigating...

amcp commented 9 years ago

Confirmed the issue Downloading: https://repo1.maven.org/maven2/com/sun/jersey/jersey-project/1.9/jersey-project-1.9.pom 17K downloaded (jersey-project-1.9.pom) Downloading: http://download.java.net/maven/2/net/java/jvnet-parent/1/jvnet-parent-1.pom [INFO] Unable to find resource 'net.java:jvnet-parent:pom:1' in repository m2.java.net (http://download.java.net/maven/2) Downloading: http://repository.jboss.org/nexus/content/groups/public//net/java/jvnet-parent/1/jvnet-parent-1.pom [INFO] Unable to find resource 'net.java:jvnet-parent:pom:1' in repository repository.jboss.org (http://repository.jboss.org/nexus/content/groups/public/) Downloading: http://maven.glassfish.org/content/groups/glassfish/net/java/jvnet-parent/1/jvnet-parent-1.pom 178b downloaded (jvnet-parent-1.pom) [WARNING] *\ CHECKSUM FAILED - Checksum failed on download: local = '81ffbd1712afe8cdf138b570c0fc9934742c33c1'; remote = '

301' - RETRYING Downloading: http://maven.glassfish.org/content/groups/glassfish/net/java/jvnet-parent/1/jvnet-parent-1.pom 178b downloaded (jvnet-parent-1.pom) [WARNING] **\* CHECKSUM FAILED - Checksum failed on download: local = '81ffbd1712afe8cdf138b570c0fc9934742c33c1'; remote = '<html> <head><title>301' - IGNORING [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM). Project ID: com.sun.jersey:jersey-project:pom:1.9 Reason: Cannot find parent: net.java:jvnet-parent for project: com.sun.jersey:jersey-project:pom:1.9 for project com.sun.jersey:jersey-project:pom:1.9 [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3 minutes 18 seconds [INFO] Finished at: Sun Aug 23 10:42:00 PDT 2015 [INFO] Final Memory: 49M/79M [INFO] ------------------------------------------------------------------------ </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/amcp"><img src="https://avatars.githubusercontent.com/u/1066771?v=4" />amcp</a> commented <strong> 9 years ago</strong> </div> <div class="markdown-body"> <p>Seems like the version of maven you installed is <a href="http://stackoverflow.com/questions/16140389/cannot-find-parent-net-javajvnet-parent-for-project-com-sun-jerseyjersey-pro">not following HTTP 301 redirect</a>. <a href="http://stackoverflow.com/questions/15630055/how-to-install-maven-3-on-ubuntu-15-04-14-10-14-04-lts-13-10-13-04-12-10-12-04-b">Install a later version of Maven</a>. Because you need a JDK and not just JRE so <a href="http://tecadmin.net/install-oracle-java-8-jdk-8-ubuntu-via-ppa/">install the JDK</a>:</p> <pre><code>sudo apt-get remove maven2 sudo apt-get install maven sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer sudo apt-get install oracle-java8-set-default</code></pre> <p>Then it seems that <code>mvn install</code> works.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/amcp"><img src="https://avatars.githubusercontent.com/u/1066771?v=4" />amcp</a> commented <strong> 9 years ago</strong> </div> <div class="markdown-body"> <p>I enforced maven version 3.0 or greater in the POM. Closing.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/oren"><img src="https://avatars.githubusercontent.com/u/6517?v=4" />oren</a> commented <strong> 9 years ago</strong> </div> <div class="markdown-body"> <p>(I am not familiar with the Java echo-system so I apologize if the issues I have are trivial) </p> <p>java -version</p> <pre><code>java version "1.8.0_60" Java(TM) SE Runtime Environment (build 1.8.0_60-b27) Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)</code></pre> <p>nvm install</p> <pre><code>Downloading: https://repo.maven.apache.org/maven2/com/google/collections/google-collections/1.0/google-collections-1.0.jar Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-javac/2.5/plexus-compiler-javac-2.5.jar (19 KB at 95.3 KB/sec) Downloading: https://repo.maven.apache.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar Downloaded: https://repo.maven.apache.org/maven2/org/apache/xbean/xbean-reflect/3.4/xbean-reflect-3.4.jar (131 KB at 425.7 KB/sec) Downloaded: https://repo.maven.apache.org/maven2/log4j/log4j/1.2.12/log4j-1.2.12.jar (350 KB at 1131.7 KB/sec) Downloaded: https://repo.maven.apache.org/maven2/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar (44 KB at 213.5 KB/sec) Downloaded: https://repo.maven.apache.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar (118 KB at 462.0 KB/sec) Downloaded: https://repo.maven.apache.org/maven2/com/google/collections/google-collections/1.0/google-collections-1.0.jar (625 KB at 1435.9 KB/sec) [INFO] Changes detected - recompiling the module! [INFO] Compiling 58 source files to /home/oren/projects/dynamodb-titan-storage-backend/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1:10.835s [INFO] Finished at: Sun Aug 23 11:27:55 PDT 2015 [INFO] Final Memory: 20M/151M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project dynamodb-titan054-storage-backend: Compilation failure [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? [ERROR] -> [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/MojoFailureException</code></pre> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/amcp"><img src="https://avatars.githubusercontent.com/u/1066771?v=4" />amcp</a> commented <strong> 9 years ago</strong> </div> <div class="markdown-body"> <p>You need to install a JDK - Maven wants to compile the source code and it cannot due to lack of a compiler. As far as I know, the last four commands in the snippet install the JDK. Can you run them and comment that your issue is resolved?</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/oren"><img src="https://avatars.githubusercontent.com/u/6517?v=4" />oren</a> commented <strong> 9 years ago</strong> </div> <div class="markdown-body"> <p>I followed your instructions. I see oracle-java8-installer and oracle-java8-set-default.</p> <p>aptitude search oracle</p> <pre><code>p cl-sql-oracle - CLSQL database backend, Oracle p libdatetime-format-oracle-perl - module for parsing and formatting Oracle dates and timestamps p libmono-oracle2.0-cil - Mono Oracle library (for CLI 2.0) p libmono-oracle4.0-cil - Mono Oracle library (for CLI 4.0) p oracle-java6-installer - Oracle Java(TM) Development Kit (JDK) 6 p oracle-java6-set-default - Set Oracle JDK 6 as default Java v oracle-java7-bin - v oracle-java7-fonts - p oracle-java7-installer - Oracle Java(TM) Development Kit (JDK) 7 v oracle-java7-jdk - v oracle-java7-jre - v oracle-java7-plugin - p oracle-java7-set-default - Set Oracle JDK 7 as default Java p oracle-java7-unlimited-jce-policy - Unlimited JCE Policy for Oracle Java 7 v oracle-java8-bin - v oracle-java8-fonts - i oracle-java8-installer - Oracle Java(TM) Development Kit (JDK) 8 v oracle-java8-jdk - v oracle-java8-jre - v oracle-java8-plugin - i oracle-java8-set-default - Set Oracle JDK 8 as default Java p oracle-java8-unlimited-jce-policy - Unlimited JCE Policy for Oracle Java 8 v oracle-java9-bin - v oracle-java9-fonts - p oracle-java9-installer - Oracle Java(TM) Development Kit (JDK) 9 v oracle-java9-jdk - v oracle-java9-jre - v oracle-java9-plugin - p oracle-java9-set-default - Set Oracle JDK 9 as default Java p oracle-java9-unlimited-jce-policy - Unlimited JCE Policy for Oracle Java 9 p oracle-jdk7-installer - Oracle JDK7 Installer meta package p spamoracle - A statistical analysis spam filter based on Bayes' formula p spamoracle:i386 - A statistical analysis spam filter based on Bayes' formula v spamoracle-byte - v spamoracle-byte:i386 - </code></pre> <p>btw i also noticed i have the following:</p> <pre><code>i A openjdk-7-jre i A openjdk-7-jre-headless</code></pre> <p>I am not sure if it's relevant, but just wanted to make sure.</p> <p>Thanks again for your help.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/amcp"><img src="https://avatars.githubusercontent.com/u/1066771?v=4" />amcp</a> commented <strong> 9 years ago</strong> </div> <div class="markdown-body"> <p>Those are JRE packages, not the Java Development Kit that provides javac.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/oren"><img src="https://avatars.githubusercontent.com/u/6517?v=4" />oren</a> commented <strong> 9 years ago</strong> </div> <div class="markdown-body"> <p>echo $JAVA_HOME</p> <pre><code>/usr/lib/jvm/java-7-openjdk-amd64</code></pre> <p>I have an export line in my .bashrc. after changing it to: <code>export JAVA_HOME=/usr/lib/jvm/java-8-oracle</code></p> <p>the install was successful. thanks!</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>