Salve,
Sto cercando di trasformare il mio xsd in classi usando jaxb2-maven-plugin . Il problema mio è che non riesco a dire al plugin di creare le mie classi in uno specifico namespace invece di usare il targetnamespace dello schema xsd. Per intenderci:
XSD:
PLUGIN:codice:<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://schemas.company.org/cc" xmlns:tns="http://schemas.compant.org/cc" elementFormDefault="qualified"> .....
In sostanza vorrei che mi generasse i type dell'xsd nel package org.company.ws.beans, invece li crea in org.company.schemas.cc.codice:<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jaxb2-maven-plugin</artifactId> <version>1.6</version> <executions> <execution> <id>xjc</id> <goals> <goal>xjc</goal> </goals> </execution> </executions> <configuration> <generatePackage>org.company.ws.beans</generatePackage> <schemaDirectory>${project.basedir}/src/main/webapp/schemas</schemaDirectory> <outputDirectory>${project.basedir}/src/main/java</outputDirectory> <clearOutputDir>true</clearOutputDir> </configuration> </plugin>
Avete idea di come fare?
Grazie

Rispondi quotando