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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to