Ant 常春藤任务';安装&x27;不复制/安装文档
我正在使用ivy和ant构建多个模块。我需要发布一些文档(.docx文件)。但当我需要从一个常春藤存储库安装到另一个存储库时,它们不会被复制。我如何告诉ivy在使用安装任务时复制这些文档 出版物:Ant 常春藤任务';安装&x27;不复制/安装文档,ant,ivy,Ant,Ivy,我正在使用ivy和ant构建多个模块。我需要发布一些文档(.docx文件)。但当我需要从一个常春藤存储库安装到另一个存储库时,它们不会被复制。我如何告诉ivy在使用安装任务时复制这些文档 出版物: <publications> <artifact name="find" type="jar" conf="core" /> <artifact name="Documentation" type="res" ext="docx"/> <artif
<publications>
<artifact name="find" type="jar" conf="core" />
<artifact name="Documentation" type="res" ext="docx"/>
<artifact name="Dep_report" type="res" ext="xml"/>
</publications>
安装任务调用以将工件从一个常春藤存储库复制到另一个存储库:
<ivy:install organisation="${ivy.organisation}" module="${ivy.module}"
revision="${ivy.revision}" from="shared" to="released" overwrite="true" />
另外,我必须补充的是,发布到共享和安装到发布的ivy存储库不会发生在同一个ant调用中。在调用install之前,我添加了
<publications>
<artifact name="find" type="jar" conf="core" />
<artifact name="Documentation" type="res" ext="docx" conf="core" />
<artifact name="Dep_report" type="res" ext="xml" conf="core" />
</publications>
另外,对于ivy:install,需要添加conf=“core”,如下所示:
<ivy:install organisation="${ivy.organisation}" module="${ivy.module}"
revision="${ivy.revision}" from="shared" to="released" overwrite="true" conf="core" />