This is the build-section of my pom.xml. I have only one pom.xml for the whole project.
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<versionRange>[1.1,)</versionRange>
<goals>
<goal>add-source</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/projects</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
<dependencies>
</dependencies>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.5.5</version>
<configuration>
<descriptors>
<descriptor>src/main/assembly/jar-dep.xml</descriptor>
<descriptor>src/main/assembly/src-zip.xml</descriptor>
<descriptor>src/main/assembly/bin-zip.xml</descriptor>
</descriptors>
<archive>
<manifest>
<mainClass>myProject.Main</mainClass>
</manifest>
</archive>
<appendAssemblyId>true</appendAssemblyId>
<archiverConfig>
<compress>true</compress>
</archiverConfig>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
If I remove the -tags, it comiles just fine, but eclipse complains as follows: Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:build-helper-maven-plugin:1.1:add-source (execution: add-source, phase: generate-sources)
If I leave the tags, eclipse shows no errors in the pom.xml, but the additional sources are not compiled and not added to the jar-files. What is wrong?