我试图从Spring启动项目中加载的Spring开始,但不知道为什么它不想工作。我的pom.xml是这样的:
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId>
<version>1.2.6.RELEASE</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
在IntelliJ Idea中,它显示为未找到的弹簧加载版本和红色版本。我没有在pom.xml中更改任何其他内容。我应该以不同的方式添加它吗?
发布于 2017-07-17 18:39:43
我试过了。IntelliJ IDEA 2017.1.5不会安装到插件中声明的本地存储库依赖项。因此,您可以从内置的Maven工具(View->Tool Windows->Maven Projects)或从命令行运行:
mvn install
然后使用内置的maven工具重新导入依赖项。
https://stackoverflow.com/questions/42885773
复制