configuration block inside execute block is ignored
---------------------------------------------------

                 Key: MOJO-692
                 URL: http://jira.codehaus.org/browse/MOJO-692
             Project: Mojo
          Issue Type: Bug
          Components: jaxb2
         Environment: WinXP maven 2
            Reporter: Tom Guyette


To reproduce:

1 - Create and verify a simple build that builds a single xsd file into a 
custom package defined in a <configuration> block outside the <execution> tag.  
Validate that the classes build to the expected directory according to the 
package name.

2 - Move the <configuration> block into the <execution> block.  Note the 
classes no longer build to the specified package name.  In fact, the xjc plugin 
appears to be ignoring *all* configuration elements when they are inside the 
execution block.  See sample below.

Impact: No known workaround to build more than one xsd file to separate classes 
/ packages.  The FAQ entry about using multiple configurations doesn't work.

Sample of (2) above:

        <build>
                <plugins>
                        <plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>jaxb2-maven-plugin</artifactId>
                                <executions>
<execution>
                                                <goals>
                                                        <goal>xjc</goal>
                                                </goals>
<configuration>
<packageName>com.idcglobal.mimosa.getnummsgsbytopic</packageName>
<schemaFiles>GetNumMsgsByTopic.xsd</schemaFiles>
<staleFile>${project.build.directory}/generated-sources/jaxb/.staleFileGetnummsgsbytopic</staleFile>
<clearOutputDir>false</clearOutputDir>
</configuration>                                                
</execution>
</executions>
                        </plugin>
                        <!-- Requires Java 1.5 -->
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-compiler-plugin</artifactId>
                                <configuration>
                                        <source>1.5</source>
                                        <target>1.5</target>
                                </configuration>
                        </plugin>
                </plugins>
        </build>

-- 
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

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to