Missing artifact com.sun:tools:jar:1.5.0:system

eclipse的maven插件發生Missing artifact com.sun:tools:jar:1.5.0:system錯誤java

能夠經過配置Pom文件的方式解決eclipse

<properties>  
<project.build.sourceEncoding>UTF8</project.build.sourceEncoding>  
    <java.home>C:\Program Files\Java\jdk1.6.0_25</java.home>    
 </properties>  
<profiles>    
       <profile>    
           <id>default-tools.jar</id>    
           <activation>    
               <property>    
                   <name>java.vendor</name>    
                   <value>Sun Microsystems Inc.</value>    
               </property>    
           </activation>    
           <dependencies>    
               <dependency>    
                   <groupId>com.sun</groupId>    
                   <artifactId>tools</artifactId>    
                   <version>1.5.0</version>    
                   <scope>system</scope>    
                   <systemPath>${java.home}/lib/tools.jar</systemPath>    
               </dependency>    
           </dependencies>    
       </profile>    
   </profiles>
相關文章
相關標籤/搜索