[ 
http://jira.codehaus.org/browse/MJAXB-5?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Scholte closed MJAXB-5.
------------------------------

      Assignee: Robert Scholte
    Resolution: Not A Bug

This is not a bug in this plugin, but an issue of the Maven-Core. See MNG-3401 
for more details.

> configuration block inside execute block is ignored
> ---------------------------------------------------
>
>                 Key: MJAXB-5
>                 URL: http://jira.codehaus.org/browse/MJAXB-5
>             Project: Maven 2.x JAXB 2.0 Plugin
>          Issue Type: Bug
>         Environment: WinXP maven 2
>            Reporter: Tom Guyette
>            Assignee: Robert Scholte
>
> 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