Hi, You can check the build-helper-maven-plugin, which has a tiny goal to add a source directory to the project: https://github.com/mojohaus/build-helper-maven-plugin/blob/master/src/main/java/org/codehaus/mojo/buildhelper/AddSourceMojo.java
The maven-eclipse-plugin picks up all source directories listed in the model of the build. Hope that helps, Andreas Am Montag, 8. Juni 2015 schrieb Behrooz Nobakht : > Hi, > > I am trying to follow what `maven-plugin-plugin` Mojo does when generating > HelpMojo.java. > It also updates eclipse's .classpath some way (?) that I can see the > `target/generated-sources/plugin` > as a source folder in my IDE. > > Similarly, this is also what maven-jaxb2-plugin does when generating > sources files from a schema. > > I'm a bit clueless at this moment how to achieve the same for a custom > plugin I'm developing. > Any specific documentation, hints, or example sources I can look into for > this? > > Thanks in advance, > Behrooz >
