I am creating a linebot for GitHub below, but I cannot solve it because there is an error in Maven's pom file.
https://github.com/gishi-yama/linebot-java-handson/blob/master/doc/04.md
I changed the line-bot-client version to the latest version of 2.0.0 because I got an error of 1.20.0 but I got an error Failed to read artifact descriptor for com.linecorp.bot:line-bot-api-client:jar:1.20.0
as shown in the attached image.
<?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>linebot</artifactId>
<version>0.0.1 - SNAPSHOT</version>
<packaging>jar</packaging>
<name>linebot</name>
<description>Demo project for Spring Boot</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.4.RELEASE</version>
<relativePath/><!--lookup parent from repository-->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.linecorp.bot</groupId>
<artifactId>line-bot-api-client</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>com.linecorp.bot</groupId>
<artifactId>line-bot-model</artifactId>
<version>1.20.0</version>
</dependency>
<dependency>
<groupId>com.linecorp.bot</groupId>
<artifactId>line-bot-servlet</artifactId>
<version>1.20.0</version>
</dependency>
<dependency>
<groupId>com.linecorp.bot</groupId>
<artifactId>line-bot-spring-boot</artifactId>
<version>1.20.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
I think the reason is that the following artifact (library) version remains 1.20.0
(which does not match the version of line-bot-api-client
).
line-bot-servlet
line-bot-spring-boot
# These POM files depend on line-bot-api-client
.
I think that adjusting the version (along with line-bot-model
) to 2.0.0
will eliminate the error.
This may be due to a failure to successfully download the file for some reason.
Delete the com/linecorp/bot/line-bot-api-client directory located below the local repository (~/.m2/repository
by default) and try again.
(The inconsistent version should be fixed, but I don't think it has anything to do with this message.)
© 2024 OneMinuteCode. All rights reserved.