Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/317.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 Intellij IDEA maven:can';t解析符号“;背型;_Java_Xml_Maven_Intellij Idea_Apache Storm - Fatal编程技术网

Java Intellij IDEA maven:can';t解析符号“;背型;

Java Intellij IDEA maven:can';t解析符号“;背型;,java,xml,maven,intellij-idea,apache-storm,Java,Xml,Maven,Intellij Idea,Apache Storm,我正在用卡夫卡的输入在storm上写一个字数。当我在IDEA上做项目时,我发现maven未能下载我需要的所有类(实际上是大多数类)。 xml是 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sch

我正在用卡夫卡的输入在storm上写一个字数。当我在IDEA上做项目时,我发现maven未能下载我需要的所有类(实际上是大多数类)。 xml是

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>stormkafka_wordcount</groupId>
    <artifactId>stormkafka_wordcount</artifactId>
    <version>1.0-SNAPSHOT</version>
    <properties>
        <project.building.sourceEncoding>UTF-8</project.building.sourceEncoding>
        <java.version>1.7</java.version>
        <kafka.version>0.10.1.0</kafka.version>
        <storm.version>1.0.2</storm.version>
        <scala.version>2.11</scala.version>
        <hadoop.version>2.7.3</hadoop.version>
        <hbase.version>1.2.3</hbase.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.apache.storm</groupId>
            <artifactId>storm</artifactId>
            <version>${storm.version}</version>
        </dependency>

        <dependency>
        <groupId>org.apache.storm</groupId>
        <artifactId>storm-core</artifactId>
        <version>${storm.version}</version>
        <scope>provided</scope>
        </dependency>

    <dependency>
        <groupId>org.apache.kafka</groupId>
        <artifactId>kafka_${scala.version}</artifactId>
        <version>0.10.1.0</version>
        <exclusions>
            <exclusion>
                <groupId>org.apache.zookeeper</groupId>
                <artifactId>zookeeper</artifactId>
            </exclusion>
            <exclusion>
                <groupId>log4j</groupId>
                <artifactId>log4j</artifactId>
            </exclusion>
        </exclusions>
    </dependency>

    <dependency>
        <groupId>org.apache.storm</groupId>
        <artifactId>storm-kafka</artifactId>
        <version>${storm.version}</version>
    </dependency>
    </dependencies>
</project>
我不使用虚拟机,所有东西都直接安装在我的OS X Yosemite 10.10.5中。 在使用IDEA之前,我已经运行过Hadoop。一切都很好。所以我认为maven应该正确安装


谢谢大家!

风暴1.0之后,
backtype.storm
更改为
org.apache.storm
。 尝试将所有
backtype.storm
替换为
org.apache.storm
。 像


storm 1.0之后,
backtype.storm
更改为
org.apache.storm
。 尝试将所有
backtype.storm
替换为
org.apache.storm
。 像


如何找到这些信息?我搜索了很长时间,没有看到相关信息。非常感谢。顺便说一句,storm.kafka也不可用,我已经测试过了。还需要将其更改为
org.apache.storm.kafka.StringScheme
如何查找这些信息?我搜索了很长时间,没有看到相关信息。非常感谢。顺便说一句,storm.kafka也不可用,我已经测试过了。还需要将其更改为
org.apache.storm.kafka.StringScheme
import storm.kafka.StringScheme;
import storm.kafka.ZkHosts;
import backtype.storm.Config;
import backtype.storm.LocalCluster;
import backtype.storm.StormSubmitter;
import storm.kafka.StringScheme;
import storm.kafka.ZkHosts;
import org.apache.storm.Config;
import org.apache.storm.LocalCluster;
import org.apache.storm.StormSubmitter;