[ http://jira.codehaus.org/browse/MNG-2560?page=all ]
Dan Fabulich updated MNG-2560:
------------------------------
Attachment: 2.0.x-patch.txt
Here's a second patch that works on the 2.0.x branch.
> (patch) no useful error message when M2_HOME is misconfigured during bootstrap
> ------------------------------------------------------------------------------
>
> Key: MNG-2560
> URL: http://jira.codehaus.org/browse/MNG-2560
> Project: Maven 2
> Issue Type: Bug
> Components: Bootstrap & Build
> Affects Versions: 2.1
> Reporter: Dan Fabulich
> Attachments: 2.0.x-patch.txt, patch.txt
>
>
> Run the bootstrap build, but configure M2_HOME to be some random directory
> "foo". The tests will fail as maven will be installed into
> foo/../maven-2.1-SNAPSHOT, but then configured to actually use "foo" as the
> execution directory.
> The attached patch modifies the BootstrapInstaller to accept a "destDir"
> instead of a "prefix", and then double-checks that the destDir is a validly
> named destination before actually running the build. This allows the build
> to fail clearly and fast when this common configuration error is made. The
> README is also updated to highlight more clearly that you *must* M2_HOME
> correctly in order for the build to work.
--
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