You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Yariv Amar (JIRA)" <ji...@codehaus.org> on 2013/11/18 14:19:45 UTC

[jira] (MECLIPSE-712) filteredResources in Eclipse .project is not supported and discarded by the Maven 2.x Eclipse Plugin

    [ https://jira.codehaus.org/browse/MECLIPSE-712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=335924#comment-335924 ] 

Yariv Amar commented on MECLIPSE-712:
-------------------------------------

finx this can help with multi mpdule projects in eclipse. it would be great if we the plugin supported this:
{code:XML}
<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-eclipse-plugin</artifactId>
	<version>2.9</version>
	<configuration>
		<additionalConfig>
			<filteredResources>
				<filter>
					<id>1376227955734</id>
					<name></name>
					<type>10</type>
					<matcher>
						<id>org.eclipse.ui.ide.multiFilter</id>
						<arguments>1.0-name-matches-false-false-*</arguments>
					</matcher>
				</filter>
			</filteredResources>
		</additionalConfig>
	</configuration>
</plugin>
{code}
                
> filteredResources in Eclipse .project is not supported and discarded by the Maven 2.x Eclipse Plugin
> ----------------------------------------------------------------------------------------------------
>
>                 Key: MECLIPSE-712
>                 URL: https://jira.codehaus.org/browse/MECLIPSE-712
>             Project: Maven Eclipse Plugin
>          Issue Type: Bug
>          Components: Core : .project
>    Affects Versions: 2.8
>         Environment: Maven 3, Windows 7, Eclipse Indigo Service Release 1
>            Reporter: René de Bloois
>         Attachments: screenshot-1.jpg
>
>
> There is a beautiful way to let Eclipse ignore the target folder:
> {code:xml|title=.project}
> <?xml version="1.0" encoding="UTF-8"?>
> <projectDescription>
> 	...
> 	<filteredResources>
> 		<filter>
> 			<id>1328280594689</id>
> 			<name></name>
> 			<type>10</type>
> 			<matcher>
> 				<id>org.eclipse.ui.ide.multiFilter</id>
> 				<arguments>1.0-projectRelativePath-matches-true-false-target</arguments>
> 			</matcher>
> 		</filter>
> 	</filteredResources>
> </projectDescription>
> {code}
> Which in Eclipse means (in the Edit Resource Filter window): "Exclude all", "Folders", "not recursive", "Project Relative Path matches "target" case sensitive".
> This will cause Eclipse to completely ignore this folder and its contents.
> Problem is, after running mvn eclipse:eclipse, this section is removed from the .project file.
> It is also not possible to configure the maven eclipse plugin to add this filteredResources section.
> Maybe it could even be generated by default by the maven eclipse plugin?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira