, , , , add-test-source generate-sources generate-test-sources.
, mvn eclipse:eclipse , . , generate-sources, doco (http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html):
Invokes the execution of the lifecycle phase generate-resources prior to executing itself.
, generate-test-sources , . , maven , (http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html), run generate-sources AND generate-test-sources, . , , ( ):
mvn generate-test-sources eclipse:eclipse
... , . , build-helper-maven-plugin , , maven-eclipse-plugin .
, AFAIK ( ), .
() build-helper-maven-plugin maven-eclipse-plugin ( , POM ) generate-test-sources, mvn eclipse:eclipse, :
mvn generate-test-sources
, POM, :
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>add-test-source</id>
<phase>generate-test-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<directory>src/test/java8</directory>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.9</version>
<executions>
<execution>
<phase>generate-test-sources</phase>
<goals>
<goal>eclipse</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
, , mvn eclipse:eclipse , . , maven-eclipse-plugin , generate-test-sources (.. mvn clean install), , , , , , (, clean) .