[ http://jira.codehaus.org/browse/MNG-480?page=comments#action_41478 ]
John Casey commented on MNG-480: -------------------------------- In fact, this is how these two ITs originally worked. It's the only way the ever could have worked. Now, even this is not possible. Here's why: When we bootstrap m2, it builds all of the plugins into whatever local repository you have specified on your local machine. When it0023 and it0026 run, they re-specify the settings, and wind up using the default location for the local repository - ~/.m2/repository. This means that they will inevitably try to find the maven-compiler-plugin (among others) in the remote repository, since we didn't install it into ~/.m2/repository. This is where things fall apart, and there are only three ways to fix it: 1. Require that everyone bootstrapping m2 use the default local repository, so that the alternate settings in these ITs will incidentally use the same location for the local repository. 2. Set the local repository to some concrete value in these ITs, and force everyone to bootstrap using that location. 3. Setup a system property for overriding the local repository from the CLI, and somehow rig the IT verifier to pass this system property in through the bootstrap script, through the verifier, and on to the IT runtime. This might be feasible; I'll explore it today. I originally put the system properties into the settings builder specifically to allow these two ITs to run, but I think it's no longer enough. For me, the bottom line is that these ITs were merely testing inheritance of global settings into user settings, and I believe we have (or can build) a unit test to take care of the same concerns. I'm not at all convinced that jumping through all these hoops for these two tests is worthwhile. > fix it0023, it0026 > ------------------ > > Key: MNG-480 > URL: http://jira.codehaus.org/browse/MNG-480 > Project: Maven 2 > Type: Bug > Reporter: Brett Porter > Assignee: John Casey > Fix For: 2.0-rc1 > > > disabled not due to failure, but needing to know the local repository in > settings.xml. Force local repository for integration tests via a sys property > instead. -- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]