Open joergarmoneit opened 1 year ago
same here: Cannot find or load class de.kontext_e.jqassistant.plugin.git.store.descriptor.GitRepositoryDescriptor
is anybody still working on this library, or should I fork it?
Hi, unfortunately I couldn't reproduce the issue (jQA 2.0.1, Git-Plugin 1.9.0, JDK 11). Can you post your setup?
FYI: Although jQA 2.0.x is available, it's not yet officially anounced. We're currently closing up on the documentation and tutorials. If you need help with the setup, please check out https://jqassistant.github.io/jqassistant/doc/2.0.0/manual/index.html and https://github.com/jqassistant-tutorials/jqassistant-101/tree/master/getting-started-spring-boot-maven There will also be a migration guide in the latter repository soon.
Additionally pinging @jensnerche Are you still available to maintain the plugin(s) in this organization? Let us know if not and if we should migrate them to the official jqassistant-plugin organization :)
I used JDK 17 instead, which jQAssistant is meant to support in 2.0+.
Stephan Pirnbaum @.***> schrieb am Do., 27. Juli 2023, 17:12:
Hi, unfortunately I couldn't reproduce the issue (jQA 2.0.1, Git-Plugin 1.9.0, JDK 11). Can you post your setup?
FYI: Although jQA 2.0.x is available, it's not yet officially anounced. We're currently closing up on the documentation and tutorials. If you need help with the setup, please check out https://jqassistant.github.io/jqassistant/doc/2.0.0/manual/index.html and https://github.com/jqassistant-tutorials/jqassistant-101/tree/master/getting-started-spring-boot-maven There will also be a migration guide in the latter repository soon.
Additionally pinging @jensnerche https://github.com/jensnerche Are you still available to maintain the plugin(s) in this organization? Let us know if not and if we should migrate them to the official jqassistant-plugin organization :)
— Reply to this email directly, view it on GitHub https://github.com/kontext-e/jqassistant-plugins/issues/75#issuecomment-1653823994, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABAF3XQQPMV2ON43S7WQPGDXSKAMZANCNFSM6AAAAAAYLXVLEU . You are receiving this because you commented.Message ID: @.***>
Using
<build>
<plugins>
<plugin>
<groupId>com.buschmais.jqassistant</groupId>
<artifactId>jqassistant-maven-plugin</artifactId>
<version>2.0.4</version>
<executions>
<execution>
<id>default-cli</id>
<goals>
<goal>scan</goal>
<goal>analyze</goal>
</goals>
<configuration>
<scanIncludes>
<scanInclude>
<path>${project.basedir}/.git</path>
</scanInclude>
</scanIncludes>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>de.kontext-e.jqassistant.plugin</groupId>
<artifactId>jqassistant.plugin.git</artifactId>
<version>1.9.0</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
with
λ mvn -v
Apache Maven 3.8.7 (b89d5959fcde851dcb1c8946a785a163f14e1e29)
Maven home: C:\Users\John\work\tools\apache-maven-3.8.7
Java version: 17.0.2, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-17.0.2
Default locale: en_GB, platform encoding: Cp1252
OS name: "windows 11", version: "10.0", arch: "amd64", family: "windows"
I get:
[DEBUG] Using classloader 'com.buschmais.jqassistant.core.runtime.api.plugin.PluginClassLoader@95958d9'
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for cim 5.71.0.0-SNAPSHOT:
[INFO]
[INFO] cim ................................................ FAILURE [ 2.898 s]
[INFO] cim-shared ......................................... SKIPPED
[INFO] cim-rest-sdk ....................................... SKIPPED
[INFO] cim-rest-v4-client-sdk ............................. SKIPPED
[INFO] cim-web ............................................ SKIPPED
[INFO] cim-rest-v4-server-sdk ............................. SKIPPED
[INFO] cim-rest-core ...................................... SKIPPED
[INFO] cim-rest-v3 ........................................ SKIPPED
[INFO] cim-rest ........................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.051 s
[INFO] Finished at: 2023-07-28T08:30:59+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.buschmais.jqassistant:jqassistant-maven-plugin:2.0.4:scan (default-cli) on project cim: Execution default-cli of goal com.buschmais.jqassistant:jqassistant-maven-plugin:2.0.4:scan failed: Cannot find or load class de.kontext_e.jqassistant.plugin.git.store.descriptor.GitRepositoryDescriptor: com/buschmais/jqassistant/plugin/common/api/model/NamedDescriptor: com.buschmais.jqassistant.plugin.common.api.model.NamedDescriptor -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.buschmais.jqassistant:jqassistant-maven-plugin:2.0.4:scan (default-cli) on project cim: Execution default-cli of goal com.buschmais.jqassistant:jqassistant-maven-plugin:2.0.4:scan failed: Cannot find or load class de.kontext_e.jqassistant.plugin.git.store.descriptor.GitRepositoryDescriptor
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:375)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:298)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goal com.buschmais.jqassistant:jqassistant-maven-plugin:2.0.4:scan failed: Cannot find or load class de.kontext_e.jqassistant.plugin.git.store.descriptor.GitRepositoryDescriptor
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:148)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:298)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: com.buschmais.jqassistant.core.runtime.api.plugin.PluginRepositoryException: Cannot find or load class de.kontext_e.jqassistant.plugin.git.store.descriptor.GitRepositoryDescriptor
at com.buschmais.jqassistant.core.runtime.impl.plugin.AbstractPluginRepository.getType (AbstractPluginRepository.java:53)
at com.buschmais.jqassistant.core.runtime.impl.plugin.StorePluginRepositoryImpl.getTypes (StorePluginRepositoryImpl.java:60)
at com.buschmais.jqassistant.core.runtime.impl.plugin.StorePluginRepositoryImpl.<init> (StorePluginRepositoryImpl.java:29)
at com.buschmais.jqassistant.core.runtime.impl.plugin.PluginRepositoryImpl.initialize (PluginRepositoryImpl.java:43)
at com.buschmais.jqassistant.scm.maven.provider.PluginRepositoryProvider.getPluginRepository (PluginRepositoryProvider.java:42)
at com.buschmais.jqassistant.scm.maven.AbstractMojo.execute (AbstractMojo.java:113)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:298)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: java.lang.NoClassDefFoundError: com/buschmais/jqassistant/plugin/common/api/model/NamedDescriptor
at java.lang.ClassLoader.defineClass1 (Native Method)
at java.lang.ClassLoader.defineClass (ClassLoader.java:1012)
at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:150)
at java.net.URLClassLoader.defineClass (URLClassLoader.java:524)
at java.net.URLClassLoader$1.run (URLClassLoader.java:427)
at java.net.URLClassLoader$1.run (URLClassLoader.java:421)
at java.security.AccessController.doPrivileged (AccessController.java:712)
at java.net.URLClassLoader.findClass (URLClassLoader.java:420)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf (ClassRealm.java:425)
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass (SelfFirstStrategy.java:42)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass (ClassRealm.java:271)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:247)
at java.lang.ClassLoader.loadClass (ClassLoader.java:574)
at java.lang.ClassLoader.loadClass (ClassLoader.java:520)
at com.buschmais.jqassistant.core.runtime.impl.plugin.AbstractPluginRepository.getType (AbstractPluginRepository.java:49)
at com.buschmais.jqassistant.core.runtime.impl.plugin.StorePluginRepositoryImpl.getTypes (StorePluginRepositoryImpl.java:60)
at com.buschmais.jqassistant.core.runtime.impl.plugin.StorePluginRepositoryImpl.<init> (StorePluginRepositoryImpl.java:29)
at com.buschmais.jqassistant.core.runtime.impl.plugin.PluginRepositoryImpl.initialize (PluginRepositoryImpl.java:43)
at com.buschmais.jqassistant.scm.maven.provider.PluginRepositoryProvider.getPluginRepository (PluginRepositoryProvider.java:42)
at com.buschmais.jqassistant.scm.maven.AbstractMojo.execute (AbstractMojo.java:113)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:298)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: java.lang.ClassNotFoundException: com.buschmais.jqassistant.plugin.common.api.model.NamedDescriptor
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass (SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass (ClassRealm.java:271)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:247)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:239)
at java.lang.ClassLoader.defineClass1 (Native Method)
at java.lang.ClassLoader.defineClass (ClassLoader.java:1012)
at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:150)
at java.net.URLClassLoader.defineClass (URLClassLoader.java:524)
at java.net.URLClassLoader$1.run (URLClassLoader.java:427)
at java.net.URLClassLoader$1.run (URLClassLoader.java:421)
at java.security.AccessController.doPrivileged (AccessController.java:712)
at java.net.URLClassLoader.findClass (URLClassLoader.java:420)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf (ClassRealm.java:425)
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass (SelfFirstStrategy.java:42)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass (ClassRealm.java:271)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:247)
at java.lang.ClassLoader.loadClass (ClassLoader.java:574)
at java.lang.ClassLoader.loadClass (ClassLoader.java:520)
at com.buschmais.jqassistant.core.runtime.impl.plugin.AbstractPluginRepository.getType (AbstractPluginRepository.java:49)
at com.buschmais.jqassistant.core.runtime.impl.plugin.StorePluginRepositoryImpl.getTypes ( com.buschmais.jqassistant.scm.maven.provider.PluginRepositoryProvider.getPluginRepository (PluginRepositoryProvider.java:42)
at com.buschmais.jqassistant.core.runtime.impl.plugin.AbstractPluginRepository.getType (AbstractPluginRepository.java:49)
at com.buschmais.jqassistant.core.runtime.impl.plugin.StorePluginRepositoryImpl.getTypes (StorePluginRepositoryImpl.java:60)
at com.buschmais.jqassistant.core.runtime.impl.plugin.StorePluginRepositoryImpl.<init> (StorePluginRepositoryImpl.java:29)
at com.buschmais.jqassistant.core.runtime.impl.plugin.PluginRepositoryImpl.initialize (PluginRepositoryImpl.java:43)
at com.buschmais.jqassistant.core.runtime.impl.plugin.StorePluginRepositoryImpl.<init> (StorePluginRepositoryImpl.java:29)
at com.buschmais.jqassistant.core.runtime.impl.plugin.PluginRepositoryImpl.initialize (PluginRepositoryImpl.java:43)
at com.buschmais.jqassistant.scm.maven.provider.PluginRepositoryProvider.getPluginRepository (PluginRepositoryProvider.java:42)
at com.buschmais.jqassistant.scm.maven.AbstractMojo.execute (AbstractMojo.java:113)
at com.buschmais.jqassistant.scm.maven.provider.PluginRepositoryProvider.getPluginRepository (PluginRepositoryProvider.java:42)
at com.buschmais.jqassistant.scm.maven.AbstractMojo.execute (AbstractMojo.java:113)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:298)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:568)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
The same stack trace comes up for me. My configuration is almost identical:
mvn -v
Picked up JAVA_TOOL_OPTIONS: -Djavax.net.ssl.trustStoreType=WINDOWS-ROOT
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: C:\Anwendungen\apache-maven-3.8.6
Java version: 17.0.1, vendor: Red Hat, Inc., runtime: C:\Anwendungen\java-17-openjdk-17.0.1.0.12-1.win.x86_64
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
I was able to reproduce the issue with your setup.
1.) The pom-based configuration of jQAssistant is not available in 2.0 anymore, it was replaced by a yaml-based approach. For that, you can either create a .jqassistant.yml
- file in the root folder of your project with the follwong content:
jqassistant:
plugins:
# Scanner implementation for the Git history
- group-id: de.kontext-e.jqassistant.plugin
artifact-id: jqassistant.plugin.git
version: 1.9.0
scan:
include:
files:
# Git repository
- ${project.basedir}/.git
This should already resolve your issues.
2.) It's however possible to declare the dependency to the Git-Plugin in the pom.xml as follows:
<plugin>
<groupId>com.buschmais.jqassistant</groupId>
<artifactId>jqassistant-maven-plugin</artifactId>
<version>2.0.4</version>
<executions>
<execution>
<id>default-cli</id>
<goals>
<goal>scan</goal>
<goal>analyze</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>de.kontext-e.jqassistant.plugin</groupId>
<artifactId>jqassistant.plugin.git</artifactId>
<version>1.9.0</version>
</dependency>
</dependencies>
</plugin>
This approach works well for plugins that are already migrated to jQA 2.0, but since the Git-Plugin is still based on jQA 1, differences in the loading of plugins come into play. Generally speaking, it is not recomended to use this approach.
3.) FYI, the config could still be put inside the pom.xml, but in yaml-format:
<plugin>
<groupId>com.buschmais.jqassistant</groupId>
<artifactId>jqassistant-maven-plugin</artifactId>
<version>2.0.4</version>
<executions>
<execution>
<id>default-cli</id>
<goals>
<goal>scan</goal>
<goal>analyze</goal>
</goals>
<configuration>
<yaml>
jqassistant:
scan:
include:
files:
- ${project.basedir}/.git
</yaml>
</configuration>
</execution>
</executions>
</plugin>
As mentioned, there is a migration guide currently in the making.
I am using jQAssistant with Maven and the git plugin. Currently I am using jQAssistant version 1.12.0. I want to upgrade to the latest version 2.0.1. With jQA 1.12.0 the git plugin version 1.9.0 works as desired (
mvn jqassistant:scan
). With jQA 2.0.1 I get the following error message when scanning:[ERROR] Failed to execute goal com.buschmais.jqassistant:jqassistant-maven-plugin:2.0.1:scan (default-cli) on project xyz: Execution default-cli of goal com.buschmais.jqassistant:jqassistant-maven-plugin:2.0.1:scan failed: Cannot find or load class de.kontext_e.jqassistant.plugin.git.store.descriptor.GitRepositoryDescriptor: com/buschmais/jqassistant/plugin/common/api/model/NamedDescriptor: com.buschmais.jqassistant.plugin.common.api.model.NamedDescriptor
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.buschmais.jqassistant:jqassistant-maven-plugin:2.0.1:scan (default-cli) on project xyz: Execution default-cli of goal com.buschmais.jqassistant:jqassistant-maven-plugin:2.0.1:scan failed: Cannot find or load class de.kontext_e.jqassistant.plugin.git.store.descriptor.GitRepositoryDescriptor