You need the Maven Embedder. Rather than rehash that component's status in this 
thread, please search the list archives.

Justin

On Jun 23, 2010, at 7:20 AM, "Villemos, Gert" <[email protected]> wrote:

> I would like to use Maven at Runtime, i.e. use a project POM to define
> the dependencies, then at application startup use Maven to resolve the
> dependencies and download them.
> 
> 
> 
> Google reveals that I'm not the only one with this idea, but I didn't
> find any examples of descriptions of how to do it. Codehaus are
> themselves sort of doing this in connection with the Sonar tool, i.e.
> the Maven sonar plugin will download dependencies from the Artifactory
> server embedded in Sonar at runtime, when analysing source code. Cool.
> 
> 
> 
> I guess I could simply use the project POM, then run maven command line
> with the resolve dependencies goal, but for some reason that seems like
> a hack to me. There must be an API somewhere that does the same.
> 
> 
> 
> Am I on the right track? Any examples out there? Any ideas?
> 
> 
> 
> Cheers,
> 
> Villemos.
> 
> 
> 
> Please help Logica to respect the environment by not printing this email  / 
> Pour contribuer comme Logica au respect de l'environnement, merci de ne pas 
> imprimer ce mail /  Bitte drucken Sie diese Nachricht nicht aus und helfen 
> Sie so Logica dabei, die Umwelt zu schützen. /  Por favor ajude a Logica a 
> respeitar o ambiente nao imprimindo este correio electronico.
> 
> 
> 
> This e-mail and any attachment is for authorised use by the intended 
> recipient(s) only. It may contain proprietary material, confidential 
> information and/or be subject to legal privilege. It should not be copied, 
> disclosed to, retained or used by, any other party. If you are not an 
> intended recipient then please promptly delete this e-mail and any attachment 
> and all copies and inform the sender. Thank you.
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to