Maven 2.x Eclipse Plugin

[regression] plugin fails to create Eclipse projects in 2.7

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Duplicate
  • Affects Version/s: 2.7
  • Fix Version/s: 2.9
  • Component/s: Core : .project
  • Labels:
    None
  • Number of attachments :
    0

Description

Since version 2.7 of the plugin it is no longer possible to create Eclipse projects for Apache commons-vfs.

Steps to reproduce

  1. Check out https://svn.apache.org/repos/asf/commons/proper/vfs/trunk
  2. 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

Activity

Hide
Joerg Schaible added a comment -

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:

svn export -c 792530 https://svn.apache.org/repos/asf/commons/proper/vfs/trunk vfs-MECLIPSE-585
Show
Joerg Schaible added a comment - 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:
svn export -c 792530 https://svn.apache.org/repos/asf/commons/proper/vfs/trunk vfs-MECLIPSE-585
Hide
fabrizio giustina added a comment -

same as MECLIPSE-621

Show
fabrizio giustina added a comment - same as MECLIPSE-621
Hide
fabrizio giustina added a comment -

fixed in 2.9, same as MECLIPSE-621

Show
fabrizio giustina added a comment - fixed in 2.9, same as MECLIPSE-621

People

Vote (2)
Watch (4)

Dates

  • Created:
    Updated:
    Resolved: