【发布时间】:2021-03-23 08:03:28
【问题描述】:
我在 pom.xml 中添加了以下内容,基于此页面:
https://github.com/Kotlin/dokka#using-the-maven-plugin
pom.xml
<dependency>
<groupId>org.jetbrains.dokka</groupId>
<artifactId>dokka-maven-plugin</artifactId>
<version>0.9.19-dev-15</version>
</dependency>
<pluginRepositories>
<pluginRepository>
<id>jcenter</id>
<name>JCenter</name>
<url>https://jcenter.bintray.com/</url>
</pluginRepository>
</pluginRepositories>
<plugin>
<groupId>org.jetbrains.dokka</groupId>
<artifactId>dokka-maven-plugin</artifactId>
<version>0.9.19-dev-15</version>
<executions>
<execution>
<phase>pre-site</phase>
<goals>
<goal>dokka</goal>
</goals>
</execution>
</executions>
<configuration>
<dokkaPlugins>
<plugin>
<groupId>org.jetbrains.dokka</groupId>
<artifactId>kotlin-as-java-plugin</artifactId>
<version>0.9.19-dev-15</version>
</plugin>
</dokkaPlugins>
</configuration>
</plugin>
当我运行项目时,我收到以下错误:
未找到依赖项 'org.jetbrains.dokka:dokka-maven-plugin:0.9.19-dev-15'
找不到插件“org.jetbrains.dokka:dokka-maven-plugin:0.9.19-dev-15”
有人可以帮忙解决这个配置吗?提前致谢。
【问题讨论】:
标签: maven intellij-idea kotlin-dokka