开发者

can I use 2 ivy files?

开发者 https://www.devze.com 2022-12-29 07:00 出处:网络
I\'m creating a build environment for third party developers.I want to provide them 开发者_运维问答with an ivy.xml which a 3rd party shouldn\'t change and also a ivy-custom.xml which they should chang

I'm creating a build environment for third party developers. I want to provide them 开发者_运维问答with an ivy.xml which a 3rd party shouldn't change and also a ivy-custom.xml which they should change.

<target name="resolve" depends="download-ivy">
    <ivy:resolve file="ivy.xml"/>
    <ivy:resolve file="ivy-custom.xml"/>
</target>

This doesn't seem to work, though. The ivy-custom.xml seems to usurp the original ivy.xml. Does anyone know of a way to do this? Thanks.


You may consider split it into 2 separate modules. The first one is with dependency of your ivy.xml and publish it into your maven repository. (said org="com.abc", name="your-module", version 1.0)

Then you may let your 3rd party developers use ivy-custom.xml that also resolve "your-module" as one of the dependency.

<dependency org="com.abc" name="your-module" rev="1.0" transitive="true"/>

This assume your developer have access to your repository.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号