Maven 打包Mule 4项目时如何排除属性文件

Maven 打包Mule 4项目时如何排除属性文件,maven,mule,mulesoft,mule-esb,Maven,Mule,Mulesoft,Mule Esb,我有一个关于Mule Runtime 4.2.2的项目,我正在AnypointStudio上工作 现在我试图在打包时从src/main/resources文件夹中排除dev.properties文件。因为我正在生产中使用prod.properties。但由于某些原因,一切都不起作用。它一直显示在.jar文件中 以下是我所做的: 1) 在项目文件夹中创建了名为“\u muleExclude”的新文件 2) 添加了排除规则: dev.properties。还尝试了**/src/main/resour

我有一个关于Mule Runtime 4.2.2的项目,我正在AnypointStudio上工作

现在我试图在打包时从
src/main/resources
文件夹中排除dev.properties文件。因为我正在生产中使用prod.properties。但由于某些原因,一切都不起作用。它一直显示在.jar文件中

以下是我所做的:

1) 在项目文件夹中创建了名为“\u muleExclude”的新文件

2) 添加了排除规则:
dev.properties
。还尝试了
**/src/main/resources/dev.properties

3) 使用
mvn清洁包装包装

我正在使用mule maven插件版本3.3.5。仅找到有关_mulee的此文档,不包括:
它似乎不起作用。这可能是一个bug。


<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${jdk.version}</version>
<executions>
    <execution>
        <id>add-resource</id>
        <phase>generate-resources</phase>
        <goals>
            <goal>add-resource</goal>
        </goals>
        <configuration>
            <resources>
                <resource>
                    <directory>src/main/app/</directory>
                </resource>
            </resources>
        </configuration>
    </execution>
</executions>
</plugin>
org.codehaus.mojo 构建助手maven插件 ${jdk.version} 添加资源 产生资源 添加资源 src/main/app/

添加需要在工件中的路径。

我没有得到它。我认为默认情况下,
src/main/resources
是读取的,我不需要手动添加该包。我这里的问题是mule只是忽略了
\u muleExclude
文件是的,我在写我的回复之前试过了。我没有工作。