Stratio / deep-spark

Connecting Apache Spark with different data stores [DEPRECATED]
http://stratio.github.io/deep-spark
Apache License 2.0
197 stars 42 forks source link

Failed to Build Deep-jdbc #19

Closed austindsouza closed 9 years ago

austindsouza commented 9 years ago

I was trying to build deep-spark using the command mvn clean install -DskipTests inside deep-parernt directory and at the end i got an error stated that

[INFO] deep parent ........................................ SUCCESS [ 22.328 s] [INFO] deep commons ....................................... SUCCESS [ 33.724 s] [INFO] deep core .......................................... SUCCESS [ 25.067 s] [INFO] deep cassandra ..................................... SUCCESS [ 29.947 s] [INFO] deep mongodb ....................................... SUCCESS [ 22.710 s] [INFO] deep elasticsearch ................................. SUCCESS [ 23.845 s] [INFO] deep aerospike ..................................... SUCCESS [ 23.377 s] [INFO] deep jdbc .......................................... FAILURE [ 0.147 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 03:01 min [INFO] Finished at: 2015-05-29T16:22:24+05:30 [INFO] Final Memory: 77M/718M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project deep-jdbc: Could not resolve dependencies for project com.stratio.deep:deep-jdbc:jar:0.8.0-SNAPSHOT: Failure to find com.oracle:ojdbc7:jar:12.1.0.2 in http://m2.neo4j.org/content/repositories/releases was cached in the local repository, resolution will not be reattempted until the update interval of Neo4j releases has elapsed or updates are forced -> [Help 1]

Can you please provide me the proper steps to build this project.

Thanks,

josegom commented 9 years ago

To compile Deep is necessary to have ojdbc7 driver in your local repositoty because this driver is not published in any public maven repositories.

We are going to add the way to install the oracle driver into our documentation. Meanwhile we send you the steps in advance.

In order to compile the deep-jdbc module is necessary to add the Oracle ojdbc driver into your local repository. You can download it from the URL: http://www.oracle.com/technetwork/database/features/jdbc/default-2280470.html. When you are on the web you must click in "Accept License Agreement" and later downlad ojdbc7.jar library. You need a free oracle account to download the official driver.

To install the ojdbc driver in your local repository you must execute the command below:

mvn install:install-file -Dfile= -DgroupId=com.oracle -DartifactId=ojdbc7 -Dversion=12.1.0.2 -Dpackaging=jar

After that you can compile Deep executing the following steps:

cd deep-parent

mvn clean install

josegom commented 9 years ago

If you are agree with the explanation please close the issue.

austindsouza commented 9 years ago

Hi Josegom, I used mvn install:install-file -Dfile=ojdbc7.jar -DgroupId=com.oracle -DartifactId=ojdbc7 -Dversion=12.1.0.2 -Dpackaging=jar command and it yields Successful Build

Thank you!