Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build project from sources using Maven 3.6.1 in MacOS #14

Open
eltonfss opened this issue Mar 27, 2020 · 1 comment
Open

Unable to build project from sources using Maven 3.6.1 in MacOS #14

eltonfss opened this issue Mar 27, 2020 · 1 comment

Comments

@eltonfss
Copy link

I'm trying to build BigDAWG from sources using the instructions at BUILDING.md.

My environment configurations are:

Maven home: /opt/apache-maven-3.6.1
Java version: 1.8.0_241, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.15.3", arch: "x86_64", family: "mac"

I was able to download Vertica JDBC Driver and install it using the information provided in the document. Here's the output of the jar installation.

 mvn install:install-file -Dfile=$HOME/Downloads/vertica-jdbc-8.0.1-6.jar -DgroupId=com.vertica -DartifactId=vjdbc8 -Dversion=8.0.1 -Dpackaging=jar
[INFO] Scanning for projects...
[INFO] 
[INFO] ---------------------< istc.bigdawg:istc.bigdawg >----------------------
[INFO] Building istc.bigdawg 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ istc.bigdawg ---
[INFO] Installing /Users/eltons/Downloads/vertica-jdbc-8.0.1-6.jar to /Users/eltons/.m2/repository/com/vertica/vjdbc8/8.0.1/vjdbc8-8.0.1.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.476 s
[INFO] Finished at: 2020-03-26T20:58:08-03:00
[INFO] ------------------------------------------------------------------------

However, when try to execute the next step of the maven setup I get an error indicating that the dependencies required could not be found:

mvn package -P mit -DskipTests
[INFO] Scanning for projects...
[INFO] 
[INFO] ---------------------< istc.bigdawg:istc.bigdawg >----------------------
[INFO] Building istc.bigdawg 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from maven: http://central.maven.org/maven2/org/neo4j/neo4j-jdbc/2.3.2/neo4j-jdbc-2.3.2.jar
Downloading from neo4j-public: http://m2.neo4j.org/content/groups/public/org/neo4j/neo4j-jdbc/2.3.2/neo4j-jdbc-2.3.2.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.172 s
[INFO] Finished at: 2020-03-26T21:01:08-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project istc.bigdawg: Could not resolve dependencies for project istc.bigdawg:istc.bigdawg:jar:1.0-SNAPSHOT: Could not transfer artifact org.neo4j:neo4j-jdbc:jar:2.3.2 from/to maven (http://central.maven.org/maven2/): central.maven.org: nodename nor servname provided, or not known: Unknown host central.maven.org: nodename nor servname provided, or not known -> [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

I've tried to make some changes in the pom.xml file which seems to have solved the problem partially, but I'm still unable to execute this step successfully. The changes were:

  • Add <!-- https://mvnrepository.com/artifact/org.neo4j/neo4j-jdbc --> in line 153
  • Replace <url>http://central.maven.org/maven2/</url> by <url>https://mvnrepository.com/</url> in line 283.

After making those changes the error changed to:

mvn package -P mit -DskipTests
[INFO] Scanning for projects...
[INFO] 
[INFO] ---------------------< istc.bigdawg:istc.bigdawg >----------------------
[INFO] Building istc.bigdawg 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from maven: https://mvnrepository.com/org/neo4j/neo4j-jdbc/2.3.2/neo4j-jdbc-2.3.2.jar
Downloading from neo4j-public: http://m2.neo4j.org/content/groups/public/org/neo4j/neo4j-jdbc/2.3.2/neo4j-jdbc-2.3.2.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.243 s
[INFO] Finished at: 2020-03-26T21:07:39-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project istc.bigdawg: Could not resolve dependencies for project istc.bigdawg:istc.bigdawg:jar:1.0-SNAPSHOT: Could not transfer artifact org.neo4j:neo4j-jdbc:jar:2.3.2 from/to neo4j-public (http://m2.neo4j.org/content/groups/public): Failed to transfer file http://m2.neo4j.org/content/groups/public/org/neo4j/neo4j-jdbc/2.3.2/neo4j-jdbc-2.3.2.jar with status code 502 -> [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

Is this problem related to my environment configuration? Would there be any way to be able to build BigDAWG from sources using MacOS?

@mmucklo
Copy link
Contributor

mmucklo commented Apr 20, 2020

@eltonfss It looks like the Neo4j driver may have moved or been updated.

I will try to take a peak and submit a PR if appropriate.

mmucklo added a commit to mmucklo/bigdawg that referenced this issue Apr 20, 2020
mmucklo added a commit to mmucklo/bigdawg that referenced this issue Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants