You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Karl Heinz Marbaise (JIRA)" <ji...@codehaus.org> on 2011/02/24 09:49:22 UTC
[jira] Created: (MRESOURCES-138) Single resource file filtering but
the rest of the resources is not copied.
Single resource file filtering but the rest of the resources is not copied.
---------------------------------------------------------------------------
Key: MRESOURCES-138
URL: http://jira.codehaus.org/browse/MRESOURCES-138
Project: Maven 2.x Resources Plugin
Issue Type: Bug
Components: filtering
Affects Versions: 2.4.3
Environment: Apache Maven 3.0.2 (r1056850; 2011-01-09 01:58:10+0100)
Java version: 1.6.0_22, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-6-sun-1.6.0.22/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-27-generic", arch: "amd64", family: "unix"
Tested also with Maven 2.2.1
Reporter: Karl Heinz Marbaise
Attachments: resource-test.tar.gz
I have project where i have three files (a.properties, b.properties and c.properties) in the src/main/resources folder.
Now i have configured to filter a single file in my pom:
{code}
<build>
<resources>
<resource>
<directory>${basedir}/src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>a.properties</include>
</includes>
</resource>
</resources>
...
{code}
If i check my target/classes folder the other files b.properties and c.properties are not being copied from the resources folder.
This means the definition for filtering will be excluding automatically all other files from the resources folder.
I have checked that with different configuration like the following:
{code}
<build>
<resources>
<resource>
<directory>${basedir}/src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>**/a.properties</include>
</includes>
</resource>
</resources>
...
{code}
The only solution is to write the configuration as follows:
{code}
<build>
<resources>
<resource>
<directory>${basedir}/src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>a.properties</include>
</includes>
</resource>
<resource>
<directory>${basedir}/src/main/resources</directory>
<filtering>false</filtering>
<includes>
<include>b.properties</include>
<include>c.properties</include>
</includes>
</resource>
</resources>
...
{code}
In my opinion this is bug...I have attached simple example project.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRESOURCES-138) Single resource file filtering but the rest
of the resources is not copied.
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRESOURCES-138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg closed MRESOURCES-138.
--------------------------------------
Resolution: Not A Bug
> Single resource file filtering but the rest of the resources is not copied.
> ---------------------------------------------------------------------------
>
> Key: MRESOURCES-138
> URL: https://jira.codehaus.org/browse/MRESOURCES-138
> Project: Maven 2.x Resources Plugin
> Issue Type: Bug
> Components: filtering
> Affects Versions: 2.4.3
> Environment: Apache Maven 3.0.2 (r1056850; 2011-01-09 01:58:10+0100)
> Java version: 1.6.0_22, vendor: Sun Microsystems Inc.
> Java home: /usr/lib/jvm/java-6-sun-1.6.0.22/jre
> Default locale: de_DE, platform encoding: UTF-8
> OS name: "linux", version: "2.6.32-27-generic", arch: "amd64", family: "unix"
> Tested also with Maven 2.2.1
> Reporter: Karl Heinz Marbaise
> Attachments: resource-test.tar.gz
>
>
> I have project where i have three files (a.properties, b.properties and c.properties) in the src/main/resources folder.
> Now i have configured to filter a single file in my pom:
> {code}
> <build>
> <resources>
> <resource>
> <directory>${basedir}/src/main/resources</directory>
> <filtering>true</filtering>
> <includes>
> <include>a.properties</include>
> </includes>
> </resource>
> </resources>
> ...
> {code}
> If i check my target/classes folder the other files b.properties and c.properties are not being copied from the resources folder.
> This means the definition for filtering will be excluding automatically all other files from the resources folder.
> I have checked that with different configuration like the following:
> {code}
> <build>
> <resources>
> <resource>
> <directory>${basedir}/src/main/resources</directory>
> <filtering>true</filtering>
> <includes>
> <include>**/a.properties</include>
> </includes>
> </resource>
> </resources>
> ...
> {code}
> The only solution is to write the configuration as follows:
> {code}
> <build>
> <resources>
> <resource>
> <directory>${basedir}/src/main/resources</directory>
> <filtering>true</filtering>
> <includes>
> <include>a.properties</include>
> </includes>
> </resource>
> <resource>
> <directory>${basedir}/src/main/resources</directory>
> <filtering>false</filtering>
> <includes>
> <include>b.properties</include>
> <include>c.properties</include>
> </includes>
> </resource>
> </resources>
> ...
> {code}
> In my opinion this is bug...I have attached simple example project.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRESOURCES-138) Single resource file filtering but the rest
of the resources is not copied.
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRESOURCES-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292604#comment-292604 ]
Dennis Lundberg commented on MRESOURCES-138:
--------------------------------------------
This is the intended behavior.
> Single resource file filtering but the rest of the resources is not copied.
> ---------------------------------------------------------------------------
>
> Key: MRESOURCES-138
> URL: https://jira.codehaus.org/browse/MRESOURCES-138
> Project: Maven 2.x Resources Plugin
> Issue Type: Bug
> Components: filtering
> Affects Versions: 2.4.3
> Environment: Apache Maven 3.0.2 (r1056850; 2011-01-09 01:58:10+0100)
> Java version: 1.6.0_22, vendor: Sun Microsystems Inc.
> Java home: /usr/lib/jvm/java-6-sun-1.6.0.22/jre
> Default locale: de_DE, platform encoding: UTF-8
> OS name: "linux", version: "2.6.32-27-generic", arch: "amd64", family: "unix"
> Tested also with Maven 2.2.1
> Reporter: Karl Heinz Marbaise
> Attachments: resource-test.tar.gz
>
>
> I have project where i have three files (a.properties, b.properties and c.properties) in the src/main/resources folder.
> Now i have configured to filter a single file in my pom:
> {code}
> <build>
> <resources>
> <resource>
> <directory>${basedir}/src/main/resources</directory>
> <filtering>true</filtering>
> <includes>
> <include>a.properties</include>
> </includes>
> </resource>
> </resources>
> ...
> {code}
> If i check my target/classes folder the other files b.properties and c.properties are not being copied from the resources folder.
> This means the definition for filtering will be excluding automatically all other files from the resources folder.
> I have checked that with different configuration like the following:
> {code}
> <build>
> <resources>
> <resource>
> <directory>${basedir}/src/main/resources</directory>
> <filtering>true</filtering>
> <includes>
> <include>**/a.properties</include>
> </includes>
> </resource>
> </resources>
> ...
> {code}
> The only solution is to write the configuration as follows:
> {code}
> <build>
> <resources>
> <resource>
> <directory>${basedir}/src/main/resources</directory>
> <filtering>true</filtering>
> <includes>
> <include>a.properties</include>
> </includes>
> </resource>
> <resource>
> <directory>${basedir}/src/main/resources</directory>
> <filtering>false</filtering>
> <includes>
> <include>b.properties</include>
> <include>c.properties</include>
> </includes>
> </resource>
> </resources>
> ...
> {code}
> In my opinion this is bug...I have attached simple example project.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira