maven使用插件报错

   <build>

        <pluginManagement>

            <plugins>

                <plugin>

                    <groupId>org.apache.maven.plugins</groupId>

                    <artifactId>maven-site-plugin</artifactId>

                    <version>3.0-bate-1</version>

                </plugin>

            </plugins>

        </pluginManagement>

        <finalName>springmaven</finalName>

    </build>

上面是插件信息,下面是当运行mvn site时包的错误,本地仓库中我已经看到有maven-site-plugin插件的jar包存在了。


[ERROR] Plugin org.apache.maven.plugins:maven-site-plugin:3.0-bate-1 or one of its dependencies could not be resolved: Failure to find org.apache.maven.plugins:maven-site-plugin:jar:3.0-bate-1 in http://10.10.13.5:8081/artifactory/plugins-release was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

[ERROR] 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

青春有我
浏览 1177回答 3
3回答

阿波罗的战车

mvn命令后面加上-U就好了

梦里花落0921

更改了版本号就好了
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java