本文主要是介绍ivy extends--ivy间的依赖,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
common-ivy.xml
<?xml-stylesheet type="text/xsl" href="http://repository.xyz.com/xsl/version-doc.xsl"?>
<ivy-module version="2.0" xmlns:e="http://ant.apache.org/ivy/extra"><info organisation="XYZ" module="CommonDependencies" revision="1.0.0" /><configurations defaultconfmapping="test->test(*);compile->compile(*);package->package(*)"><conf name="test" description="Test Time dependencies"/><conf name="compile" description="Build Time dependencies"/><conf name="package" description="Distributable dependencies" /></configurations><dependencies><dependency org="apache" name="commons-pool" rev="1.5.5" conf="compile" /></dependencies>
</ivy-module>
ivy.xml依赖common-ivy.xml
<?xml-stylesheet type="text/xsl" href="http://repository.xyz.com/xsl/version-doc.xsl"?>
<ivy-module version="2.0" xmlns:e="http://ant.apache.org/ivy/extra"><info module="ModuleTest" ><extends extendType="all" organisation="XYZ" module="CommonDependencies" revision="1.0.0" location="common-ivy.xml"/></info><dependencies><dependency org="junit" name="junit" rev="4.8.2" conf="compile,test"/></dependencies>
</ivy-module>
http://ant.apache.org/ivy/history/latest-milestone/ivyfile/extends.html
http://stackoverflow.com/questions/25144464/ivy-extends-via-ivyresolve
这篇关于ivy extends--ivy间的依赖的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!