Ivy: Fetching Javadocs and Sources

后端 未结 1 1342
野性不改
野性不改 2021-01-05 08:20

I\'m fairly new to Ivy, but have gotten it to work with jar dependencies. The problem is trying to set it up, so I can fetch javadocs and sources independently of jars.

相关标签:
1条回答
  • 2021-01-05 08:54

    Okay, I think I've figured it out. I was over thinking this whole process. My <dependencies> section should look like this:

    <dependencies>
        <dependency org="commons-logging" name="commons-logging" rev="1.1.1"
            conf="javadoc->javadoc;sources->sources;compile->default"/>
    </dependencies>
    

    This maps my javadoc to Maven's javadoc and my sources to Maven's sources. When I mapped conf="sources->default", it was mapping my sources to Maven's default which is the compile dependencies.

    I can specify all the configurations in one line, and I don't need separate <artifact> entities.

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