Maven安装Klaxon
我只是在学习Kotlin,我不能在我的Maven项目上安装库Klaxon。 GitHub: 我将设置从复制到我的Maven安装Klaxon,maven,kotlin,installation,klaxon,Maven,Kotlin,Installation,Klaxon,我只是在学习Kotlin,我不能在我的Maven项目上安装库Klaxon。 GitHub: 我将设置从复制到我的pom.xml,但它不起作用。 我尝试将其复制并粘贴到pom.xml: <!-- https://mvnrepository.com/artifact/com.beust/klaxon --> <dependency> <groupId>com.beust</groupId> <artifactId>klaxo
pom.xml
,但它不起作用。
我尝试将其复制并粘贴到pom.xml
:
<!-- https://mvnrepository.com/artifact/com.beust/klaxon -->
<dependency>
<groupId>com.beust</groupId>
<artifactId>klaxon</artifactId>
<version>4.0.2</version>
</dependency>
com.beust
克拉克森
4.0.2
但它不起作用
有人能帮我安装这个库吗?或者只是给我一个链接,了解如何在我的Maven项目中安装任何库?
我找不到这些信息,也许我写不出正确的谷歌搜索
pom.xml:
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>FORMS</groupId>
<artifactId>FORMS</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Stemmer Stemmer</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<kotlin.version>1.3.21</kotlin.version>
<kotlin.code.style>official</kotlin.code.style>
<junit.version>4.12</junit.version>
</properties>
<profiles>
<profile>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>bintray-cbeust-maven</id>
<name>bintray</name>
<url>https://dl.bintray.com/cbeust/maven</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>bintray-cbeust-maven</id>
<name>bintray-plugins</name>
<url>https://dl.bintray.com/cbeust/maven</url>
</pluginRepository>
</pluginRepositories>
<id>bintray</id>
</profile>
</profiles>
<dependencies>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
<version>${kotlin.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.beust/klaxon -->
<dependency>
<groupId>com.beust</groupId>
<artifactId>klaxon</artifactId>
<version>5.0.5</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-test-junit</artifactId>
<version>${kotlin.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<sourceDirectory>src/main/kotlin</sourceDirectory>
<testSourceDirectory>src/test/kotlin</testSourceDirectory>
<plugins>
<plugin>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-plugin</artifactId>
<version>${kotlin.version}</version>
<executions>
<execution>
<id>compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>test-compile</id>
<phase>test-compile</phase>
<goals>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
4.0.0
形式
形式
1.0-快照
罐子
茎秆切割机
UTF-8
1.3.21
官方的
4.12
假的
宾斯特马文酒店
垃圾箱
https://dl.bintray.com/cbeust/maven
假的
宾斯特马文酒店
托盘插件
https://dl.bintray.com/cbeust/maven
垃圾箱
org.jetbrains.kotlin
科特林标准实验室
${kotlin.version}
com.beust
克拉克森
5.0.5
org.jetbrains.kotlin
kotlin测试junit
${kotlin.version}
测试
朱尼特
朱尼特
${junit.version}
测试
src/main/kotlin
src/test/kotlin
org.jetbrains.kotlin
kotlin maven插件
${kotlin.version}
编译
编译
编译
测试编译
测试编译
测试编译
依赖项必须位于
标记内。查看Maven POM的结构以了解更多信息
谢谢你的帮助!我的同志们帮了我的忙:我必须登录bintray.com,点击settings.xml并将其下载到pom.xml目录中的项目中,因为bintray.com的政治原因到目前为止,你能给我们看看你的
pom.xml
吗?当然,这是我现在的问题)看起来不错!到底是什么不起作用?mvn clean-verify
说什么?你会犯哪些错误?谢谢!很抱歉,我不知道如何输入命令“mvn clean verify”?很抱歉,我只使用IDE。但是Win10I上的want try控制台将其添加到了这个标记中。谢谢你的链接!