# Cannot import "com.complexible.stardog.Stardog" in my project with maven

**URL:** <https://community.stardog.com/t/cannot-import-com-complexible-stardog-stardog-in-my-project-with-maven/714>\
**Category:** Support\
**Created:** [December 1, 2017, 2:15pm UTC](https://community.stardog.com/t/cannot-import-com-complexible-stardog-stardog-in-my-project-with-maven/714 "2017-12-01T14:15:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![leop0p](https://avatars.discourse-cdn.com/v4/letter/l/82dd89/32.png) [@leop0p](https://community.stardog.com/u/leop0p)\
**Post date:** [December 1, 2017, 2:15pm UTC](https://community.stardog.com/t/cannot-import-com-complexible-stardog-stardog-in-my-project-with-maven/714/1 "2017-12-01T14:15:39Z")

</div>

Hello,

I'm trying to reproduce the example from [ConnectionAPIExample.java](https://github.com/stardog-union/stardog-examples/blob/develop/examples/api/main/src/com/complexible/stardog/examples/api/ConnectionAPIExample.java) with Stardog version 5.0.4

But I am unable to import com.complexible.stardog.Stardog. sonce version 4 it was in the `client-snarl` dependency but it is no more available in version 5.

Here is my maven pom.xml:

```
  <repositories>
    <repository>
        <id>stardog-public</id>
        <url>http://maven.stardog.com</url>
    </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>com.complexible.stardog</groupId>
        <artifactId>server</artifactId>
        <version>5.0.4</version>
        <type>pom</type>
    </dependency>
    <dependency>
        <groupId>com.complexible.stardog</groupId>
        <artifactId>client-http</artifactId>
        <version>5.0.4</version>
        <type>pom</type>
    </dependency>
</dependencies>

```

How can I proceed to run a server with  
` Stardog aStardog = Stardog.builder().create();`

Best regards,  
Leo

---

<div class="post-metadata">

**Author:** ![stephen](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/stephen/32/27_2.png) [@stephen](https://community.stardog.com/u/stephen)\
**Post date:** [December 1, 2017, 2:30pm UTC](https://community.stardog.com/t/cannot-import-com-complexible-stardog-stardog-in-my-project-with-maven/714/2 "2017-12-01T14:30:11Z")

</div>

According to the [example's build.gradle](https://github.com/stardog-union/stardog-examples/blob/develop/examples/api/build.gradle), it looks like you might be looking for the `client-embedded` dependency.

---

<div class="post-metadata">

**Author:** ![leop0p](https://avatars.discourse-cdn.com/v4/letter/l/82dd89/32.png) [@leop0p](https://community.stardog.com/u/leop0p)\
**Post date:** [December 1, 2017, 3:00pm UTC](https://community.stardog.com/t/cannot-import-com-complexible-stardog-stardog-in-my-project-with-maven/714/3 "2017-12-01T15:00:04Z")

</div>

Thanks a lot Stephen,

I just added the missing dependency and also passed the version to 5.0.4  
(I was actually using 5.0.1 where `com.complexible.stardog.Stardog` is missing. This was the real cause of my issue)

Leo

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [December 15, 2017, 3:00pm UTC](https://community.stardog.com/t/cannot-import-com-complexible-stardog-stardog-in-my-project-with-maven/714/4 "2017-12-15T15:00:17Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
