1

バージョンマッチャーを使用して「インライン」解決を行う方法を知りたいです。

問題の説明: 共有リポジトリで公開されている 2 つのリリースからのアーティファクトがあります。Rel 1 には順序のリビジョン (1.1、1.2 など) があり、Rel 2 には順序のリビジョン (2.1、2.2、2.3 など) があります。

さまざまなリリース (Rel 1、Rel 2 など) からの最新の戦争で耳を作成する必要があります。このために、次のスニペットを繰り返して、さまざまな戦争をインラインで解決しようとしています。

            <ivy:resolve  organisation="com.barclays.eps" module="scp-eps-cards" 
                changing="true" revision="latest.LIVE-build-rel-@{i}" inline="true" transitive="false" keep="true" refresh="true" type="war"/>


            <ivy:retrieve pattern="target/ear/[artifact]-[revision]-@{i}.[ext]" 
                organisation="com.barclays.eps" module="scp-eps-cards" revision="latest.LIVE-build-rel-@{i}" inline="true" transitive="false" type="war" />
            <ivy:retrieve ivypattern="target/ear/[artifact]-[revision]-2.[ext]" 
                organisation="com.barclays.eps" module="scp-eps-cards" revision="latest.LIVE-build-rel-@{i}" inline="true" transitive="false" type="xml" />

ステータスは、ivy-settings.xml ファイルで次の順序で設定されています。

    <statuses default="dev-build-rel-2">
    <status name="LIVE-build-rel-2" integration="true"/>
    <status name="daily-build-rel-2" integration="true"/>
    <status name="dev-build-rel-2" integration="true"/>
    <status name="dev-build-rel-1" integration="true"/>
    <status name="release" integration="false"/>
    <status name="integration" integration="true"/>
</statuses> 

ただし、解決しようとすると、言及されている順序により、status="LIVE-build-rel-2" のアーティファクトしか取得できません。

インライン解決の実行中にバージョンマッチャーを使用することでこれを達成できるかどうか疑問に思っています。私は同じものを使用しようとしましたが、エラーが発生しました: foo(2) が見つかりません

誰でもこれについて私を助けてもらえますか?

前もって感謝します。

4

0 に答える 0