Hi Bruno,

I have just tried to setup a project with the cxf-common-xsd. My packages were correctly named: com.tapdur.service
Could you post your complete pom?

Greetings

Christian


Tapdur schrieb:
hi

i use the cxf plugin xsd2java but the generate package always start with
"main.java"  even when i specify the target package. any work around ? is
there an option to that ? (it is not well document)

            <plugin>
                <groupId>org.apache.cxf</groupId>
                <artifactId>cxf-common-xsd</artifactId>
                <version>2.2.3</version>
                <executions>
                    <execution>
                        <id>generate-sources</id>
                        <phase>generate-sources</phase>
                        <configuration>
<sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot>
                            <xsdOptions>
                               <xsdOption>
<xsd>${basedir}/src/main/resources/tapdur.xsd</xsd> <packagename>com.tapdur.service</packagename>
                               </xsdOption>
                             </xsdOptions>
                        </configuration>
                        <goals>
                            <goal>xsdtojava</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

the generated source belongs to main.java.com.tapdur.service instead of
"com.tapdur.service"


regards
Bruno


--

Christian Schneider
---
http://www.liquid-reality.de

  • xsdtojava Tapdur
    • Re: xsdtojava Christian Schneider

Reply via email to