IndexOutOfRangeExcpetion in SettingsGeneratorMojo.GetVendorsFromMicrosoft -------------------------------------------------------------------------
Key: NPANDAY-380 URL: https://issues.apache.org/jira/browse/NPANDAY-380 Project: NPanday Issue Type: Bug Components: Maven Plugins Affects Versions: 1.3-incubating Environment: Windows 7 Pro, 32-bit. Visual Studio 2010. Maven 3.0.2, JDK 1.6.0_22 Reporter: Peter Johnson I created a simple project using the maven-archetype-dotnet-simple archetype. Without making any changes I attempted to build the project via "mvn package". Got this error: Exception occcurred: System.IndexOutOfRangeException: Index was outside the bounds of the array. at NPanday.Plugin.Settings.SettingsGeneratorMojo.GetVendorsForMicrosoft(RegistryKey microsoftRegistryKey) at NPanday.Plugin.Settings.SettingsGeneratorMojo.Execute() at NPanday.Plugin.AbstractMojo.Execute() at NPanday.Plugin.Loader.PluginLoader.Main(String[] args) Examining the method in question, it appears that the "vendors" array is being initialized to have 4 entries (line 189), and then the code attempts to fill it with 5 entries if all 5 versions of the .Net Framework on the machine. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira