Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 22:21 Go to next message
Ismael Teijeiro Florez is currently offline Ismael Teijeiro Florez
Messages: 12
Registered: July 2009
Junior Member
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 05:21 Go to previous messageGo to next message
Erle Czar Mantos is currently offline Erle Czar Mantos
Messages: 6
Registered: July 2009
Junior Member
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 10:45 Go to previous message
Ismael Teijeiro Florez is currently offline Ismael Teijeiro Florez
Messages: 12
Registered: July 2009
Junior Member
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 05:21 Go to previous message
Erle Czar Mantos is currently offline Erle Czar Mantos
Messages: 6
Registered: July 2009
Junior Member
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 10:45 Go to previous message
Ismael Teijeiro Florez is currently offline Ismael Teijeiro Florez
Messages: 12
Registered: July 2009
Junior Member
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: Thu Oct 23 15:28:26 GMT 2014

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

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