Closed Arulselvanl closed 6 years ago
Does this occur for the latest stable release (i.e. version 2.3.1) as well?
M2E / Eclipse integration was fixed in release 2.3.1 of the plugin. Upgrade to that version to remove the exception.
I'm having the same problem. This is the configuration i have in the pom
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>2.3.1</version>
<executions>
<execution>
<id>xjc</id>
<goals>
<goal>xjc</goal>
</goals>
</execution>
</executions>
<configuration>
<xjbSources>
<xjbSource>src/main/resources/global.xjb</xjbSource>
</xjbSources>
<sources>
<source>src/main/resources/schema.xsd</source>
</sources>
</configuration>
</plugin>
I can confirm this issue in newer Eclipse versions. I think it wasn't there back in Eclipse Oxygen (from 2018). Upgrading to release 2.3.1 did help, at least for Eclipse 2020-06.
There also seems to be a workaround: generate the sources by running a regular Maven build -> the error goes away once the generated folder or sources exist.
Hello everybody, I'm working with the UBL standard, this is my configuratión, I have tried with different version and shapes
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>2.3.1</version>
<executions>
<execution>
<id>xjc</id>
<goals>
<goal>xjc</goal>
</goals>
<configuration>
<xjbSources>
<xjbSource>src/main/resources/schema/jaxb/bindings21.xjb</xjbSource>
</xjbSources>
<sources>
<source>src/main/resources/schema/common/CCTS_CCT_SchemaModule-2.1.xsd</source>
</sources>
<clearOutputDir>false</clearOutputDir>
</configuration>
</execution>
</executions>
<!-- <configuration>
<dtd>true</dtd>
<outputDirectory>${basedir}/src/main/java</outputDirectory>
<packageName>com.rahdevelopers.dian.nomina.app.schema</packageName>
<bindingDirectory>${basedir}/src/main/resources/schema/jaxb</bindingDirectory>
<schemaDirectory>${basedir}/src/main/resources/schema/common</schemaDirectory>
<clearOutputDir>false</clearOutputDir>
</configuration> -->
</plugin>
In this link XML-UBL we can find each XML and in this other link CCTS_CCT_SchemaModule-2.1.xsd we can find an example
Getting exception in the "execution" line of the pom file.