[ http://jira.codehaus.org/browse/MNG-2343?page=all ]
John Casey updated MNG-2343: ---------------------------- Fix Version: 2.1 > DefaultMaven ignores MavenExecutionRequest.getBaseDirectory() when looking > for POM file > --------------------------------------------------------------------------------------- > > Key: MNG-2343 > URL: http://jira.codehaus.org/browse/MNG-2343 > Project: Maven 2 > Type: Bug > Components: Embedding > 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