I'm using the maven-jaxb-plugin to generate class file sources based on xsd files :
<plugin>
<groupId>com.sun.tools.xjc.maven2</groupId>
<artifactId>maven-jaxb-plugin</artifactId>
<version>1.1.1</version>
<executions>
<execution>
<id>jaxb-xsd-constants</id>
<phase>generate-sources</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<generatePackage>com.mypackage</generatePackage>
<schemaDirectory>${basedir}/src/main/resources/xsd/mylist</schemaDirectory>
<includeSchemas>
<includeSchema>mylist.xsd</includeSchema>
</includeSchemas>
<strict>true</strict>
</configuration>
</execution>
</executions>
</plugin>
But I then need to add these folders as a source folder in order for Eclipse to load compile them :
How can the folder be added as a source folder using the plugin or some other method ? Instead of having to manually add these folders.