Maven 1.x Eclipse Plugin

allow relative paths for overriden jars

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Trivial Trivial
  • Resolution: Unresolved
  • Affects Version/s: 1.9
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    All
  • Number of attachments :
    0

Description

Please consider the following;

A very small change will allow for jars to be kept inside your project folders
without hardcoded paths ending up in your Eclipse .classpath file.

Excuse me for the format, but i've no diff available at the moment

in file templates/classpath.jelly, near the end change the following
Old:
<j:otherwise>
<classpathentry kind="lib" path="${lib.path}"/>
</j:otherwise>

New:
<j:otherwise>
<maven:makeRelativePath var="localJarPath" basedir="${basedir}" path="${lib.path}" separator="/"/>
<classpathentry kind="lib" path="${localJarPath}"/>
</j:otherwise>

<maven:makeRelativePath> will leave the path as it is not relative to "basedir"

kind regards,
Guido

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:

Time Tracking

Estimated:
5m
Original Estimate - 5 minutes
Remaining:
5m
Remaining Estimate - 5 minutes
Logged:
Not Specified
Time Spent - Not Specified