Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Maven Integration (M2E) » Accessing effective POM - AbstractProjectConfigurator(How to access effective pom in the configure() method?)
Accessing effective POM - AbstractProjectConfigurator [message #504759] Tue, 22 December 2009 14:24 Go to next message
Bob Bick is currently offline Bob BickFriend
Messages: 11
Registered: July 2009
Junior Member
I am using AbstractProjectConfigurator to perform processing when M2Eclipse is creating a new "M2 project" in Eclipse.

The configure method is invoked and has this signature:

public void configure(ProjectConfigurationRequest configRequest,IProgressMonitor progresMonitor) throws CoreException

I would like to access effective POM values using the configRequest formal parameter but not sure how to do that. For example, I'd like to access the finalName element.

How do I access effective POM data from within the configure method?

Any help would be greatly appreciated.

Thanks!
Bob

[Updated on: Tue, 22 December 2009 09:31]

Report message to a moderator

Re: Accessing effective POM - AbstractProjectConfigurator [message #506233 is a reply to message #504759] Wed, 06 January 2010 16:13 Go to previous message
Bob Bick is currently offline Bob BickFriend
Messages: 11
Registered: July 2009
Junior Member
I found the solution to this issue...

You can access the build information using this:

String finalName = configRequest.getMavenProject().getModel().getBuild().getFinalName();
Previous Topic:DisplayTag Maven Dependencies Error
Next Topic:SVN and maven modules?
Goto Forum:
  


Current Time: Wed Nov 14 15:17:40 GMT 2018

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

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

Back to the top