[
https://issues.apache.org/jira/browse/MSOURCES-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17959403#comment-17959403
]
Matthias Bünger commented on MSOURCES-29:
-----------------------------------------
This project has moved from Jira to GitHub Issues. This issue was migrated to
[apache/maven-source-plugin#112|https://github.com/apache/maven-source-plugin/issues/112].
> <excludeResources> is not working
> ---------------------------------
>
> Key: MSOURCES-29
> URL: https://issues.apache.org/jira/browse/MSOURCES-29
> Project: Maven Source Plugin (Moved to GitHub Issues)
> Issue Type: Bug
> Affects Versions: 2.0.4
> Environment: unix SunOS 5.10
> Reporter: Michael Meng
> Assignee: Dennis Lundberg
> Priority: Critical
> Attachments: MSOURCES-29.zip, attached1.doc
>
>
> In the pom.xml resource portion we have define the following item:
> {code:xml}
> <resource>
> <directory>${basedir}/target/checkout/src/com/chu/uhb/idl</directory>
> <targetPath>com/chu/uhb/idl</targetPath>
> <includes>
> <include>**/*.idl</include>
> </includes>
> </resource>
> <resource>
> <directory>${basedir}/target/checkout/approot/images/myimg</directory>
> <targetPath>images/img</targetPath>
> <includes>
> <include>**/*.gif</include>
> </includes>
> </resource>
> {code}
> Since these idl file is under the src folder, when we create the source jar
> file, we do not want to include them again. We put the following in the
> pom.xml to exclude them,
> {code:xml}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-source-plugin</artifactId>
> <configuration>
> <excludeResources>true</excludeResources>
> </configuration>
> <executions>
> <execution>
> <goals>
> <goal>jar</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> {code}
> but seems the <excludeResources> is not working. The idl file are show up
> twice in the source jar and img show up once in the source
> see the attached file for detail --
--
This message was sent by Atlassian Jira
(v8.20.10#820010)