Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] [m2e-users] Get error "Project configuration is not up-to-date with pom.xml"

You need to override AbstractProjectConfigurator#hasConfigurationChanged(IMavenProjectFacade, ILifecycleMappingConfiguration, MojoExecutionKey, IProgressMonitor)

#mavenProjectChanged is invoked whenever the pom.xml or the project dependencies change, so you can perform some configuration modifications on your project accordingly.

I'm moving this thread to the m2e-dev list, which is more appropriate to discuss m2e API usage.

HIH

Fred Bricon

On Thu, Oct 18, 2012 at 11:03 AM, Zhang, Xueqian <xueqzhang@xxxxxxxx> wrote:
Hi,

I implemented an m2e connector for my own maven plugin. In my configurator, I extended the 'AbstractProjectConfigurator' and only implemented the 'getBuildParticipant' to return my participant.  However, when I modified some configurations of this maven plugin in pom.xml, I got the error 'Project configuration is not up-to-date with pom.xml'.

Is there any other methods I should implement? I debugged the m2e source code and found that there was a method 'mavenProjectChanged' in configurator. Should I implement it? What is the correct logic of this method?

Thanks,
Chandler

_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users




--
"Have you tried turning it off and on again" - The IT Crowd

Back to the top