client-snarl 3.0 JAR not in Maven Central

10 views
Skip to first unread message

ericr...@gmail.com

unread,
Apr 2, 2015, 6:48:40 PM4/2/15
to sta...@clarkparsia.com
Hi all,

I am trying to create simple spring-boot web starter project that uses stardog-spring. However, I get the following error when trying to build my 'stardog-asset' project with Maven:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.828 s
[INFO] Finished at: 2015-04-02T15:36:49-07:00
[INFO] Final Memory: 14M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project stardog-asset: Could not resolve dependencies for project com.ge:stardog-asset:jar:0.0.1-SNAPSHOT: The following artifacts could not be resolved: com.complexible.stardog:client-snarl:jar:3.0, com.complexible.stardog:client-http:jar:3.0: Could not find artifact com.complexible.stardog:client-snarl:jar:3.0 in central (https://repo.maven.apache.org/maven2) -> [Help 1]

I included 'stardog-spring' in my project by adding the following dependency:

<dependency>
   <groupId>com.complexible.stardog</groupId>
   <artifactId>stardog-spring</artifactId>
   <version>3.0.0</version>
</dependency>

It seems to me that the 'client-snarl' JAR is not in the Maven Central repository.

Is this the case? If so, does anyone know how I can get the 'client-snarl' JAR? 

Thank you!
Eric Steele


ericr...@gmail.com

unread,
Apr 2, 2015, 7:03:39 PM4/2/15
to sta...@clarkparsia.com, ericr...@gmail.com
I also tried adding the stardog public repository to my POM:

<repositories>
   <repository>
      <id>stardog-public</id>
      <url>http://maven.stardog.com</url>
   </repository>
</repositories>

However, I still receive an error suggesting that the JAR is not in the stardog public repository:

[INFO] ------------------------------------------------------------------------
[INFO] Building stardog-asset 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://maven.stardog.com/com/complexible/stardog/client-http/3.0/client-http-3.0.jar
Downloading: http://maven.stardog.com/com/complexible/stardog/client-snarl/3.0/client-snarl-3.0.jar
Downloading: https://repo.maven.apache.org/maven2/com/complexible/stardog/client-snarl/3.0/client-snarl-3.0.jar
Downloading: https://repo.maven.apache.org/maven2/com/complexible/stardog/client-http/3.0/client-http-3.0.jar

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.383 s
[INFO] Finished at: 2015-04-02T16:00:16-07:00
[INFO] Final Memory: 18M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project stardog-asset: Could not resolve dependencies for project com.ge:stardog-asset:jar:0.0.1-SNAPSHOT: The following artifacts could not be resolved: com.complexible.stardog:client-snarl:jar:3.0, com.complexible.stardog:client-http:jar:3.0: Could not find artifact com.complexible.stardog:client-snarl:jar:3.0 in stardog-public (http://maven.stardog.com) -> [Help 1]

Regards,
Eric 

ericr...@gmail.com

unread,
Apr 2, 2015, 7:09:22 PM4/2/15
to sta...@clarkparsia.com, ericr...@gmail.com
I next tried adding the following dependencies to my POM, which was suggested in this thread.

<dependency>
   <groupId>com.complexible.stardog</groupId>
   <artifactId>client-snarl</artifactId>
   <version>3.0</version>
   <type>pom</type>
</dependency>

<dependency>
   <groupId>com.complexible.stardog</groupId>
   <artifactId>client-http</artifactId>
   <version>3.0</version>
<type>pom</type>
</dependency>

The thread says that the JARs that I'm not finding don't actually exist, so we need to specify <type>pom</type>.

Unfortunately, I still get the same error even after making this change:

[INFO] ------------------------------------------------------------------------
[INFO] Building stardog-asset 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://maven.stardog.com/com/complexible/stardog/client-http/3.0/client-http-3.0.jar
Downloading: http://maven.stardog.com/com/complexible/stardog/client-snarl/3.0/client-snarl-3.0.jar
Downloading: https://repo.maven.apache.org/maven2/com/complexible/stardog/client-snarl/3.0/client-snarl-3.0.jar
Downloading: https://repo.maven.apache.org/maven2/com/complexible/stardog/client-http/3.0/client-http-3.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.409 s
[INFO] Finished at: 2015-04-02T16:06:08-07:00

[INFO] Final Memory: 18M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project stardog-asset: Could not resolve dependencies for project com.ge:stardog-asset:jar:0.0.1-SNAPSHOT: The following artifacts could not be resolved: com.complexible.stardog:client-snarl:jar:3.0, com.complexible.stardog:client-http:jar:3.0: Could not find artifact com.complexible.stardog:client-snarl:jar:3.0 in stardog-public (http://maven.stardog.com) -> [Help 1]

Can anyone see what I am missing here?

Thank you,
Eric 

Fernando Hernandez

unread,
Apr 2, 2015, 10:00:27 PM4/2/15
to sta...@clarkparsia.com
What maven version are you using? This works fine with maven 3.2.3.

Cheers,
Fernando

l...@swirrl.com

unread,
Apr 3, 2015, 7:56:08 AM4/3/15
to sta...@clarkparsia.com
Hi,

I'm recieving the same error when trying to add a server 3.0 dependency in a leiningen project.clj file. I've added the
stardog repository and an entry for the POM dependency:

:repositories [["stardog-public" {:url "http://maven.stardog.com"}]]
:dependencies [[com.complexible.stardog/server "3.0" :extension "pom"]]

however executing `lein deps` results in the following errors:

Could not find artifact com.complexible.stardog:client-snarl:jar:3.0 in stardog-public (http://maven.stardog.com)
Could not find artifact com.complexible.stardog:client-http:jar:3.0 in stardog-public (http://maven.stardog.com)
Could not find artifact com.complexible.stardog:server:jar:3.0 in stardog-public (http://maven.stardog.com)

I dumped the dependencies with `lein pom` and then analysed the dependency tree with maven using `mvn dependency:tree`
which shows the client-snarl, client-http and server jars are dependencies of 'annex 0.6.4'

com.complexible.annex:annex:jar:0.6.4:compile
  com.complexible.stardog:client-snarl:jar:3.0:compile
  com.complexible.stardog:client-http:jar:3.0:compile
  com.complexible.stardog:server:jar:3.0:compile

looking at the POM file for annex 0.6.4 in the local maven repository, none of these three dependencies specify
the 'type' as 'pom'. I believe maven defaults to using jar if the type is not specified, hence the error.

I also have a scala sbt project which successfully resolves the server dependency with these settings:

resolvers += "stardog-public" at "http://maven.stardog.com"
libraryDependencies ++= Seq("com.complexible.stardog" % "server" % "3.0",
                            "com.complexible.stardog.sesame" % "stardog-sesame-core" % "3.0")

I believe sbt uses ivy for resolving dependencies so I don't know if my clojure issue is due to an error I've made,
a problem with the annex pom, or a problem with leiningen or maven dependency resolution.

I'm using maven 3.3.1

Thanks

Fernando Hernandez

unread,
Apr 3, 2015, 10:10:11 AM4/3/15
to sta...@clarkparsia.com
Hi,

On Fri, Apr 3, 2015 at 7:56 AM, <l...@swirrl.com> wrote:
Hi,

I'm recieving the same error when trying to add a server 3.0 dependency in a leiningen project.clj file. I've added the
stardog repository and an entry for the POM dependency:

:repositories [["stardog-public" {:url "http://maven.stardog.com"}]]
:dependencies [[com.complexible.stardog/server "3.0" :extension "pom"]]

however executing `lein deps` results in the following errors:

Could not find artifact com.complexible.stardog:client-snarl:jar:3.0 in stardog-public (http://maven.stardog.com)
Could not find artifact com.complexible.stardog:client-http:jar:3.0 in stardog-public (http://maven.stardog.com)
Could not find artifact com.complexible.stardog:server:jar:3.0 in stardog-public (http://maven.stardog.com)

I dumped the dependencies with `lein pom` and then analysed the dependency tree with maven using `mvn dependency:tree`
which shows the client-snarl, client-http and server jars are dependencies of 'annex 0.6.4'

com.complexible.annex:annex:jar:0.6.4:compile
  com.complexible.stardog:client-snarl:jar:3.0:compile
  com.complexible.stardog:client-http:jar:3.0:compile
  com.complexible.stardog:server:jar:3.0:compile

looking at the POM file for annex 0.6.4 in the local maven repository, none of these three dependencies specify
the 'type' as 'pom'. I believe maven defaults to using jar if the type is not specified, hence the error.

You're right, the annex artifact (which server depends on) is adding the bogus dependencies which other build systems are able to handle but not maven. We'll fix this for the next release.

In the mean time, I put a minimal example with a workaround on github [1] so that you can still use the server dependencies with maven.


Cheers,
Fernando

Eric Steele

unread,
Apr 3, 2015, 3:08:39 PM4/3/15
to sta...@clarkparsia.com
I am using 3.2.5 on OSX.

--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en



--
Eric Steele

Eric Steele

unread,
Apr 3, 2015, 3:10:50 PM4/3/15
to sta...@clarkparsia.com
Ah, that looks like it should work. I will try it out.
--
Eric Steele

mja...@clearbluewater.com.au

unread,
Jun 5, 2015, 8:54:19 PM6/5/15
to sta...@clarkparsia.com, fern...@complexible.com
Hi Fernando,
I'd like to follow up on this.

Using Maven 3.2.1 if I use your minimal POM everything builds successfully, but as soon as I add stardog-spring

<dependency>

    <groupId>com.complexible.stardog</groupId>

    <artifactId>stardog-spring</artifactId>

    <version>3.0.0</version>

  </dependency>


I get the following error -


Failed to execute goal on project stardog: Could not resolve dependencies for project stardog-maven:stardog:jar:0.0.1-SNAPSHOT: The following artifacts could not be resolved: com.complexible.stardog:client-snarl:jar:3.0, com.complexible.stardog:client-http:jar:3.0: Could not find artifact com.complexible.stardog:client-snarl:jar:3.0 in stardog-public (http://maven.stardog.com) -> [Help 1]


Do I need to add something further?


cheers

Mark

Al Baker

unread,
Jun 5, 2015, 9:11:18 PM6/5/15
to Stardog, fern...@complexible.com
Hi Mark,

The stardog-spring 3.0 pom had a similar issue.  I've updated Fernando's gist with a version that works with 3.1:


Let me know if that works for you.

Cheers,
Al



Mark James

unread,
Jun 5, 2015, 10:24:52 PM6/5/15
to sta...@clarkparsia.com, fern...@complexible.com
Thanks Al!

That worked.

cheers
Mark
--
Mark James | Clear Blue Water Pty Ltd
+61 433 922 944 | mja...@clearbluewater.com.au

For video tutorials and more check out the Clear Blue Water YouTube Channel

charbe...@gmail.com

unread,
Oct 9, 2015, 4:13:20 PM10/9/15
to Stardog, ericr...@gmail.com
Hi all,

I am trying to use the client-SNARL as well,


But dependencies are not found.

any hints?

Thank you for your help.
Charbel

Fernando Hernandez

unread,
Oct 9, 2015, 4:39:35 PM10/9/15
to sta...@clarkparsia.com
On Fri, Oct 9, 2015 at 4:13 PM, <charbe...@gmail.com> wrote:
Hi all,


That POM works for me. What specific error are you getting?

Cheers,
Fernando

charbe...@gmail.com

unread,
Oct 26, 2015, 8:31:06 AM10/26/15
to Stardog, fern...@complexible.com
Hi Fernando,

I am having this message:

Failure to find com.complexible.stardog:server:jar:4.0-RC2 in http://maven.stardog.com

Here is my pom
<modelVersion>4.0.0</modelVersion>
<groupId>semantic.store.sd</groupId>
<artifactId>stardog-client</artifactId>
<version>0.0.1-SNAPSHOT</version>

<dependencies>
<dependency>
<groupId>com.complexible.stardog</groupId>
<artifactId>client-http</artifactId>
<version>4.0-RC2</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.complexible.stardog</groupId>
<artifactId>client-snarl</artifactId>
<version>4.0-RC2</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.complexible.stardog</groupId>
<artifactId>server</artifactId>
<version>4.0-RC2</version>
<exclusions>
<exclusion>
<groupId>com.complexible</groupId>
<artifactId>annex</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.complexible.stardog</groupId>
<artifactId>stardog-spring</artifactId>
<version>4.0-RC2</version>
<exclusions>

<exclusion>
<groupId>org.openrdf.sesame</groupId>
<artifactId>sesame</artifactId>
</exclusion>
<exclusion>
<groupId>com.complexible.stardog</groupId>
<artifactId>client-http</artifactId>
</exclusion>
<exclusion>
<groupId>com.complexible.stardog</groupId>
<artifactId>client-snarl</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.complexible.annex</groupId>
<artifactId>annex</artifactId>
<version>0.6.4</version>
<exclusions>
<exclusion>
<groupId>com.complexible.stardog</groupId>
<artifactId>server</artifactId>
</exclusion>
<exclusion>
<groupId>com.complexible.stardog</groupId>
<artifactId>client-http</artifactId>
</exclusion>
<exclusion>
<groupId>com.complexible.stardog</groupId>
<artifactId>client-snarl</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>

Thanks,
ck

Michael Grove

unread,
Oct 26, 2015, 8:36:47 AM10/26/15
to stardog
I think it's because you're missing the pom packaging type [1] for this dependency.

Cheers,

Mike

 

--

charbe...@gmail.com

unread,
Dec 16, 2015, 2:52:08 PM12/16/15
to Stardog
Thank you, it compiles now
Reply all
Reply to author
Forward
0 new messages