我试图构建一个不一致的应用程序,但由于某种原因,它无法访问JDA。错误如下:
The POM for net.dv8tion:JDA:jar:3.6.2_362 is missing, no dependency information available
编辑:这是我的POM:
<?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.mycompany</groupId>
<artifactId>DiscordBot</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>net.dv8tion</groupId>
<artifactId>JDA</artifactId>
<version>3.6.2_362</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>jcenter</id>
<name>jcenter-bintray</name>
<url>http://jcenter.bintray.com</url>
</repository>
</repositories>
</project>
4条答案
按热度按时间nhjlsmyf1#
根据JDA的README,目前最新的版本是
3.6.0_362
而不是3.6.2_362
,所以您可能需要更改它。z8dt9xmd2#
下面是一个JDA maven pom文件示例
xt0899hw3#
你为什么用这么老的版本?
最新的https://github.com/DV8FromTheWorld/JDA和https://mvnrepository.com/artifact/net.dv8tion/JDA/5.0.0-alpha.3
jmo0nnb34#
enter code here