Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Duplicate
-
2.7
-
None
-
None
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.
Attachments
Issue Links
- duplicates
-
MECLIPSE-621 mvn eclipse:eclipse fails or doesn't generate proper .classpath when specifying the same resource directory with different filtering rules
- Closed