[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [m2e-dev] JDTCompilationParticipant
|
I have it used in GenericBuildParticipant:
private boolean getRequireFullBuild(IMavenProjectFacade
projectFacade) throws CoreException {
if(projectFacade.getResolverConfiguration().isSkipCompiler()) {
// see MNGECLIPSE-823
return projectFacade.getProject().getSessionProperty(IMavenConstants.FULL_MAVEN_BUILD)
!= null;
}
return false;
}
While JDTCompilationParticipant calls:
public void requestFullMavenBuild(IProject project) throws CoreException {
project.setSessionProperty(IMavenConstants.FULL_MAVEN_BUILD, Boolean.TRUE);
}
Removing JDTCompilationParticipant solves my looping builds; though it
does not mean it is the cause of my issue.
But it certainly contributes to it.
Regards.
--
Laurent
2011/1/26 Igor Fedorenko <igor@xxxxxxxxxxxxxx>:
> Even though JDTCompilationParticipant is present m2e 0.12.x, it does not
> do anything, i.e. requireFullBuild is not used anywhere.
> JDTCompilationParticipant has been removed from 0.13. Something else
> triggers full rebuild and/or restarts the build.
>
> --
> Regards,
> Igor
>
> On 11-01-26 06:04 AM, Laurent RUAUD wrote:
>>
>> Hi.
>>
>> I'm investigating on loop building issues using m2e-core and m2e-wtp
>> and I went to this class (JDTCompilationParticipant).
>> This class declares that Maven needs a full rebuild when a clean
>> operation is called (as a fix for MNGECLIPSE-823).
>>
>> However, It seems that this behaviour may be the cause of my build
>> looping.
>> It sets the flag requireFullBuild to true and you'll see AUTO_BUILD
>> requireFullBuild in Maven console.
>> Actually, Eclipse sometimes seems to call a clean operation after a
>> build one (maybe because of dependent modules in WTP) and then, Maven
>> ask for a full rebuild, looping between clean and build operations.
>> This behaviour has been reported in MECLIPSEWTP-77 but investigations
>> are not easy as this does not occur each time.
>>
>> Does anybody know if the JDTCompilationParticipant fix is still needed?
>> Would it be possible to make this fix less radical?
>>
>> Thanks in advance.
>> --
>> Laurent
>> _______________________________________________
>> m2e-dev mailing list
>> m2e-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/m2e-dev
>
> _______________________________________________
> m2e-dev mailing list
> m2e-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/m2e-dev
>