idea+maven运行storm的配置问题

教程里maven文件要添加

<dependency>
    <groupId>org.apache.storm</groupId>
    <artifactId>storm-core</artifactId>
    <version>1.2.3</version>
</dependency>

1.这个添加要加在下面两个标签中间

<dependencies>
</dependencies>

2.版本是一直变的,网址没有保留旧版本,所以会显示找不到文件
'org.apache.storm:storm-core:x.x.x’not found
需要去网站->http://storm.apache.org/releases/
比如我现在看到的是:
在这里插入图片描述
所以我的版本修改为1.2.3

3.如果还不能成功,可能因为你的是这样,要去掉<scope>那一行

<dependency>
    <groupId>org.apache.storm</groupId>
    <artifactId>storm-core</artifactId>
    <version>1.2.3</version>
    <scope>provided</scope> 
</dependency>

猜你喜欢

转载自blog.csdn.net/qq_44616044/article/details/106544516