Maven 1.x Eclipse Plugin

Eclipse include of resources broken in common usecase

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.9
  • Fix Version/s: 1.9
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

Hi all,

With the latest and greatest of the Eclipse plugin, with the new resource include issue, I found a usecase where this fails. This came up when I was attempting to work with the Jakarta Commons Sandbox project "email". I have a working, well, failing, example for the unit test for the Eclipse plugin. Just add:

<resource>
<targetPath>META-INF</targetPath>
<includes>
<include>NOTICE.txt</include>
</includes>
</resource>

to the src/plugin-test/project.xml <resources/> section, and the resulting eclipse .classpath has this entry:
<classpathentry excluding="" including="NOTICE.txt|" kind="src" path=".">
</classpathentry>.

the first problem is that there should be an output directory of /target/classes/META-INF. But, that still doesn't work because then it complains about nesting:
Cannot nest output folder '/target/classes/META-INF' inside output folder '/target/classes' .

I am thinking that the whole including of resources may need to be a configurable on off thing...

Eric

Activity

Hide
David Eric Pugh added a comment -

Fixed by adding maven.eclipse.resources.addtoclasspath property set to false.

Show
David Eric Pugh added a comment - Fixed by adding maven.eclipse.resources.addtoclasspath property set to false.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: