[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [m2e-users] Importing maven projects programmatically
|
See org.eclipse.m2e.core.project.IProjectConfigurationManager
#importProjects takes collection of MavenProjectInfo, which describe
projects to be imported, and creates and configures corresponding
workspace projects.
#updateProjectConfiguration updates workspace project configuration.
In the future, please use m2e-dev mailing list to ask questions about
m2e and m2e extension development.
--
Regards,
Igor
On Fri, May 1, 2015, at 08:25 AM, Philippe Riand wrote:
> We created some wizards in Eclipse that generate an hierarchy of m2e
> enabled projects. Now, at the end the creation, we’d like to
> automatically import these projects into the workspace, using the “Maven
> Import” capability so the m2e connectors are triggered. We want to avoid
> generating the Eclipse specific files, like .project, but let m2e create
> them for us. I’ve been looking at the m2e.core plug-in, but it seems that
> most of the APIs are internals.
> Can you please help on how this can be done? What I have is the path of
> the projects, and I need the whole hierarchy to be imported. Similarly,
> I’d also like to programmatically execute the “Maven Update” command when
> some changes are applied to projects.
> Thanks!
> _______________________________________________
> m2e-users mailing list
> m2e-users@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/m2e-users