You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Tapdur <ta...@gmail.com> on 2009/09/30 09:44:13 UTC
xsdtojava
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
--
View this message in context: http://www.nabble.com/xsdtojava-tp25676425p25676425.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: xsdtojava
Posted by Christian Schneider <ch...@die-schneider.net>.
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