Skip to main content



      Home
Home » Archived » IAM (Eclipse Integration for Apache Maven) » Enabling IAM management for a Maven project (from code)
Enabling IAM management for a Maven project (from code) [message #14182] Thu, 18 September 2008 18:21 Go to next message
Eclipse UserFriend
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 #14199 is a reply to message #14182] Fri, 19 September 2008 01:21 Go to previous messageGo to next message
Eclipse UserFriend
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-
Re: Enabling IAM management for a Maven project (from code) [message #14215 is a reply to message #14199] Fri, 19 September 2008 06:45 Go to previous message
Eclipse UserFriend
Ok, this one was easy :-)

Thanks!
Re: Enabling IAM management for a Maven project (from code) [message #567561 is a reply to message #14182] Fri, 19 September 2008 01:21 Go to previous message
Eclipse UserFriend
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-
Re: Enabling IAM management for a Maven project (from code) [message #567588 is a reply to message #14199] Fri, 19 September 2008 06:45 Go to previous message
Eclipse UserFriend
Ok, this one was easy :-)

Thanks!
Previous Topic:Enabling IAM management for a Maven project (from code)
Next Topic:Eclipse IAM at ApacheCon and Eclipse Summit Europe
Goto Forum:
  


Current Time: Fri May 09 12:18:50 EDT 2025

Powered by FUDForum. Page generated in 0.07051 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top