Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/315.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java在Inteliji中找不到包_Java_Maven - Fatal编程技术网

Java在Inteliji中找不到包

Java在Inteliji中找不到包,java,maven,Java,Maven,我在两个不同的模块中使用并发树库。当我尝试构建项目(我使用buck构建项目)时,第二个模块给了我以下错误: error: package com.googlecode.concurrenttrees.radixinverted does not exist import com.googlecode.concurrenttrees.radixinverted.ConcurrentInvertedRadixTree; error: package com.googlecode.concurren

我在两个不同的模块中使用并发树库。当我尝试构建项目(我使用buck构建项目)时,第二个模块给了我以下错误:

error: package com.googlecode.concurrenttrees.radixinverted does not exist
import com.googlecode.concurrenttrees.radixinverted.ConcurrentInvertedRadixTree;

error: package com.googlecode.concurrenttrees.radixinverted does not exist
我检查了之前关于如何导入依赖项的所有文章,并发树maven库已经成功地添加到模块中,并且它在一个类中检测其所有函数。我尝试了你认为的一切,比如重新启动并使缓存失效,打开一个新项目,等等,但这些都不起作用

当我将代码移到第一个模块下时,它编译起来没有任何问题,但这不是我要寻找的解决方案

http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0

<parent>
    <groupId>org.onosproject</groupId>
    <artifactId>onos-incubator</artifactId>
    <version>1.10.0-SNAPSHOT</version>
</parent>

<artifactId>onos-incubator-api</artifactId>
<packaging>bundle</packaging>

<description>ONOS incubating core API</description>

<dependencies>
     <dependency>
        <groupId>com.googlecode.concurrent-trees</groupId>
        <artifactId>concurrent-trees</artifactId>
        <version>2.6.0</version>
        <scope>compile</scope>
    </dependency>
    <dependency>
        <groupId>com.google.guava</groupId>
        <artifactId>guava-testlib</artifactId>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.easymock</groupId>
        <artifactId>easymock</artifactId>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.apache.felix</groupId>
        <artifactId>org.apache.felix.scr.annotations</artifactId>
        <scope>compile</scope>
    </dependency>
    <dependency>
        <groupId>org.testng</groupId>
        <artifactId>testng</artifactId>
        <version>RELEASE</version>
    </dependency>
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <scope>compile</scope>
    </dependency>

</dependencies>

org.onosproject
onos培养箱
1.10.0-快照
onos培养箱api
捆
ONOS孵化核心API
com.googlecode.concurrent-trees
并发树
2.6.0
编译
番石榴
番石榴
测试
org.easymock
轻松的
测试
org.apache.felix
org.apache.felix.scr.annotations
编译
org.testng
testng
释放
朱尼特
朱尼特
编译


当我运行mvn clean install时,它不会生成任何错误,但当我尝试使用buck构建项目时,它会生成错误

显示您的POM文件,以便我们了解您的配置。我正在ONOS下开发一个框架,这是一个网络操作系统。我在其中一个模块下定义了一个包,以包含我的代码。配置该模块的关键是:我的pom文件太长了。您发布了答案,请回答您的问题。如果太长,请制作一个com.googlecode.concurrent-trees concurrent trees 2.6.0编译器来显示您的pom文件,以便我们了解您的配置。我正在ONOS下开发一个框架,它是一个网络操作系统。我在其中一个模块下定义了一个包来包含我的代码。该模块的配置是:我的pom文件太长。您发布了答案,请回答您的问题。如果太长,请编译com.googlecode.concurrent-trees concurrent trees 2.6.0