未解决的参考设置泰坦

时间:2016-10-12 12:06:18

标签: java gradle titan

我想使用Cassandra和Java设置Titan。

我使用以下方法将库导入我的项目:

<div id="gnav" class="col-xs-9 col-sm-9 col-md-9 col-lg-9">
    <nav class="navbar navbar-default" id="" >
        <div class="collapse navbar-collapse" id="">
            <ul class="nav navbar-nav">

我从以下位置复制了源代码示例:

https://github.com/thinkaurelius/titan/blob/master/titan-core/src/main/java/com/thinkaurelius/titan/example/GraphOfTheGodsFactory.java

但以下事情并不奏效:

compile group: 'com.thinkaurelius.titan', name: 'titan-cassandra', version: '1.0.0'

不存在

以及以下抛出错误,因为他无法解析引用:

import com.thinkaurelius.titan.core.TitanKey;
import com.thinkaurelius.titan.core.attribute.Geoshape;
import static com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration.INDEX_BACKEND_KEY;
import static com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration.STORAGE_DIRECTORY_KEY;

1 个答案:

答案 0 :(得分:2)

您的GraphOfTheGodsFactory.java版本不匹配。您应该引用标记1.0.0而不是master

https://github.com/thinkaurelius/titan/blob/1.0.0/titan-core/src/main/java/com/thinkaurelius/titan/example/GraphOfTheGodsFactory.java