Ivy appears to fetch javadoc jars only

后端 未结 1 457
青春惊慌失措
青春惊慌失措 2021-01-03 05:00

I\'m using Ivy on my project, with the Ivy Eclipse plugin.

It appears that certain jars which are downloaded and added to my project are the javadoc jars, not the ja

1条回答
  •  清酒与你
    2021-01-03 05:55

    Some open source modules include optional java doc jars. To remove them add a configuration mapping to each of your dependencies:

       
    

    The default configuration in ivy is equivalent to the the compile scope in a maven module. This is how the optional libraries can be automatically omitted. (Check their POMs).

    A better approach is to declare your own configurations and the default mapping as follows:

    
       
       
    
    

    Then in your ivy file you only need to declare the non-standard configurations:

    
        
        
        
        
    
    

    In this case we only want the 3 test libraries to appear on the test configuration.

    Still confused? The magic of ivy configurations is when you use them to manage your build's class path

      
        
    
        
        
      
    

    This is what Maven is doing when you declare a scope tag on a dependency, for example:

    
        junit
        junit
        4.8.2
        test
    
    

    The scopes in Maven are fixed. In ivy you can have as many as you need.

    0 讨论(0)
提交回复
热议问题