AFAIK the best way is to use MavenProjectBuilder.build( file, localRepository, null );
I'm not sure if null can be passed for localrepository. It is required to resolve project inheritence, so MAY be ignored. Nico. 2007/12/4, Saloucious <[EMAIL PROTECTED]>: > > > Hi, > > I would like to know which is the best way to build a MavenProject > instance > from a File. > > I do not want to use lookupMojo because i don't want to load my mojo but > just unit testing an Util Class. > -- > View this message in context: > http://www.nabble.com/-Unit-Testing--Create-MavenProject-from-a-File-tf4944127s177.html#a14154043 > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >