javadoc-plugin:3.2.0'未找到

zc0qhyus  于 2021-06-26  发布在  Java
关注(0)|答案(0)|浏览(384)

我目前正在制作一个插口插件,为了构建这个插件,我使用了生命周期包build。我正在制作的插件实际上是一个api,所以我很自然地希望它包含javadocs。问题是,我已经制作了javadocs,我知道我需要在我的构建和报告中加入maven javadoc插件。然而,每当我重新加载maven更改时,我在构建saying*插件时就会出错 org.apache.maven.plugins:maven-javadoc-plugin:3.2.0' not found . 这是非常不幸的,因为我已经在下面的两个插件中查找了关于这个插件的文档 <reporting> 以及 <build> . 我真的认为这可能只是我的问题 pom.xml 但我不确定。这是我的pom(出于隐私原因,我只向您展示pom的各个部分):

<properties>
    <java.version>1.8</java.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<reporting>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>3.2.0</version>
        </plugin>
    </plugins>
</reporting>

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>3.2.0</version>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.8.1</version>
            <configuration>
                <source>${java.version}</source>
                <target>${java.version}</target>
            </configuration>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-shade-plugin</artifactId>
            <version>3.2.4</version>
            <executions>
                <execution>
                    <phase>package</phase>
                    <goals>
                        <goal>shade</goal>
                    </goals>
                    <configuration>
                        <createDependencyReducedPom>false</createDependencyReducedPom>
                    </configuration>
                </execution>
            </executions>
        </plugin>
    </plugins>
    <resources>
        <resource>
            <directory>src/main/resources</directory>
            <filtering>true</filtering>
        </resource>
    </resources>
</build>

<repositories>
    <repository>
        <id>spigotmc-repo</id>
        <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
    </repository>
    <repository>
        <id>sonatype</id>
        <url>https://oss.sonatype.org/content/groups/public/</url>
    </repository>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>org.spigotmc</groupId>
        <artifactId>spigot-api</artifactId>
        <version>1.16.4-R0.1-SNAPSHOT</version>
        <scope>provided</scope>
    </dependency>
</dependencies>

如果有人能帮我那就太好了。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题