Unable to use maven_repository
tirkarthi opened this issue · comments
Hi,
I cloned the project and tried lein deps
but it threw me an error as below :
➜ clj-foundationdb git:(master) lein deps
Could not find artifact com.apple.foundationdb:fdb-java:jar:5.1.5 in central (https://repo1.maven.org/maven2/)
Could not find artifact com.apple.foundationdb:fdb-java:jar:5.1.5 in clojars (https://repo.clojars.org/)
Could not find artifact com.apple.foundationdb:fdb-java:jar:5.1.5 in local (file:/test/clj-foundationdb/maven_repository/)
This could be due to a typo in :dependencies, file system permissions, or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.
Any idea on this? I tried using lein localrepo for installing the jar since the jars are not present in maven.
It looks like I have a local pom that is doing this.
I think I generated it with lein pom
.
Here it is if you want to try changing the path to an absolute path for your environment:
<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>clj-foundationdb</groupId>
<artifactId>clj-foundationdb</artifactId>
<packaging>jar</packaging>
<version>0.1.0-SNAPSHOT</version>
<name>clj-foundationdb</name>
<description>FIXME: write description</description>
<url>http://example.com/FIXME</url>
<licenses>
<license>
<name>Eclipse Public License</name>
<url>http://www.eclipse.org/legal/epl-v10.html</url>
</license>
</licenses>
<scm/>
<build>
<sourceDirectory>src</sourceDirectory>
<testSourceDirectory>test</testSourceDirectory>
<resources>
<resource>
<directory>resources</directory>
</resource>
</resources>
<testResources>
<testResource>
<directory>resources</directory>
</testResource>
</testResources>
<directory>target</directory>
<outputDirectory>target/classes</outputDirectory>
<plugins/>
</build>
<repositories>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
<repository>
<id>clojars</id>
<url>https://repo.clojars.org/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
<repository>
<id>local</id>
<url>file:/Users/alexdixon/clj-foundationdb/maven_repository/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
<dependencyManagement>
<dependencies/>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.clojure</groupId>
<artifactId>clojure</artifactId>
<version>1.9.0</version>
</dependency>
<dependency>
<groupId>com.apple.foundationdb</groupId>
<artifactId>fdb-java</artifactId>
<version>5.1.5</version>
</dependency>
</dependencies>
</project>
<!-- This file was autogenerated by Leiningen.
Please do not edit it directly; instead edit project.clj and regenerate it.
It should not be considered canonical data. For more information see
https://github.com/technomancy/leiningen -->
Thanks, I will give it a try. There is an issue in FoundationDB repo to upload the jar to Maven apple/foundationdb#219 which will hopefully resolve using local jar.
Just wanted to add that Java bindings were uploaded to Maven with respect to upstream issue : https://search.maven.org/#artifactdetails%7Corg.foundationdb%7Cfdb-java%7C5.2.5%7Cjar
Ah! Wonderful. Thanks for spreading the word.