I have a new test fodler called src / it / java (for integration tests). I added this to my pom.xml (in my simple application example)
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>add-test-source</id>
<phase>generate-test-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>src/it/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
However, when I open my project (by opening pom.xml in intellij) in intellij, then src / it / java is not considered by it as the source folder.
what should I put in my pom.xml so that intellij recognizes src / it / java as the source folder
thank
source
share