[
https://jira.codehaus.org/browse/MCOMPILER-161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=301250#comment-301250
]
Chris Eineke edited comment on MCOMPILER-161 at 6/15/12 1:25 PM:
-----------------------------------------------------------------
Same problem exists with v2.2.1 (rdebian-8). Maven compiler plugin is v2.5.
was (Author: ceineke):
Same problem exists with v2.2.1 (rdebian-8).
> Exclude ignored for sources generated during the generate-sources phase
> -----------------------------------------------------------------------
>
> Key: MCOMPILER-161
> URL: https://jira.codehaus.org/browse/MCOMPILER-161
> Project: Maven 2.x Compiler Plugin
> Issue Type: Bug
> Affects Versions: 2.3.2
> Environment: Win7, JDK 7, maven 3.0.3,
> Reporter: Laurent Foret
>
> I try in a pom to excludes an unwanted generated package during the
> "generate-sources" phase, but without success.
> Indeed according to the following pom.xml :
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <excludes>
> <exclude>**/generated/*</exclude>
> </excludes>
> </configuration>
> </plugin>
>
> <plugin>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-codegen-plugin</artifactId>
> <version>${cxf.version}</version>
> <executions>
> <execution>
> <id>registry</id>
> <phase>generate-sources</phase>
> <goals>
> <goal>wsdl2java</goal>
> </goals>
> </execution>
> </executions>
> ....
> I expected to have every generated java source file in a package which is
> called "*.generated.*" not to be compiled.
> Exclusion works for all package in my normal "src/main/java" source directory
> but not in my "target/generated-sources/cxf" generated source directory.
--
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