Maven 3 Artifact problem

后端 未结 9 1441
旧巷少年郎
旧巷少年郎 2020-12-06 04:14

I made a new struts project in eclipse using the struts2-archtype-starter.

A few errors where in my project already before doing anything. Solved most of them but th

9条回答
  •  时光取名叫无心
    2020-12-06 04:52

    You can't use tools.jar from a repository.

    Sadly, something in your dependency tree thinks that you can. So, you have to use an 'excludes' to get rid of the existing dependency, and then replace it with the following.

    If you make the version in the below match that in the error message, you might not need the 'excludes'.

    You need:

      
        
          default-tools.jar
          
            
              java.vendor
              Sun Microsystems Inc.
            
          
          
            
              com.sun
              tools
              whatever
              system
              ${java.home}/../lib/tools.jar
            
          
        
    

提交回复
热议问题