Hi Something must be wrong in another place. The eclipse:eclipse goal excutes ok with the supplied (i.e correct) basedir, but the MavenArchetypeMojo for some reason is supplied the working directory, which is not what is supplied in the call.
Here is the patch : Index: MavenArchetypeMojo.java =================================================================== --- MavenArchetypeMojo.java (revisjon 410213) +++ MavenArchetypeMojo.java (arbeidskopi) @@ -33,6 +33,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.io.File; /** * The archetype creation goal looks for an archetype with a given groupId, artifactId, and @@ -122,6 +123,12 @@ */ private MavenProject project; + /** + * @parameter expression="${basedir}" + */ + private File basedir; + + public void execute() throws MojoExecutionException { @@ -143,8 +150,6 @@ groupId = project.getGroupId(); } - String basedir = System.getProperty( "user.dir" ); - if ( packageName == null ) { getLog().info( "Defaulting package to group ID: " + groupId ); @@ -155,7 +160,7 @@ // TODO: context mojo more appropriate? Map map = new HashMap(); - map.put( "basedir", basedir ); + map.put( "basedir", basedir.getAbsolutePath() ); map.put( "package", packageName ); -----Original Message----- From: Trygve Laugstøl [mailto:[EMAIL PROTECTED] Sent: Friday, June 02, 2006 9:26 AM To: Maven Developers List Subject: Re: creating a new project with the MavenEmbedder [EMAIL PROTECTED] wrote: > Hi > > Have not had the time before now. > > It still does not work. The basedir is still set to the current directory. The ${basedir} will be set to the value you set in the embedder, this is working for me in my IDEA plugin where I use the embedder. Can you include the patch from the assembly plugin so I can see what you did? -- 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 DnB NOR 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]