the property ${project.artifact.selectedVersion.majorVersion} does not get resolved after projectBuilder.build()?

2013-04-30 Thread David Portabella
When calling to this function, List projectBuildingResults = projectBuilder.build(Arrays.asList(new File(pomFile)), true, projectBuildingRequest); all the properties used in the pom file, such as ${spring.version} in here, get resolved successfully. org.springframework sprin

ConfigurationContainer.getConfiguration returns Object. Is it always a Xpp3Dom instance?

2013-04-30 Thread David Portabella
the documentation for org.apache.maven.model.ConfigurationContainer.getConfiguration() says "Get the configuration as DOM object", however it returns an Object. how to handle this? is it always an instance of org.codehaus.plexus.util.xml.Xpp3Dom? Regards, David

Re: running maven programmatically, the DefaultRemoteRepositoryManager.connectorFactories is empty

2013-04-30 Thread Stuart McCulloch
On 30 Apr 2013, at 07:54, David Portabella wrote: > it works after adding these two dependencies, thanks! :) > > but it seems to me that there is something wrong with this dependency > injection mechanism. > it would be fantastic to have something that fails at compile time (as the > implicit in