You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jason van Zyl (JIRA)" <ji...@codehaus.org> on 2006/12/31 23:05:09 UTC

[jira] Closed: (MNG-2343) DefaultMaven ignores MavenExecutionRequest.getBaseDirectory() when looking for POM file

     [ http://jira.codehaus.org/browse/MNG-2343?page=all ]

Jason van Zyl closed MNG-2343.
------------------------------

    Resolution: Fixed

All actions the embedder peforms now takes a request and within the request you can set a POM file.

> DefaultMaven ignores MavenExecutionRequest.getBaseDirectory() when looking for POM file
> ---------------------------------------------------------------------------------------
>
>                 Key: MNG-2343
>                 URL: http://jira.codehaus.org/browse/MNG-2343
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Embedding
>    Affects Versions: 2.0.5
>            Reporter: Stepan Roh
>             Fix For: 2.1
>
>
> I try to embed Maven and because the fix for MNG-1181 is not in any released version or snapshot I had to use code from SVN trunk (I don't know whether it is 2.0.5 or 2.1, it presents itself as 2.1-SNAPSHOT, but I think it will be in fact 2.0.5). I noticed that when base dir is given without alternate POM file it will search for POM in current directory (in user.dir" system property). If it is a feature, it is not a very good feature, but I guess it is a bug.
> To fix it DefaultMaven.getProjectFiles() should use request.getBaseDirectory() instead of userDir.
> As a workaround one can use MavenExecutionRequest.setAlternatePOMFile() which will parse correct POM file.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira