Maven: Multiple class with the same path implemented in different jar

前端 未结 3 1446
别那么骄傲
别那么骄傲 2021-01-12 20:47

I\'m running into trouble with having multiple class with the same path (i.e. same name, same package!!!). For some reason, gwt-dev comes with its own version of org.a

3条回答
  •  半阙折子戏
    2021-01-12 21:05

    To know which jar is causing you problems: run Maven with -X flag.

    To setup your POM to exclude relevant jar(s):

    
      artifactId1,artifactId2,...
    
    

    ...

     
        org.apache.maven.plugins
        maven-dependency-plugin
        
          
            copy-dependencies
            package
            
              copy-dependencies
            
            
              ${your.lib.for.example}
              true
              true
              false
              ${yourproject.deployment.excludes}
              compile
            
          
        
      
    

提交回复
热议问题