You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by nicolas de loof <ni...@apache.org> on 2008/01/24 18:11:46 UTC

[MNG-3140] how to get the ${basedir} value from a Plexus component ?

Hello,

I'd like to fix MNG-3140 (add support for ${basedir} property in profile
activation). MNG-2363 <http://jira.codehaus.org/browse/MNG-2363> and
MNG-3017 <http://jira.codehaus.org/browse/MNG-3017> seems to also relie on
File path beeing relative to working directory.

I'd like to use the PathTranslator in FileProfileActivator to replace
${basedir} with an absolute path, ... but this requires to know the current
basedir. How can I get this path during profile activation phase (before
MavenProject is available) ?

Nico.