Apache Ivy - 設定檔案



Apache Ivy 遵循 Maven 原則,並附帶許多預設配置。可以透過定義 ivysettings.xml 檔案來覆蓋預設設定。

<ivysettings>
   <properties file="${ivy.settings.dir}/ivysettings-file.properties" />
   <settings defaultCache="${cache.dir}" defaultResolver="ibiblio" checkUpToDate="false" />
   <resolvers>
      <ibiblio name="ibiblio" />
      <filesystem name="internal">
         <ivy pattern="${repository.dir}/[module]/ivy-[revision].xml" />
         <artifact pattern="${repository.dir}/[module]/[artifact]-[revision].[ext]" />
      </filesystem>
   </resolvers>
   <modules>
      <module organisation="tutorialspoint" name=".*" resolver="internal" />
   </modules>
</ivysettings>

Ivy 設定檔案的標籤

以下是 Ivy 設定檔案的重要標籤。

  • property − 設定 Ivy 變數。基數:0..n

  • properties − 使用屬性檔案設定 Ivy 變數。基數:0..n

  • settings − 使用預設值配置 Ivy。基數:0..1

  • include − 包含另一個設定檔案。基數:0..n

  • classpath − 在用於載入外掛的類路徑中新增位置。基數:0..n

  • typedef − 在 Ivy 中定義新型別。基數:0..n

  • lock-strategies − 定義鎖定策略。基數:0..1

  • caches − 定義倉庫快取管理器。基數:0..1

  • latest-strategies − 定義最新策略。基數:0..1

  • parsers − 定義模組描述符解析器。基數:0..1

  • version-matchers − 定義新的版本匹配器。基數:0..1

  • triggers − 在 Ivy 事件上註冊觸發器。基數:0..1

  • namespaces − 定義新的名稱空間。基數:0..1

  • macrodef − 定義新的宏解析器。基數:0..n

  • resolvers − 定義依賴項解析器。基數:0..1

  • conflict-managers − 定義衝突管理器。基數:0..1

  • modules − 定義模組和依賴項解析器之間的規則。基數:0..1

  • outputters − 定義可用報表輸出器的列表。基數:0..1

  • statuses − 定義可用狀態的列表。基數:0..1

廣告
© . All rights reserved.