Hi Now that I got it running, I have discovered something that may be an error in the DefaultExecutionRequest:
This is how I run it: MavenExecutionRequest request = new DefaultMavenExecutionRequest() .setBasedir(new File("E:/Test")).setGoals(goals) .setLocalRepositoryPath( embedder.getLocalRepositoryPath(settings)).setSettings( settings).setProperties(properties).addEventMonitor( new DefaultEventMonitor(new ConsoleLogger( ConsoleLogger.LEVEL_DISABLED, "logger"))); The problem is that is is ignoring the ".setBasedir(new File("E:/Test"))" and creating the project in the current directory ( I am running the "archetype:create" goal). Is this a known error or am I presuming wrong here. Hermod -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 30, 2006 1:23 PM To: dev@maven.apache.org Subject: RE: creating a new project with the MavenEmbedder Hi Bullseye - I had a 2.0.1 version in there. Now they are all 2.1-SNAPSHOT and it works OK. Thnx. Hermod -----Original Message----- From: Trygve Laugstøl [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 30, 2006 1:07 PM To: Maven Developers List Subject: Re: creating a new project with the MavenEmbedder [EMAIL PROTECTED] wrote: > Hi > > I was running in a directory where a pom existed. > > Now running it in an empty directory gives me: > > Component composition failed. No field of type: 'interface > org.apache.maven.artifact.transform.ArtifactTransformationManager' exists in > class 'org.apache.maven.project.DefaultMavenProjectBuilder'. Component: role: > 'org.apache.maven.project.MavenProjectBuilder', implementation: > 'org.apache.maven.project.DefaultMavenProjectBuilder' This looks like an error where you have mixed a few versions of the artifacts. I would guess that you're including both 2.0.x and 2.1.x artitfacts in your class path. -- Trygve --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]