gpt4 book ai didi

java - Maven Replacer Plugin 1.5.3 未定义输入文件警告

转载 作者:太空宇宙 更新时间:2023-11-04 14:02:37 24 4
gpt4 key购买 nike

我正在使用 Maven Replacer 插件版本 1.5.3 从 tokenValueMap 创建输出文件作为我的替换模式文件。我的输入文件是 .txt 文件。这是我的 pom.xml 的样子。在运行 mvn groupId:artifactId:replace 时,它​​构建成功,但收到警告“未定义输入文件”。替换在 0 个文件上运行。请建议!谢谢

 <plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<version>1.5.3</version>
<executions>
<execution>
<id>osb-ext-pci-config</id>
<phase>generate-sources</phase>
<goals>
<goal>replace</goal>
</goals>
<configuration>
<file>src/main/customization/LocalImpl.txt</file>
<outputFile>target/local_out.xml</outputFile>
<tokenValueMap>src/main/customization/ReplacementPatterns.txt</tokenValueMap>
</configuration>
</execution>
</executions>
</plugin>

最佳答案

请尝试使用文件标签来提及输入文件。

例如:<file>${scac.input.dir}/WSDLs/ProjectB.wsdl</file>

请找到以下插件作为示例。

<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<version>1.5.3</version>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>replace</goal>
</goals>
</execution>
</executions>
<configuration>
<file>${scac.input.dir}/WSDLs/ProjectB.wsdl</file>
<replacements>
<replacement>
<token>%SERVER_NAME%</token>
<value>${env.soa.lbhost}</value>
</replacement>
</replacements>
</configuration>
</plugin>`

关于java - Maven Replacer Plugin 1.5.3 未定义输入文件警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29171208/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com