/** * Loads (and upgrades) nexus.xml on the fly. Warning: this method brings up a LOT of Nexus internals! Use it * sparingly! */ public Configuration loadAndUpgradeNexusConfiguration() throws IOException { try { NexusConfiguration nexusConfiguration; nexusConfiguration = getTest().getITPlexusContainer().lookup(NexusConfiguration.class); nexusConfiguration.loadConfiguration(true); return nexusConfiguration.getConfigurationModel(); } catch (Exception e) { throw new IOException(e); } }
nexusConfiguration.loadConfiguration( true );