java - Automatically add additional source directories to eclipse build path for maven project -


i have maven project conforming standard maven directory structure has lots of unit , integration tests lying on top of each other in src/test/java directory. like

  • an additional source directory (src/integration-test/java)
  • eclipse automatically realise there directory if possible
  • unit tests run surefire, integration tests run failsafe

i have tried using build-helper-maven-plugin every way can think of yet eclipse still doesn't seem see new directory on build path.

    <plugin>     <groupid>org.codehaus.mojo</groupid>     <artifactid>build-helper-maven-plugin</artifactid>     <version>1.10</version>     <executions>         <execution>             <id>add-source</id>             <phase>generate-sources</phase>             <goals>                 <goal>add-source</goal>             </goals>             <configuration>                 <sources>                     <source>src/integration-test/java</source>                 </sources>             </configuration>         </execution>     </executions> </plugin> 


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -