We have 2 different projects each having their own XSDs to generate classes using JAXB. Each project has the same maven plugin configuration for doing this which is
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<executions>
<execution>
<id>generate-pojo</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<extension>true</extension>
<args>
<arg>-Xsetters</arg>
<arg>-Xsetters-mode=direct</arg>
</args>
<forceRegenerate>false</forceRegenerate>
<schemaDirectory>src/main/resources/xsd</schemaDirectory>
<plugins>
<plugin>
<groupId>org.jvnet.jaxb2_commons</groupId>
<artifactId>jaxb2-basics</artifactId>
<version>${jaxb2-basics.version}</version>
</plugin>
</plugins>
</configuration>
</execution>
</executions>
</plugin>
The problem is, after I run the mvn install
command in Eclipse and refresh the project tree, I can see the newly generated classes as a source folder in only one of the projects but not the other. What could be the issue with other project?