【发布时间】:2020-02-20 05:21:48
【问题描述】:
我们公司有使用 Spring MVC(非引导)构建的遗留项目,并使用 Ivy 进行依赖管理,以及使用 Artifactory 的 repos。 我找不到任何关于 Ivy / Ant 的教程或支持,只能找到 Maven 类型的项目。
有没有人在使用 Ivy 的项目中使用 VS Code?p>
【问题讨论】:
标签: java spring-mvc visual-studio-code ivy
我们公司有使用 Spring MVC(非引导)构建的遗留项目,并使用 Ivy 进行依赖管理,以及使用 Artifactory 的 repos。 我找不到任何关于 Ivy / Ant 的教程或支持,只能找到 Maven 类型的项目。
有没有人在使用 Ivy 的项目中使用 VS Code?p>
【问题讨论】:
标签: java spring-mvc visual-studio-code ivy
是的,你可以让它工作。您可以通过 Apache Ant 使用 ivy,并且有一个 plugin for Apache Ant available for Visual Studio Code。
这是一个示例 Ant 目标,它使用 Ivy 定义的目标来解决依赖关系。
<!--override the common resolve task to use Ivy configuration here-->
<target name="resolve" description="--> resolve and retrieve jar dependencies with ivy for all configurations.">
<mkdir dir="${lib.dir}" />
<!-- not usually necessary, ivy creates the directory IF there are dependencies -->
<!-- the call to resolve is not mandatory, retrieve makes an implicit call if we don't -->
<ivy:resolve file="${ivy.file}" conf="*" />
<ivy:retrieve pattern="${lib.dir}/[conf]/[organisation]/[module]/[type]s/[artifact].[ext]" conf="*" />
</target>
【讨论】: