我正在尝试使用maven构建系统创建一个基于智能的插件。我发现用于创建插件的实际API在包com.jetbrains.intellij.idea.ideaIC
中。我已经在https://mvnrepository.com (https://mvnrepository.com/artifact/com.jetbrains.intellij.idea/ideaIC/2022.1)上搜索了这个包
我已经在我的pom.xml
中添加了一个存储库
<repositories>
<repository>
<id>intellij</id>
<name>Intellij Repository</name>
<url>https://www.jetbrains.com/intellij-repository/releases/</url>
</repository>
</repositories>
和需要的依赖项为
<dependencies>
<dependency>
<groupId>com.jetbrains.intellij.idea</groupId>
<artifactId>ideaIC</artifactId>
<version>2022.1</version>
</dependency>
</dependencies>
在Intellij IDEA中按下Reload All Maven Projects
后显示
未解决的依赖:'com.jetbrains.intellij.idea:ideaIC:jar:2022.1'
我的设置有什么问题?
- 首先确保指定版本的依赖项存在。
- 如果它存在,转到文件,点击无效缓存,确保检查清除文件系统和标记下载。然后点击Invalidate and Restart按钮,这将重新启动intellij。
- Intellij恢复后右键单击pom.xml ->maven→下载来源。这将下载所有必需的依赖项。
- 然后重新加载所有maven项目。