-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error occurred while calling a method on a Groovy class from classpath.: InvocationTargetException: startup failed: [ERROR] General error during conversion: java.lang.NullPointerException #158
Comments
Suggestion from #84 (comment) did not help |
So if I define the dependency globally then it does not work, but when defined as part of the <plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>3.0.4</version>
<type>pom</type> <!-- required JUST since Groovy 2.5.0 -->
</dependency>
</dependencies> Did I understand something wrong? Please advice, thanks |
It looks to me like this is a multimodule project. The plugin would need Groovy to be a dependency of the submodule(s) in which it runs Although it also looks like it is finding Groovy as a dependency, are you sure when it's working that Maven is choosing the same version ( |
@keeganwitt no it's a single module project. But as you suspected, it actually takes different versions. dependency as part of plugin $ mvn dependency:tree |grep groovy
[INFO] +- org.codehaus.groovy:groovy-all:pom:3.0.4:compile dependency defined globally When done as commented above it looks as follows: $ mvn dependency:tree |grep groovy
[INFO] | +- org.codehaus.groovy:groovy-all:jar:2.4.11:compile However I tried to reproduce the issue again and I am not able. There is definitely something odd, but unless I cannot properly reproduce the issue I may close the issue. |
Just to rule out the obvious, there's no possibility that there's profiles affecting results here? |
I can definitively rule out this - so no, there is no profile which can affect the result |
I have a project which was build successfully in the past. as of a sudden it fails with
[ERROR] Failed to execute goal org.codehaus.gmavenplus:gmavenplus-plugin:1.9.0:compile (default) on project demo-ci-pipeline: Error occurred while calling a method on a Groovy class from classpath.: InvocationTargetException: startup failed: [ERROR] General error during conversion: java.lang.NullPointerException
My configuration looks like this:
and
The text was updated successfully, but these errors were encountered: