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-29 Thread David Portabella
erflow.com/questions/4206679/can-anyone-give-a-good-example-of-using-org-apache-maven-cli-mavencli-programatt/6255514#6255514 > > -- > Cheers, Stuart > > On 29 April 2013 21:22, David Portabella > wrote: > > > I have a very simple project that starts maven p

running maven programmatically, the DefaultRemoteRepositoryManager.connectorFactories is empty

2013-04-29 Thread David Portabella
onnectorFactory.class Any idea of why in the first case the DefaultRemoteRepositoryManager.connectorFactories is empty? how to modify the Example to make it work? Regards, David Portabella

debug "mvn clean install" from IntelliJ

2013-04-24 Thread David Portabella
: org.apache.maven.eventspy.internal.EventSpyDispatcher roleHint: [ERROR] Caused by: null --- What am I missing? How can I run/debug a "mvn clean install" from IntelliJ? Regards, David --- David Portabella - Senior IT Architect AlmaZ Informatique SA - www.almazsa.com david.portabe...@a