Trying to create two output packages for jaxb2 plugin, version 1.3.1 using 
maven 3
----------------------------------------------------------------------------------

                 Key: MJAXB-56
                 URL: https://jira.codehaus.org/browse/MJAXB-56
             Project: Maven 2.x JAXB 2.1 Plugin
          Issue Type: Story
    Affects Versions: 1.3.1
         Environment: windows 7, java Sun 1.6.0.24, maven 3.0.3
            Reporter: Mike Merrill
            Priority: Minor


Trying to create two output packages for separate sets of xsds, yet the default 
configuration is being employed always.  See the following configuration:

<plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>jaxb2-maven-plugin</artifactId>
                                <version>1.3.1</version>
                                <executions>
                                        <execution>
                                                <id>run1</id>
                                                <configuration>
                                                        
<packageName>com.abc.services.jaxb2</packageName>
                                                        
<outputDirectory>src/main/java</outputDirectory>
                                                        
<schemaDirectory>../src/schema</schemaDirectory>
                                                        
<bindingDirectory>../src/schema</bindingDirectory>
                                                        
<schemaFiles>device_manager_msgs.xsd,assigned_product_model_1_0.xsd,billing_msgs.xsd,billing.xsd,common.xsd,crm.xsd,ordering_msgs.xsd,ordering.xsd,product_model_1_0.xsd,resource_manager_msgs.xsd,resource_manager.xsd,lnp_manager_msgs.xsd,lnp_manager.xsd,crm_msgs.xsd</schemaFiles>
                                                        
<bindingFiles>jaxb2-bindings.xml</bindingFiles>
                                                        
<clearOutputDir>false</clearOutputDir>
                                                        
<extension>true</extension>
                                                        
<staleFile>${project.build.directory}/jaxb2/.xjcStaleFlagExternal</staleFile>
                                                </configuration>
                                                <goals>
                                                        <goal>xjc</goal>
                                                </goals>
                                        </execution>
                                        <execution>
                                                <id>run2</id>
                                                <configuration>
                                                        
<packageName>com.abc.services.jaxb2.internal</packageName>
                                                        
<outputDirectory>src/main/java</outputDirectory>
                                                        
<schemaDirectory>../src/schemaInternal</schemaDirectory>
                                                        
<bindingDirectory>../src/schemaInternal</bindingDirectory>
                                                        
<schemaFiles>crm_msgs.xsd, crm.xsd, common.xsd</schemaFiles>
                                                        
<bindingFiles>jaxb2-bindings.xml</bindingFiles>
                                                        
<clearOutputDir>false</clearOutputDir>
                                                        
<extension>true</extension>
                                                        
<staleFile>${project.build.directory}/jaxb2/.xjcStaleFlagInternal</staleFile>
                                                </configuration>
                                                <goals>
                                                        <goal>xjc</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>
I would expect this to result in two packages underneath the src/main/java 
directory, but instead, output goes to 
${project.build.directory}/generated-sources, and the xsds that are used are 
from the default xsd directory, not the ones that are specified in the 
configurations.

--
This message is automatically generated by JIRA.
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