-
我一直使用Maven管理项目,但是升级2.0-RC以后出现了一些问题: 为了防止是网络问题,我用了美国VPS <?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>com.example</groupId>
<artifactId>test</artifactId>
<version>0.0.0</version>
<packaging>jar</packaging>
<properties>
<java.version>11</java.version>
<kotlin.version>1.4.21</kotlin.version>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.source>11</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<repositories>
<repository>
<id>jcenter</id>
<url>https://jcenter.bintray.com/</url>
</repository>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2/</url>
</repository>
<repository>
<id>kotlin-eap</id>
<url>https://dl.bintray.com/kotlin/kotlin-eap</url>
</repository>
<repository>
<id>kotlin-x</id>
<url>https://kotlin.bintray.com/kotlinx</url>
</repository>
<repository>
<id>google</id>
<url>https://maven.google.com</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>net.mamoe</groupId>
<artifactId>mirai-core-api</artifactId>
<version>2.0-RC</version>
</dependency>
<dependency>
<groupId>net.mamoe</groupId>
<artifactId>mirai-core</artifactId>
<version>2.0-RC</version>
</dependency>
</dependencies>
</project> 这是测试pom文件,会发生以下错误
我觉得这个问题应该是Maven的,因为使用gradle管理项目就没有问题,使用了同样的
因为网络原因,我真的不想用Gradle,各位有没有什么办法? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
请阅读 https://github.com/mamoe/mirai/blob/dev/docs/ConfiguringProjects.md#b-%E4%BD%BF%E7%94%A8-maven |
Beta Was this translation helpful? Give feedback.
-
这有可能是没有安装 Kotlin 插件而无法解决依赖, 查看 https://github.com/mamoe/mirai/blob/dev/docs/ConfiguringProjects.md#3-%E6%B7%BB%E5%8A%A0-kotlin-%E4%BE%9D%E8%B5%96 |
Beta Was this translation helpful? Give feedback.
请阅读 https://github.com/mamoe/mirai/blob/dev/docs/ConfiguringProjects.md#b-%E4%BD%BF%E7%94%A8-maven