Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] Classloader issues when executiing a custom plugin

I solve my issue by calling:
  
MavenExecutionResult executionResult = ctx.execute(mavenProject, new ICallable<MavenExecutionResult>() {
    @Override
    public MavenExecutionResult call(IMavenExecutionContext context, IProgressMonitor monitor)
         throws CoreException {
       return maven.lookup(Maven.class).execute(request);
    }
}, monitor);

Passing the MavenProject when executing the request seems to do a better job at setting the proper project classloader. 

Le lun. 16 août 2021 à 17:54, Mickael Istria <mistria@xxxxxxxxxx> a écrit :
Hi,

(FWIW, this mail went first to my spam folder, you may want to double-check it's only me)
So TypeConstants does require InnerClassInfo, are those in the same jar? Did you check the jar that's referenced actually contain the class?

HTH
_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/m2e-dev


--

Back to the top