-
Bug
-
Resolution: Outdated
-
Neutral
-
None
-
None
-
None
-
Windows, Maven 3.0.4
-
-
Yes
-
Empty show more show less
Used code from main branch, so should affect Magnolia 4.5.7.
Problem
When I try to create an Eclipse project with Maven (mvn eclipse:eclipse) from the Magnolia source code (magnolia_main.pub), I always get the following error from Maven:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-eclipse-plugin:2.8 :eclipse (default-cli) on project magnolia-core: Request to merge when 'filterin g' is not identical. Original=resource src/main/resources: output=target/classes , include=[**/*], exclude=[**/*.java], test=false, filtering=false, merging with =resource src/main/resources: output=target/classes, include=[META-INF/magnolia/ *|**/license.xml], exclude=[**/*.java], test=false, filtering=true -> [Help 1]
Suggested Solution
Apparently it helps to explicitly specify the plugin-version when running the maven-eclipse plugin:
$ mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse
However, the plugin version can also be specified in the (parent-) pom.xml like this:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <version>2.6</version> </plugin>
If specified like this, you can simply run the usual mvn eclipse:eclipse without getting that strange error. Might save people some time.
Acceptance criteria