Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Duplicate
-
Affects Version/s: 2.7
-
Fix Version/s: 2.9
-
Component/s: Core : .project
-
Labels:None
-
Number of attachments :
Description
Since version 2.7 of the plugin it is no longer possible to create Eclipse projects for Apache commons-vfs.
Steps to reproduce
- Check out https://svn.apache.org/repos/asf/commons/proper/vfs/trunk
- Call "mvn eclipse:clean eclipse:eclipse"
Maven stops with an error reported from the plugin. With version 2.6 it is possible to create the projects, call
mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:clean org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse
The output for version 2.7 is:
...
[INFO] ------------------------------------------------------------------------
[INFO] Building Commons VFS Core
[INFO] task-segment: [eclipse:eclipse]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing eclipse:eclipse
[INFO] [antrun:run {execution: javadoc.resources}]
[INFO] Executing tasks
[INFO] Executed tasks
[INFO] [eclipse:eclipse {execution: default-cli}]
[INFO] Using Eclipse Workspace: null
[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER
[INFO] Resource directory's path matches an existing source directory. Resources will be merged with the source directory src/main/java
[INFO] Resource directory's path matches an existing source directory. Resources will be merged with the source directory /home/jos/src/Apache/Commons/Proper/vfs
[INFO] Resource directory's path matches an existing source directory. Resources will be merged with the source directory /home/jos/src/Apache/Commons/Proper/vfs
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Request to merge when 'output' is not identical. Original=resource /home/jos/src/Apache/Commons/Proper/vfs: output=target/test-classes/META-INF, include=[NOTICE.txt], exclude=[**/*.java], test=true, filtering=false, merging with=resource /home/jos/src/Apache/Commons/Proper/vfs: output=target/test-classes, include=[LICENSE.txt], exclude=[**/*.java], test=true, filtering=false
[INFO] ------------------------------------------------------------------------
...
While the error is technically correct and the Eclipse project produced by version 2.6 is not valid, I have still the possibility to fix the Eclipse project manually. However, since the plugin with 2.7 will not create anything, it is really worse and I am completely left alone. Therefore, it is fine to print an explicit waring on the screen, but you should nevertheless create the project and continue.
Issue Links
| This issue duplicates: | ||||
| MECLIPSE-621 | mvn eclipse:eclipse fails or doesn't generate proper .classpath when specifying the same resource directory with different filtering rules |
|
|
|
I shuffled the vfs resources a bit, so the problem is no longer present with the head revision of vfs. To reproduce the issue, you'll have to checkout now version 792530, command line for your convenience: