Before redirecting me to one of the numerous other posts concerning this (like this or this), know that I have already tried that.
What I want to do is simple: I have a folder called generated-sources on the same level as src and I want maven to automatically add it to the source directories.
Here is the snippet as it can also be seen in the questions I linked above:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>generated-sources/enums/</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
When I run it, it actually displays the lines
[INFO] --- build-helper-maven-plugin:1.8:add-source (add-source) @ gui ---
[INFO] Source directory: C:\development\gdg\gui\generated-sources\enums added.
Thing is, even if I do this, the source directories don't appear in the Project Explorer and I can't use them as dependencies either.
Note: I am currently using a m2e Connector Plugin and already tried using the <pluginManagement>
tag. I also already reloaded the Project, yet to no avail.
I am probably just being incredibly stupid again, so thanks for any help. ~Crowley