I am trying to use the jaxb plugin to insert an interface into a select element generating classes from maven. The problem is that I canβt figure out how to do this from maven, the repository is not clear from the documentation, and the only example (below) does not work, it seems to ignore the plugin (maven reports no error about the absence of it) or the plugin does not have all additions listed in the project documentation:
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.6.1</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<generatePackage>br.com.wonder.nfe.xml</generatePackage>
<args>
<arg>-Xifins</arg>
</args>
<plugins>
<plugin>
<groupId>org.jvnet.jaxb2_commons</groupId>
<artifactId>basic</artifactId>
<version>0.4.1.5</version>
</plugin>
</plugins>
</configuration>
</plugin>
I have this in the root pom:
<pluginRepositories>
<pluginRepository>
<id>maven2-repository.dev.java.net</id>
<url>http://download.java.net/maven/2</url>
</pluginRepository>
<pluginRepository>
<id>maven-repository.dev.java.net</id>
<name>Java.net Maven 1 Repository (legacy)</name>
<url>http://download.java.net/maven/1</url>
<layout>legacy</layout>
</pluginRepository>
</pluginRepositories>
A run that gives:
Error configuring CmdLine '[-Xifins, -episode, / home / administrador / JavaApp / wnfe3 / wnfe-ejb / target / generated-sources / xjc / META-INF / sun-jaxb.episode]'!
Built-in error: unrecognized -Xifins parameter
user243155