Hi,
On Tue, Jun 21, 2011 at 5:55 PM, Marcelo <mtspbr_at_gmail.com> wrote:
> Hi Aleksei Valikov,
>
> I would like know if you can help me with an issue to use your project
> Annox.
>
> I am need to put annotations for Beans Validation in my XSD JAXB generated
> classes. I thought to use your "JAXB plugin" for it, but I don't know how
> solve this issue:
>
> [ERROR] Unsupported binding namespace "http://annox.dev.java.net". Perhaps
> you meant "http://java.sun.com/xml/ns/jaxb/xjc"?
> line 7 of
> file:/home/marcelo/projetos/workspace/sgoe/trunk/sgoe/internal-model/src/main/resources/br/com/telefonica/sgoe/solicitacao/to/Test.ann.xsd
>
> When I execute:
>
> xjc -extension -d src/main/java/ src/main/resources/
>
> or execute maven plugin:
>
> <plugin>
> <groupId>com.sun.tools.xjc.maven2</groupId>
> <artifactId>maven-jaxb-plugin</artifactId>
> <version>1.1.1</version>
> <executions>
> <execution>
> <goals>
> <goal>generate</goal>
> </goals>
> </execution>
> </executions>
> <configuration>
> <generateDirectory>src/main/java</generateDirectory>
> <includeSchemas>
> <includeSchema>**/*.xsd</includeSchema>
> </includeSchemas>
> <extension>true</extension>
> </configuration>
> </plugin>
You have not configured the Annotate plugin. It is simply not in the classpath.
Please check this guide.
http://confluence.highsource.org/display/J2B/User+Guide
Ex. you can user org.jvnet.jaxb2.maven2:maven-jaxb2-plugin and
configure the org.jvnet.jaxb2_commons:jaxb2-basics-annotate as plugin
in there. There's also a sample project:
http://confluence.highsource.org/display/J2B/Home
Bye,
/lexi