zoukankan      html  css  js  c++  java
  • eclipse创建maven项目时报错解决办法

    1、Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:1.1 from any of the configured repositories.

    办法:下载maven-archetype-quickstart-1.1.jar放入安装maven的lib文件夹下,在此处启动dos窗口输入命令:mvn install:install-file -DgroupId=org.apache.maven.archetypes -DartifactId=maven-archetype-quickstart -Dversion=1.1 -Dpackaging=jar -Dfile=d:maven-archetype-quickstart-1.1.jar     下划线部分是你jar包放在的位置

    2、Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile 5 6

    办法:可能1出现这个问题的主要原因是项目路径存在中文导致,因此只要将目录换成没有中文字符的就可以了.

        可能2 右击项目名-properties-project facets-tuntimes-勾选tomcat(若没有记得添加tomcat)--最后update项目

    3、java.lang.NoClassDefFoundError: org/junit/Assert

    办法:pom.xml文件中的junit的版本改为4.1即可

  • 相关阅读:
    21 情态动词
    20 动词的用法
    19 完成时/现在完成时和过去完成时的区别
    18 将来时
    17 一般过去时和过去进行时
    16 一般现在时和现在进行时
    15 There / Here be句型
    14 不定量表达法
    13 副词
    12 形容词
  • 原文地址:https://www.cnblogs.com/qinyios/p/10292679.html
Copyright © 2011-2022 走看看