Enabling IAM management for a Maven project (from code) [message #14182] |
Thu, 18 September 2008 18:21  |
Eclipse User |
|
|
|
Hi,
I'm working on the Buckminster integration for IAM. As you may know,
Buckminster allows its users to "materialize" projects in their
workspaces. In this case those projects are Maven dependencies, and it
would be interesting to put them under IAM management once they've been
materialized. I'm talking about the same thing an IAM user can achieve by
toggling on the "Use Maven dependency management" option in the "Maven 2"
contextual menu.
So my question is: how can I do that automatically from the plugin code?
I'll appreciate any help!
|
|
|
|
|
Re: Enabling IAM management for a Maven project (from code) [message #567561 is a reply to message #14182] |
Fri, 19 September 2008 01:21  |
Eclipse User |
|
|
|
Ismael Teijeiro Florez wrote:
> Hi,
> I'm working on the Buckminster integration for IAM. As you may know,
> Buckminster allows its users to "materialize" projects in their
> workspaces. In this case those projects are Maven dependencies, and it
> would be interesting to put them under IAM management once they've been
> materialized. I'm talking about the same thing an IAM user can achieve by
> toggling on the "Use Maven dependency management" option in the "Maven 2"
> contextual menu.
> So my question is: how can I do that automatically from the plugin code?
> I'll appreciate any help!
Hi,
You can do it by adding the q4e nature to an IProject ( that represents a
project in the workspace ). In the q4e code, there is a utility function
called
addNature(...) in the MavenNatureHelper class in the
org.devzuz.q.maven.jdt.core package. That function will show you how to
add the q4e nature to an IProject.
-erle-
|
|
|
|
Powered by
FUDForum. Page generated in 0.07051 seconds