Roh*_*wat 8 java jetbrains-ide intellij-idea
当我尝试使用 Maven 通过 Maven 构建项目时,我在 IntelliJ 中遇到了一个问题
mvn clean install
Run Code Online (Sandbox Code Playgroud)
我尝试过不同的方法,例如更改 JDK 的路径,但没有任何效果。有人可以帮我解决这个问题吗?
如果有人在 IntelliJ IDEA 中使用普通项目(没有任何构建工具,如 maven 或 gradle),那么您可以按照以下步骤Kotlin添加 jetbrain 的库:jetbrains.annotations
Project左侧面板中的模块,然后选择Open module settingsLibraries下Project settings+库区域顶部的符号并选择From Maven...org.jetbrains:annotations,然后点击其末尾的搜索图标。然后,等待下拉列表列出其可用版本。Download to:选项。OK即可完成。如果您确实需要它们,请在 pom.xml 中添加依赖项:
<!-- https://mvnrepository.com/artifact/org.jetbrains/annotations -->
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>
<version>16.0.1</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)
(https://mvnrepository.com/artifact/org.jetbrains/annotations/16.0.1)