zoukankan      html  css  js  c++  java
  • 开发常见错误之 :Missing artifact com.sun:tools:jar 1.7.0

    Missing artifact com.sun:tools:jar 1.7.0

    解决办法一:

    手动配置pom.xml,添加一个dependency如下:

    <dependency>
    <groupId>com.sun</groupId>
    <artifactId>tools</artifactId>
    <scope>system</scope>
    <systemPath>${JAVA_HOME}/../lib/tools.jar</systemPath>
    </dependency>

    即可!

    如果办法不能解决,试用第二种方法。

    解决办法二:

    首先,查看错误列表windows->Show View->Problems,在有以上问题的同时,还会出现该错误。
    The Container 'Maven Dependencies' references non existing library 'C:Documents and SettingsDELL.m2 epositorycomsun ools1.7.0 ools-1.7.0.jar'
    大致说:找不到该tools-1.7.0.jar。

    所以将C:Program FilesJavajdk1.7.0_10lib目录下的tools.jar拷贝到C:Documents and SettingsDELL.m2 epositorycomsun ools1.7.0目录下,并将tools.jar改名为tools-1.7.0.jar,并在pom.xml中作如下配置:

    <dependency>
    <groupId>com.sun</groupId>
    <artifactId>tools</artifactId>
    <version>1.7.0</version>
    </dependency>
  • 相关阅读:
    Python的递归深度问题
    Python之多进程
    Python之多线程
    Git的基本操作
    ref与out区别
    Numpy基本操作
    面向对象中有哪些双下线方法及应用场景
    上下文管理
    Local与LocalStack
    基于列表实现栈
  • 原文地址:https://www.cnblogs.com/sunfie/p/7258461.html
Copyright © 2011-2022 走看看