Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/377.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Maven Replacer插件1.5.3未定义输入文件警告_Java_Maven_Replace_Pom.xml_Maven Replacer Plugin - Fatal编程技术网

Java Maven Replacer插件1.5.3未定义输入文件警告

Java Maven Replacer插件1.5.3未定义输入文件警告,java,maven,replace,pom.xml,maven-replacer-plugin,Java,Maven,Replace,Pom.xml,Maven Replacer Plugin,我使用maven replacer插件版本1.5.3从tokenValueMap创建输出文件作为替换模式文件。我的输入文件是一个.txt文件。下面是我的pom.xml的样子。在运行mvn groupId:artifactId:replace时,它构建成功,但收到警告“未定义输入文件”。在0个文件上运行替换。请建议!多谢各位 <plugin> <groupId>com.google.code.maven-replacer-plugin</gr

我使用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>

com.google.code.maven-replacer-plugin
替代者
1.5.3
osb外部pci配置
生成源
代替
src/main/customization/LocalImpl.txt
target/local_out.xml
src/main/customization/ReplacementPatterns.txt

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

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

请找到下面的插件作为示例

<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>`

com.google.code.maven-replacer-plugin
替代者
1.5.3
准备包装
代替
${scac.input.dir}/WSDLs/ProjectB.wsdl
%服务器名称%
${env.soa.lbhost}
`

如果我读到“注意:basedir不再有默认值,如果不使用basedir,这必须是一个绝对路径。”对于
中的include:include
参数,我想知道这是否也适用于
文件
参数。他们只是忘了在那个里,或者在一个更显眼的地方提到它。@GeroldBroser也试过。。但还是给了我同样的信息。