groovy / GMavenPlus

A rewrite of GMaven, a Maven plugin for Groovy
Other
285 stars 35 forks source link

InvocationTargetException: java.lang.ClassCastException #257

Open spyhunter99 opened 1 year ago

spyhunter99 commented 1 year ago

I'm getting an interment issue when building with the following versions..

my use case is basically to run some groovy scripts to download and cache and file and unzip it during the pre-integration-test phase using the maven plugin

Maven error

 Error occurred while calling a method on a Groovy class from classpath.: InvocationTargetException: java.lang.ClassCastException: class org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to class org.apache.xerces.xni.parser.XMLParserConfiguration (org.apache.xerces.parsers.XIncludeAwareParserConfiguration is in unnamed module of loader java.net.URLClassLoader @1182bd1c; org.apache.xerces.xni.parser.XMLParserConfiguration is in unnamed module of loader java.net.URLClassLoader @4d10f182) -> [Help 1]

usually if i just retry it, it's resume with no issue but i honestly have no idea what's causing this. It's usually pretty rare, but today i've been getting this nearly every time the plugin fires.

keeganwitt commented 1 year ago

Sorry for the late reply. I missed this.

Can you provide a list of your project dependencies? It seems like maybe the classpath is being inconsistently constructed. Very strange...