老师,帮我看看有写错的地方吗?

老师,帮我看看有写错的地方吗?

<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">

  <modelVersion>4.0.0</modelVersion>

  <groupId>com.imooc</groupId>

  <artifactId>maven-first</artifactId>

  <version>1.0.0-RELEASE</version>

  <repositories>

    <repository>

   <!-- 创建私服地址 -->

    <id>aliyun</id>

    <name>aliyun</name>

    <url>

https://maven.aliyun.com/repository/public</url>

    </repository>

  

  </repositories>

   <dependencies>

      <dependency>

      <groupId>com.belerweb</groupId>

       <artifactId>pinyin4j</artifactId>

        <version>2.5.1</version>

     </dependency>

  

  </dependencies>

  <build>

  <!-- 配置插件 -->

    <plugins>

       <plugin>

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

          <artifactId>maven-assembly-plugin</artifactId>

          <version>2.5.5</version>

          <configuration>

               <archive>

                  <manifest>

                     <mainClass>com.imooc.maven.Pinyin</mainClass>

                  

                  </manifest>

               

               </archive> 

               <descriptorRefs>

                  <descriptorRef>jar-with-dependencies</descriptorRef>

               

               </descriptorRefs>     

          </configuration>

       </plugin>

    

    

    </plugins>

  </build>

</project>


正在回答 回答被采纳积分+1

登陆购买课程后可参与讨论,去登陆

1回答
提问者 MAYxDAY 2020-04-08 14:22:07

[INFO] Scanning for projects...

[INFO] Downloading from : https://repo.maven.apache.org/maven2/org/agache/maven/plugins/maven-assembly-plugin/2.5.5/maven-assembly-plugin-2.5.5.pom

[WARNING] Failed to retrieve plugin descriptor for org.agache.maven.plugins:maven-assembly-plugin:2.5.5: Plugin org.agache.maven.plugins:maven-assembly-plugin:2.5.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.agache.maven.plugins:maven-assembly-plugin:jar:2.5.5

[INFO] Downloading from : https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom

[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-clean-plugin:2.5: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5

[INFO] Downloading from : https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.4/maven-install-plugin-2.4.pom

一直是这个状态

  • 同学你好,应该是插件没有下载好,建议同学去maven配置的本地仓库中,看一下,是否有下载这个maven-clean-plugin:jar:2.5 ,如果有,可以删除后重新刷新一下试试。 祝学习愉快。
    2020-04-08 19:18:20
问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师