小箭头是什么?在常春藤依赖项中做什么? [英] what does the little arrow -> do in the ivy dependency section?

查看:71
本文介绍了小箭头是什么?在常春藤依赖项中做什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是常春藤,而我工作的公司有一些有趣的常春藤和蚂蚁教程.

i'm using ivy and the firm i work at has a few fun little ivy and ant tutorials.

在依赖项部分中使用时,每个教程都有助于完全绕过常春藤构建xml文件中箭头的作用.

Each tutorial helpfully completely skirts around what the arrow does in an ivy build xml file, when used in the dependencies section.

因此,鉴于此设置:

<configurations>
      <conf name = "runtime" />
      <conf name = "build-tests" extends="runtime" />
   </configurations>
   ...
   <dependencies>
        ...
        <dependency org="blah" name="junit" rev="default" conf="build-tests->runtime"/>
        <dependency org="blahblah" name="xmlutil" rev="default" conf="build-tests->testing"/>
        <dependency org="blahblahblah" name="slf4j" rev="default" conf="build-tests->simple"/>
    </dependencies>

每个依赖项声明了什么?我以为构建测试已经在扩展运行时(从config声明开始),那么为什么conf依赖项会重新声明呢?需要吗?

What is each dependency declaring? I thought that build-tests was already extending runtime (from the config declaration), so why does the dependencies conf restate this? Is is needed?

testingsimple没有在我拥有的ivy.xml中声明,它们具有魔术性并且存在于正式声明之外吗?

The testing and simple aren't declared in the ivy.xml i have, are they magic and exist outside a formal declaration?

谢谢!

推荐答案

配置映射旨在将本地声明的配置与远程模块中声明的配置相关联.

Configuration mappings are designed to associate locally declared configurations to configurations declared in a remote module.

   mylocalconf->remotemoduleconf

什么是配置?它们是文件的逻辑分组,通常用于填充类路径或目录.

What are configurations? They are logical groupings of files, typically used to populate classpaths or directories.

简单"和测试"不属于

"simple" and "testing" are not part of the standard configurations generated for remote maven modules, suggesting that you're downloading from an ivy repo? Check the ivy files of the dependencies, you'll find the missing configurations there.

这篇关于小箭头是什么?在常春藤依赖项中做什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆