java - 使用 maven-antrun-plugin 从类路径读取文件
问题描述
我的目标是在maven-antrun-plugin中的类路径中引用其他库中的资源文件,并将其用作替换标记中的replacefilterFile:
...
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<phase>generate-sources</phase>
<configuration>
<target>
<replace dir="${path-in-my-current-project}" includes="*.xml"
replacefilterfile="${reference-to-resource-file-in-classpath}">
</replace>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
...
有没有一种简单的方法可以从另一个库中引用文件?或者在这种情况下我的方法可能完全错误?
解决方案
推荐阅读
- symfony - Symfony yaml 配置:执行纯 php 代码
- button - 创建几个进行 REST API 调用的按钮
- r - 计算可能包含 NA / 缺失值的列值的组合(不是排列)
- python - 有没有办法在 cpanel 上部署 fastapi 应用程序?
- angular - 如何在角度 8 的同一页面中保持任何点击的滚动位置
- python-3.x - 有没有办法确定 k 的值以选择文本摘要中的前 k 个句子
- android - 即使使用相同的 debug.keystore 文件,签名也不匹配(Android 和 Unity)
- c - 有没有办法让公开电话正常工作?
- sql - 从 PowerShell 命令执行 SQL 时如何参数化登录
- reactjs - 在 Vercel 上部署 react-app 时遇到问题。构建错误