Maven Support in 3.0

1 view
Skip to first unread message

Tze-John Tang

unread,
Mar 24, 2015, 4:46:45 PM3/24/15
to sta...@clarkparsia.com
Is there any place to browse what the available artifacts are so that I can include them in my project? The maven.stardog.com site does not allow browsing, and I don't see any examples of any pom files where I can find the artifact names.

Thanks,

-tj

Kendall Clark

unread,
Mar 24, 2015, 4:50:50 PM3/24/15
to stardog
Do you mean the table of artifact's in the Using Maven section of the docs? http://docs.stardog.com/#_using_maven

Cheers,
Kendall

--
-- --
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

Tze-John Tang

unread,
Mar 24, 2015, 10:41:14 PM3/24/15
to sta...@clarkparsia.com
Thanks.  The problem I had is that I had the version number wrong.  I was not sure if it was 3.0.0 or 3.0.  3.0 is the correct answer. Also we use a central maven proxy that is used to proxy requests.  The problem I have now is that when using the client-snarl or client-http package. Even though the package has packaging of POM, my build is still trying to fetch client-snarl-3.0.jar or client-http-3.0.jar, and failing.

Any thoughts on this?

-tj

Tze-John Tang

unread,
Mar 24, 2015, 10:44:51 PM3/24/15
to sta...@clarkparsia.com
So it seems that it might not be able to process the existing packaging element, and defaulting to jar.

-tj

Al Baker

unread,
Mar 25, 2015, 9:02:39 AM3/25/15
to Stardog
What build tool are you using?

Al

chris....@gmail.com

unread,
Mar 25, 2015, 11:30:22 AM3/25/15
to sta...@clarkparsia.com
I was having the same problem just now. I'm using Maven as the build tool. It works if you use this:

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

Thanks,

Chris

Al Baker

unread,
Mar 25, 2015, 11:50:13 AM3/25/15
to sta...@clarkparsia.com
Yes, the client-snarl and client-http are both top level pom packaged dependencies and have no jars included with them.  For Maven and Leiningen, the application build will have to specify the type=pom, while other build tools (Gradle, sbt, etc) will not.

Al

Tze-John Tang

unread,
Mar 25, 2015, 2:09:00 PM3/25/15
to sta...@clarkparsia.com
Ok. Thanks for the advice. This works for me.

-tj

timea....@gmail.com

unread,
Mar 29, 2015, 4:45:01 PM3/29/15
to sta...@clarkparsia.com
I still have issue with using Stardog 3.0 Maven dependencies. The site seems not to work, as I am not getting any artefacts. (I did maven update to my project.)
Any idea?
Thanks,
Tm

TJ Tang

unread,
Mar 29, 2015, 9:17:34 PM3/29/15
to sta...@clarkparsia.com

Are you getting any errors? And what does your pom.xml file look like?

-tj


--
-- --
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

To unsubscribe from this group and stop receiving emails from it, send an email to stardog+u...@clarkparsia.com.

Al Baker

unread,
Mar 29, 2015, 9:21:42 PM3/29/15
to Stardog
The maven.stardog.com site may have been unavailable for part of today.  Can you retry now?

If the problem persists, can you share the relevant repositories definition from your pom.xml, or equivalent build file.

Thanks,
Al

timea....@gmail.com

unread,
Mar 30, 2015, 6:55:05 AM3/30/15
to sta...@clarkparsia.com
My pom.xml includes:

<!-- StarDog -3.0-->

 <dependency>

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

<artifactId>server</artifactId>

<version>3.0</version>

</dependency>

 <dependency>

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

<artifactId>client-http</artifactId>

<version>3.0</version>

  <type>pom</type>

</dependency>

 <dependency>

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

<artifactId>client-snarl</artifactId>

<version>3.0</version>

  <type>pom</type>

</dependency>

 <dependency>

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

<artifactId>stardog-core</artifactId>

<version>3.0</version>

</dependency>


And of course:

 <repositories>

  <repository>

     <id>stardog-public</id>

     <url>http://maven.stardog.com</url>

    </repository>

</repositories>


And the failure I'm getting is:

Downloading: http://maven.stardog.com/com/complexible/stardog/sesame/stardog-core/3.0/stardog-core-3.0.pom

Downloading: https://raw.github.com/goalhub/mvn-repo/master/com/complexible/stardog/sesame/stardog-core/3.0/stardog-core-3.0.pom

Downloading: http://repo1.maven.org/maven2/com/complexible/stardog/sesame/stardog-core/3.0/stardog-core-3.0.pom

[WARNING] The POM for com.complexible.stardog.sesame:stardog-core:jar:3.0 is missing, no dependency information available

Downloading: http://maven.stardog.com/com/complexible/stardog/server/3.0/server-3.0.jar

Downloading: http://maven.stardog.com/com/complexible/stardog/client-snarl/3.0/client-snarl-3.0.jar

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/sesame/stardog-core/3.0/stardog-core-3.0.jar

Downloading: https://raw.github.com/goalhub/mvn-repo/master/com/complexible/stardog/server/3.0/server-3.0.jar

Downloading: https://raw.github.com/goalhub/mvn-repo/master/com/complexible/stardog/client-snarl/3.0/client-snarl-3.0.jar

Downloading: https://raw.github.com/goalhub/mvn-repo/master/com/complexible/stardog/client-http/3.0/client-http-3.0.jar

Downloading: https://raw.github.com/goalhub/mvn-repo/master/com/complexible/stardog/sesame/stardog-core/3.0/stardog-core-3.0.jar

Downloading: http://repo1.maven.org/maven2/com/complexible/stardog/server/3.0/server-3.0.jar

Downloading: http://repo1.maven.org/maven2/com/complexible/stardog/client-http/3.0/client-http-3.0.jar

Downloading: http://repo1.maven.org/maven2/com/complexible/stardog/client-snarl/3.0/client-snarl-3.0.jar

Downloading: http://repo1.maven.org/maven2/com/complexible/stardog/sesame/stardog-core/3.0/stardog-core-3.0.jar

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 6.310 s

[INFO] Finished at: 2015-03-30T12:52:26+02:00

[INFO] Final Memory: 19M/226M

[INFO] ------------------------------------------------------------------------

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


Thanks,

Timea.

Tze-John Tang

unread,
Mar 30, 2015, 9:19:35 AM3/30/15
to sta...@clarkparsia.com
There was a post on a separate thread which mentioned that the artifact for the sesame stardog core should be stardog-sesame-core. Also, all of these artifacts should be of type pom. Can you try that and see how it goes?

-tj

Timi Bagosi

unread,
Mar 30, 2015, 9:35:45 AM3/30/15
to sta...@clarkparsia.com
Alright, so now my dependencies are all of type pom:

<dependency>

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

<artifactId>server</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>

 <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>stardog-sesame-core</artifactId>

<version>3.0</version>

  <type>pom</type>

</dependency>


But i'm still not getting them, and they are still red also in Eclipse.

 It looks like maven is looking for the jars anyway:

[WARNING] The POM for com.complexible.stardog:stardog-sesame-core:pom:3.0 is missing, no dependency information available

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 3.428 s

[INFO] Finished at: 2015-03-30T15:30:51+02:00

[INFO] Final Memory: 15M/227M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal on project owlrepo: Could not resolve dependencies for project ...:owlrepo:jar:1.0: The following artifacts could not be resolved: com.complexible.stardog:client-snarl:jar:3.0, com.complexible.stardog:client-http:jar:3.0, com.complexible.stardog:server:jar:3.0, com.complexible.stardog:stardog-sesame-core:pom:3.0: Failure to find com.complexible.stardog:client-snarl:jar:3.0 in http://maven.stardog.com was cached in the local repository, resolution will not be reattempted until the update interval of stardog-public has elapsed or updates are forced -> [Help 1]

Please advise,

thnx,

Timi


--

Fernando Hernandez

unread,
Mar 30, 2015, 9:43:28 AM3/30/15
to sta...@clarkparsia.com

Hi,

The artifact 'stardog-sesame-core' doesn't use POM packaging. We will update the documentation to clarify this.

Cheers,
Fernando

Timi Bagosi

unread,
Mar 31, 2015, 4:44:22 AM3/31/15
to sta...@clarkparsia.com
Alright, but as you can see it's not failing just because of that. I don't know much about maven repositories, but if there's no jar, how should it get the dependency libraries?
Thanks,
T.

--

Fernando Hernandez

unread,
Mar 31, 2015, 9:36:45 AM3/31/15
to sta...@clarkparsia.com
On Tue, Mar 31, 2015 at 4:44 AM, Timi Bagosi <timea....@gmail.com> wrote:
Alright, but as you can see it's not failing just because of that. I don't know much about maven repositories, but if there's no jar, how should it get the dependency libraries?

The artifacts 'client-snarl', 'client-http', and 'server' are pom-only artifacts, they do not contain a jar – that's why you specify the pom packaging.

Per your previous error message:

"Failure to find com.complexible.stardog:client-snarl:jar:3.0 in http://maven.stardog.com was cached in the local repository, resolution will not be reattempted until the update interval of stardog-public has elapsed or updates are forced"

Perhaps you need to clear your maven cache once you change the description of your dependencies. Also note that our maven repository is hosted on Github and they've experienced a DDoS attack for the last few days [1], which causes the access to the repository to be intermittent.
 

Cheers,
Fernando

Timi Bagosi

unread,
Apr 14, 2015, 7:06:10 AM4/14/15
to sta...@clarkparsia.com
Guys,
please help me with this. I tried everything and it still cannot find the artifact and download it. The website is always error 404 File not found (http:/maven.stardog.com), I tried mvn install, mvn dependency plugin get, the error is always could not find artefact. What am I missing?
Thanks,
Timi

Kendall Clark

unread,
Apr 14, 2015, 10:36:06 AM4/14/15
to sta...@clarkparsia.com
That site will always 404. Maven repos aren't websites.


Cheers,
Kendall

Fernando Hernandez

unread,
Apr 14, 2015, 11:32:16 AM4/14/15
to sta...@clarkparsia.com
On Tue, Apr 14, 2015 at 7:06 AM, Timi Bagosi <timea....@gmail.com> wrote:
Guys,
please help me with this. I tried everything and it still cannot find the artifact and download it. The website is always error 404 File not found (http:/maven.stardog.com), I tried mvn install, mvn dependency plugin get, the error is always could not find artefact. What am I missing?

What exactly do you have in your pom file? I already posted a sample pom file on another thread [1], which works for other people – have you tried that as well?


Cheers,
Fernando

Reply all
Reply to author
Forward
0 new messages