Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] Importing maven projects programmatically

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.

Back to the top