Riduidel / aadarchi

A maven archetype to generate easily projects allowing architecture description using a mix of C4, agile architecture, Asciidoc and PlantUML
https://riduidel.github.io/aadarchi/
Apache License 2.0
40 stars 12 forks source link

Doesn't work out-of-the-box #315

Closed lhauspie closed 1 year ago

lhauspie commented 1 year ago
$ mvn -v  
Apache Maven 3.8.2 (ea98e05a04480131370aa0c110b8c54cf726c06f)
Maven home: /Users/lhauspie/.asdf/installs/maven/3.8.2
Java version: 11, vendor: Oracle Corporation, runtime: /Users/lhauspie/.asdf/installs/java/openjdk-11
Default locale: fr_FR, platform encoding: UTF-8
OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac"

Initiate the project with:

$ mvn archetype:generate -DarchetypeVersion=0.1.6 -Daadarchi-version=0.1.6 -DarchetypeGroupId=io.github.Riduidel.aadarchi -DarchetypeArtifactId=archetype 

Then just build:

$ mvn clean install

The interesting part of the log seems to be (Complete log bellow):

[ERROR] Failed to execute goal io.github.Riduidel.aadarchi:aadarchi-maven-plugin:0.1.6:generate-model (default) on project example: Execution default of goal io.github.Riduidel.aadarchi:aadarchi-maven-plugin:0.1.6:generate-model failed: An API incompatibility was encountered while executing io.github.Riduidel.aadarchi:aadarchi-maven-plugin:0.1.6:generate-model: java.lang.IncompatibleClassChangeError: javax.enterprise.inject.Default and javax.enterprise.inject.Default$Literal disagree on InnerClasses attribute

It seems jakarta.enterprise:jakarta.enterprise.cdi-api:jar:2.0.2 is conflicting with javax.enterprise:cdi-api:jar:2.0.SP1 but not really sure.

Thanks for your support.

Detailed logs:

❯ mvn clean install
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------------< com.lhauspie:example >------------------------
[INFO] Building example 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ example ---
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven) @ example ---
[INFO] 
[INFO] --- gem-maven-plugin:1.1.8:initialize (install-gems) @ example ---
[INFO] Successfully installed asciidoctor-kroki-0.5.0
[INFO] 1 gem installed
[WARNING] WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method sun.nio.ch.NativeThread.signal(long)
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method sun.nio.ch.NativeThread.current()
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method java.lang.Object.finalize()
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method java.lang.Object.clone()
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to field java.io.FileDescriptor.fd
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method java.lang.Class.enumConstantDirectory()
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method java.lang.Class.getClassLoader0()
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method java.lang.Class.setSigners(java.lang.Object[])
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method java.lang.Class.getDeclaredPublicMethods(java.lang.String,java.lang.Class[])
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method java.lang.Class.getPrimitiveClass(java.lang.String)
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method java.lang.Class.getRawAnnotations()
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method java.lang.Class.getRawTypeAnnotations()
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method java.lang.Class.getExecutableTypeAnnotationBytes(java.lang.reflect.Executable)
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method java.lang.Class.getConstantPool()
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method java.lang.Class.getEnumConstantsShared()
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method java.lang.Class.casAnnotationType(sun.reflect.annotation.AnnotationType,sun.reflect.annotation.AnnotationType)
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method java.lang.Class.getAnnotationType()
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method java.lang.Class.getDeclaredAnnotationMap()

[WARNING] WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method sun.nio.ch.NativeThread.signal(long)
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method sun.nio.ch.NativeThread.current()
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method java.lang.Object.finalize()
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method java.lang.Object.clone()
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to field java.io.FileDescriptor.fd

[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ example ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ example ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ example ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/lhauspie/projects/leroymerlin/sources/tis-stocktaking-orchestrator-archi/renew/example/src/test/resources
[INFO] Copying 34 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ example ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ example ---
[INFO] 
[INFO] --- aadarchi-maven-plugin:0.1.6:generate-model (default) @ example ---
[INFO] Adding artifact /Users/lhauspie/.m2/repository/com/structurizr/structurizr-analysis/1.3.5/structurizr-analysis-1.3.5.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/com/structurizr/structurizr-annotations/1.3.5/structurizr-annotations-1.3.5.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/reflections/reflections/0.9.10/reflections-0.9.10.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/com/google/guava/guava/15.0/guava-15.0.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/com/google/code/findbugs/annotations/2.0.1/annotations-2.0.1.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/javassist/javassist/3.22.0-CR2/javassist-3.22.0-CR2.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/io/github/Riduidel/aadarchi/base/0.1.6/base-0.1.6.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/jakarta/enterprise/jakarta.enterprise.cdi-api/2.0.2/jakarta.enterprise.cdi-api-2.0.2.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/jakarta/el/jakarta.el-api/3.0.3/jakarta.el-api-3.0.3.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/jakarta/interceptor/jakarta.interceptor-api/1.2.5/jakarta.interceptor-api-1.2.5.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/jakarta/annotation/jakarta.annotation-api/1.3.5/jakarta.annotation-api-1.3.5.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/jakarta/ejb/jakarta.ejb-api/3.2.6/jakarta.ejb-api-3.2.6.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/jakarta/transaction/jakarta.transaction-api/1.3.2/jakarta.transaction-api-1.3.2.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/jakarta/inject/jakarta.inject-api/1.0/jakarta.inject-api-1.0.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/jboss/weld/se/weld-se-core/3.1.4.Final/weld-se-core-3.1.4.Final.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/jboss/weld/environment/weld-environment-common/3.1.4.Final/weld-environment-common-3.1.4.Final.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/jboss/weld/weld-core-impl/3.1.4.Final/weld-core-impl-3.1.4.Final.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/jboss/weld/weld-api/3.1.SP2/weld-api-3.1.SP2.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/jboss/weld/weld-spi/3.1.SP2/weld-spi-3.1.SP2.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/jboss/spec/javax/annotation/jboss-annotations-api_1.3_spec/2.0.1.Final/jboss-annotations-api_1.3_spec-2.0.1.Final.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/jboss/spec/javax/el/jboss-el-api_3.0_spec/2.0.0.Final/jboss-el-api_3.0_spec-2.0.0.Final.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/jboss/spec/javax/interceptor/jboss-interceptors-api_1.2_spec/2.0.0.Final/jboss-interceptors-api_1.2_spec-2.0.0.Final.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/jboss/logging/jboss-logging/3.2.1.Final/jboss-logging-3.2.1.Final.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/jboss/weld/probe/weld-probe-core/3.1.4.Final/weld-probe-core-3.1.4.Final.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/jboss/classfilewriter/jboss-classfilewriter/1.2.4.Final/jboss-classfilewriter-1.2.4.Final.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/com/structurizr/structurizr-client/1.19.0/structurizr-client-1.19.0.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/com/structurizr/structurizr-core/1.19.0/structurizr-core-1.19.0.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.14.1/jackson-databind-2.14.1.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.14.1/jackson-core-2.14.1.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/apache/httpcomponents/client5/httpclient5/5.2.1/httpclient5-5.2.1.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/apache/httpcomponents/core5/httpcore5/5.2/httpcore5-5.2.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/apache/httpcomponents/core5/httpcore5-h2/5.2/httpcore5-h2-5.2.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/javax/xml/bind/jaxb-api/2.3.1/jaxb-api-2.3.1.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/javax/activation/javax.activation-api/1.2.0/javax.activation-api-1.2.0.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/com/structurizr/structurizr-dsl/1.21.1/structurizr-dsl-1.21.1.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/com/structurizr/structurizr-export/1.7.0/structurizr-export-1.7.0.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/io/github/Riduidel/aadarchi/cdi-config-extension/0.1.6/cdi-config-extension-0.1.6.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/apache/commons/commons-vfs2/2.9.0/commons-vfs2-2.9.0.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/apache/hadoop/hadoop-hdfs-client/3.3.1/hadoop-hdfs-client-3.3.1.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/com/squareup/okhttp/okhttp/2.7.5/okhttp-2.7.5.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/com/squareup/okio/okio/1.6.0/okio-1.6.0.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.10.5/jackson-annotations-2.10.5.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/apache/deltaspike/core/deltaspike-core-impl/1.9.6/deltaspike-core-impl-1.9.6.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/apache/deltaspike/core/deltaspike-core-api/1.9.6/deltaspike-core-api-1.9.6.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/io/github/Riduidel/aadarchi/markdown-to-asciidoc/0.1.6/markdown-to-asciidoc-0.1.6.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/pegdown/pegdown/1.6.0/pegdown-1.6.0.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/parboiled/parboiled-java/1.1.7/parboiled-java-1.1.7.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/parboiled/parboiled-core/1.1.7/parboiled-core-1.1.7.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/ow2/asm/asm/5.0.3/asm-5.0.3.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/ow2/asm/asm-tree/5.0.3/asm-tree-5.0.3.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/ow2/asm/asm-analysis/5.0.3/asm-analysis-5.0.3.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/ow2/asm/asm-util/5.0.3/asm-util-5.0.3.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/jsoup/jsoup/1.15.3/jsoup-1.15.3.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/commons-io/commons-io/2.11.0/commons-io-2.11.0.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/apache/commons/commons-text/1.10.0/commons-text-1.10.0.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/com/pivovarit/throwing-function/1.5.1/throwing-function-1.5.1.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/io/github/Riduidel/aadarchi/github-scm-handler/0.1.6/github-scm-handler-0.1.6.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/kohsuke/github-api/1.308/github-api-1.308.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/eclipse/jgit/org.eclipse.jgit/6.3.0.202209071007-r/org.eclipse.jgit-6.3.0.202209071007-r.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/com/googlecode/javaewah/JavaEWAH/1.1.13/JavaEWAH-1.1.13.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/slf4j/slf4j-api/1.7.30/slf4j-api-1.7.30.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/io/github/Riduidel/aadarchi/adr-tickets-extractor/0.1.6/adr-tickets-extractor-0.1.6.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/freemarker/freemarker/2.3.31/freemarker-2.3.31.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/io/github/Riduidel/aadarchi/maven-metadata-inferer/0.1.6/maven-metadata-inferer-0.1.6.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/apache/maven/maven-project/2.2.1/maven-project-2.2.1.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/apache/maven/maven-settings/2.2.1/maven-settings-2.2.1.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/apache/maven/maven-profile/2.2.1/maven-profile-2.2.1.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/apache/maven/maven-model/2.2.1/maven-model-2.2.1.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/apache/maven/maven-artifact-manager/2.2.1/maven-artifact-manager-2.2.1.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/apache/maven/maven-repository-metadata/2.2.1/maven-repository-metadata-2.2.1.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/apache/maven/wagon/wagon-provider-api/1.0-beta-6/wagon-provider-api-1.0-beta-6.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/apache/maven/maven-plugin-registry/2.2.1/maven-plugin-registry-2.2.1.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.15/plexus-utils-1.5.15.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/apache/maven/maven-artifact/2.2.1/maven-artifact-2.2.1.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/org/codehaus/plexus/plexus-container-default/1.0-alpha-9-stable-1/plexus-container-default-1.0-alpha-9-stable-1.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar to CLASSPATH
[INFO] Adding artifact /Users/lhauspie/.m2/repository/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar to CLASSPATH
[INFO] (org.jboss.weld.bootstrap.WeldStartup) WELD-000900: {0}
[INFO] (org.apache.deltaspike.core.util.ProjectStageProducer) Computed the following DeltaSpike ProjectStage: Production
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jboss.weld.util.bytecode.ClassFileUtils$1 (file:/Users/lhauspie/.m2/repository/org/jboss/weld/weld-core-impl/3.1.4.Final/weld-core-impl-3.1.4.Final.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
WARNING: Please consider reporting this to the maintainers of org.jboss.weld.util.bytecode.ClassFileUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] (org.jboss.weld.bootstrap.WeldStartup) WELD-000101: Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.
[WARNING] (org.jboss.weld.bean.builtin.ExtensionBean) WELD-001552: An extension ({0}) has a non-static public field ({1}).
[INFO] (org.jboss.weld.event.ExtensionObserverMethodImpl) WELD-000411: Observer method {0} receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
[INFO] (org.jboss.weld.event.ExtensionObserverMethodImpl) WELD-000411: Observer method {0} receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
[INFO] (org.jboss.weld.event.ExtensionObserverMethodImpl) WELD-000411: Observer method {0} receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
[INFO] (org.jboss.weld.event.ExtensionObserverMethodImpl) WELD-000411: Observer method {0} receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
[INFO] (org.jboss.weld.event.ExtensionObserverMethodImpl) WELD-000411: Observer method {0} receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
[WARNING] (org.jboss.weld.logging.ValidatorLogger) WELD-001478: Interceptor {0} is enabled for the application and for the bean archive {1}. It will only be invoked in the @Priority part of the chain.
[WARNING] (org.jboss.weld.logging.ValidatorLogger) WELD-001478: Interceptor {0} is enabled for the application and for the bean archive {1}. It will only be invoked in the @Priority part of the chain.
[WARNING] (org.jboss.weld.logging.ValidatorLogger) WELD-001478: Interceptor {0} is enabled for the application and for the bean archive {1}. It will only be invoked in the @Priority part of the chain.
[WARNING] (org.jboss.weld.logging.ValidatorLogger) WELD-001478: Interceptor {0} is enabled for the application and for the bean archive {1}. It will only be invoked in the @Priority part of the chain.
[INFO] (org.jboss.weld.environment.se.WeldContainer) WELD-ENV-002003: Weld SE container {0} initialized
[INFO] (org.jboss.weld.environment.se.WeldContainer) WELD-ENV-002001: Weld SE container {0} shut down
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  11.123 s
[INFO] Finished at: 2023-02-16T22:06:53+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.github.Riduidel.aadarchi:aadarchi-maven-plugin:0.1.6:generate-model (default) on project example: Execution default of goal io.github.Riduidel.aadarchi:aadarchi-maven-plugin:0.1.6:generate-model failed: An API incompatibility was encountered while executing io.github.Riduidel.aadarchi:aadarchi-maven-plugin:0.1.6:generate-model: java.lang.IncompatibleClassChangeError: javax.enterprise.inject.Default and javax.enterprise.inject.Default$Literal disagree on InnerClasses attribute
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>io.github.Riduidel.aadarchi:aadarchi-maven-plugin:0.1.6
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/lhauspie/.m2/repository/io/github/Riduidel/aadarchi/aadarchi-maven-plugin/0.1.6/aadarchi-maven-plugin-0.1.6.jar
[ERROR] urls[1] = file:/Users/lhauspie/.m2/repository/org/twdata/maven/mojo-executor/2.4.0/mojo-executor-2.4.0.jar
[ERROR] urls[2] = file:/Users/lhauspie/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.24/plexus-utils-3.0.24.jar
[ERROR] urls[3] = file:/Users/lhauspie/.m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2.jar
[ERROR] urls[4] = file:/Users/lhauspie/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.5/org.eclipse.sisu.inject-0.3.5.jar
[ERROR] urls[5] = file:/Users/lhauspie/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[6] = file:/Users/lhauspie/.m2/repository/io/github/Riduidel/aadarchi/cdi-in-maven-plugin-helper/0.1.6/cdi-in-maven-plugin-helper-0.1.6.jar
[ERROR] urls[7] = file:/Users/lhauspie/.m2/repository/org/jboss/weld/se/weld-se-core/3.1.4.Final/weld-se-core-3.1.4.Final.jar
[ERROR] urls[8] = file:/Users/lhauspie/.m2/repository/org/jboss/weld/environment/weld-environment-common/3.1.4.Final/weld-environment-common-3.1.4.Final.jar
[ERROR] urls[9] = file:/Users/lhauspie/.m2/repository/org/jboss/weld/weld-core-impl/3.1.4.Final/weld-core-impl-3.1.4.Final.jar
[ERROR] urls[10] = file:/Users/lhauspie/.m2/repository/org/jboss/weld/weld-api/3.1.SP2/weld-api-3.1.SP2.jar
[ERROR] urls[11] = file:/Users/lhauspie/.m2/repository/org/jboss/weld/weld-spi/3.1.SP2/weld-spi-3.1.SP2.jar
[ERROR] urls[12] = file:/Users/lhauspie/.m2/repository/org/jboss/spec/javax/annotation/jboss-annotations-api_1.3_spec/2.0.1.Final/jboss-annotations-api_1.3_spec-2.0.1.Final.jar
[ERROR] urls[13] = file:/Users/lhauspie/.m2/repository/org/jboss/spec/javax/el/jboss-el-api_3.0_spec/2.0.0.Final/jboss-el-api_3.0_spec-2.0.0.Final.jar
[ERROR] urls[14] = file:/Users/lhauspie/.m2/repository/org/jboss/spec/javax/interceptor/jboss-interceptors-api_1.2_spec/2.0.0.Final/jboss-interceptors-api_1.2_spec-2.0.0.Final.jar
[ERROR] urls[15] = file:/Users/lhauspie/.m2/repository/org/jboss/logging/jboss-logging/3.2.1.Final/jboss-logging-3.2.1.Final.jar
[ERROR] urls[16] = file:/Users/lhauspie/.m2/repository/org/jboss/weld/probe/weld-probe-core/3.1.4.Final/weld-probe-core-3.1.4.Final.jar
[ERROR] urls[17] = file:/Users/lhauspie/.m2/repository/org/jboss/classfilewriter/jboss-classfilewriter/1.2.4.Final/jboss-classfilewriter-1.2.4.Final.jar
[ERROR] urls[18] = file:/Users/lhauspie/.m2/repository/org/codehaus/plexus/plexus-sec-dispatcher/2.0/plexus-sec-dispatcher-2.0.jar
[ERROR] urls[19] = file:/Users/lhauspie/.m2/repository/org/codehaus/plexus/plexus-cipher/2.0/plexus-cipher-2.0.jar
[ERROR] urls[20] = file:/Users/lhauspie/.m2/repository/org/apache/maven/maven-builder-support/3.8.5/maven-builder-support-3.8.5.jar
[ERROR] urls[21] = file:/Users/lhauspie/.m2/repository/org/apache/maven/resolver/maven-resolver-util/1.6.3/maven-resolver-util-1.6.3.jar
[ERROR] urls[22] = file:/Users/lhauspie/.m2/repository/org/apache/maven/shared/maven-shared-utils/3.3.4/maven-shared-utils-3.3.4.jar
[ERROR] urls[23] = file:/Users/lhauspie/.m2/repository/com/google/inject/guice/4.2.2/guice-4.2.2-no_aop.jar
[ERROR] urls[24] = file:/Users/lhauspie/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
[ERROR] urls[25] = file:/Users/lhauspie/.m2/repository/com/google/guava/guava/25.1-android/guava-25.1-android.jar
[ERROR] urls[26] = file:/Users/lhauspie/.m2/repository/org/checkerframework/checker-compat-qual/2.0.0/checker-compat-qual-2.0.0.jar
[ERROR] urls[27] = file:/Users/lhauspie/.m2/repository/com/google/errorprone/error_prone_annotations/2.1.3/error_prone_annotations-2.1.3.jar
[ERROR] urls[28] = file:/Users/lhauspie/.m2/repository/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar
[ERROR] urls[29] = file:/Users/lhauspie/.m2/repository/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.jar
[ERROR] urls[30] = file:/Users/lhauspie/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.26/plexus-interpolation-1.26.jar
[ERROR] urls[31] = file:/Users/lhauspie/.m2/repository/org/apache/deltaspike/core/deltaspike-core-impl/1.9.6/deltaspike-core-impl-1.9.6.jar
[ERROR] urls[32] = file:/Users/lhauspie/.m2/repository/org/apache/deltaspike/core/deltaspike-core-api/1.9.6/deltaspike-core-api-1.9.6.jar
[ERROR] urls[33] = file:/Users/lhauspie/.m2/repository/io/github/Riduidel/aadarchi/base/0.1.6/base-0.1.6.jar
[ERROR] urls[34] = file:/Users/lhauspie/.m2/repository/jakarta/enterprise/jakarta.enterprise.cdi-api/2.0.2/jakarta.enterprise.cdi-api-2.0.2.jar
[ERROR] urls[35] = file:/Users/lhauspie/.m2/repository/jakarta/el/jakarta.el-api/3.0.3/jakarta.el-api-3.0.3.jar
[ERROR] urls[36] = file:/Users/lhauspie/.m2/repository/jakarta/interceptor/jakarta.interceptor-api/1.2.5/jakarta.interceptor-api-1.2.5.jar
[ERROR] urls[37] = file:/Users/lhauspie/.m2/repository/jakarta/annotation/jakarta.annotation-api/1.3.5/jakarta.annotation-api-1.3.5.jar
[ERROR] urls[38] = file:/Users/lhauspie/.m2/repository/jakarta/ejb/jakarta.ejb-api/3.2.6/jakarta.ejb-api-3.2.6.jar
[ERROR] urls[39] = file:/Users/lhauspie/.m2/repository/jakarta/transaction/jakarta.transaction-api/1.3.2/jakarta.transaction-api-1.3.2.jar
[ERROR] urls[40] = file:/Users/lhauspie/.m2/repository/jakarta/inject/jakarta.inject-api/1.0/jakarta.inject-api-1.0.jar
[ERROR] urls[41] = file:/Users/lhauspie/.m2/repository/com/structurizr/structurizr-annotations/1.3.5/structurizr-annotations-1.3.5.jar
[ERROR] urls[42] = file:/Users/lhauspie/.m2/repository/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar
[ERROR] urls[43] = file:/Users/lhauspie/.m2/repository/com/structurizr/structurizr-client/1.19.0/structurizr-client-1.19.0.jar
[ERROR] urls[44] = file:/Users/lhauspie/.m2/repository/com/structurizr/structurizr-core/1.19.0/structurizr-core-1.19.0.jar
[ERROR] urls[45] = file:/Users/lhauspie/.m2/repository/org/apache/httpcomponents/client5/httpclient5/5.2.1/httpclient5-5.2.1.jar
[ERROR] urls[46] = file:/Users/lhauspie/.m2/repository/org/apache/httpcomponents/core5/httpcore5/5.2/httpcore5-5.2.jar
[ERROR] urls[47] = file:/Users/lhauspie/.m2/repository/org/apache/httpcomponents/core5/httpcore5-h2/5.2/httpcore5-h2-5.2.jar
[ERROR] urls[48] = file:/Users/lhauspie/.m2/repository/com/structurizr/structurizr-dsl/1.21.1/structurizr-dsl-1.21.1.jar
[ERROR] urls[49] = file:/Users/lhauspie/.m2/repository/com/structurizr/structurizr-documentation/1.0.2/structurizr-documentation-1.0.2.jar
[ERROR] urls[50] = file:/Users/lhauspie/.m2/repository/com/structurizr/structurizr-export/1.7.0/structurizr-export-1.7.0.jar
[ERROR] urls[51] = file:/Users/lhauspie/.m2/repository/io/github/Riduidel/aadarchi/cdi-config-extension/0.1.6/cdi-config-extension-0.1.6.jar
[ERROR] urls[52] = file:/Users/lhauspie/.m2/repository/io/github/Riduidel/aadarchi/markdown-to-asciidoc/0.1.6/markdown-to-asciidoc-0.1.6.jar
[ERROR] urls[53] = file:/Users/lhauspie/.m2/repository/org/pegdown/pegdown/1.6.0/pegdown-1.6.0.jar
[ERROR] urls[54] = file:/Users/lhauspie/.m2/repository/org/parboiled/parboiled-java/1.1.7/parboiled-java-1.1.7.jar
[ERROR] urls[55] = file:/Users/lhauspie/.m2/repository/org/parboiled/parboiled-core/1.1.7/parboiled-core-1.1.7.jar
[ERROR] urls[56] = file:/Users/lhauspie/.m2/repository/org/ow2/asm/asm/5.0.3/asm-5.0.3.jar
[ERROR] urls[57] = file:/Users/lhauspie/.m2/repository/org/ow2/asm/asm-tree/5.0.3/asm-tree-5.0.3.jar
[ERROR] urls[58] = file:/Users/lhauspie/.m2/repository/org/ow2/asm/asm-analysis/5.0.3/asm-analysis-5.0.3.jar
[ERROR] urls[59] = file:/Users/lhauspie/.m2/repository/org/ow2/asm/asm-util/5.0.3/asm-util-5.0.3.jar
[ERROR] urls[60] = file:/Users/lhauspie/.m2/repository/org/jsoup/jsoup/1.15.3/jsoup-1.15.3.jar
[ERROR] urls[61] = file:/Users/lhauspie/.m2/repository/commons-io/commons-io/2.11.0/commons-io-2.11.0.jar
[ERROR] urls[62] = file:/Users/lhauspie/.m2/repository/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.jar
[ERROR] urls[63] = file:/Users/lhauspie/.m2/repository/org/apache/commons/commons-text/1.10.0/commons-text-1.10.0.jar
[ERROR] urls[64] = file:/Users/lhauspie/.m2/repository/com/pivovarit/throwing-function/1.5.1/throwing-function-1.5.1.jar
[ERROR] urls[65] = file:/Users/lhauspie/.m2/repository/io/github/Riduidel/aadarchi/maven-metadata-inferer/0.1.6/maven-metadata-inferer-0.1.6.jar
[ERROR] urls[66] = file:/Users/lhauspie/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
[ERROR] urls[67] = file:/Users/lhauspie/.m2/repository/net/alchim31/livereload-jvm/0.2.0/livereload-jvm-0.2.0.jar
[ERROR] urls[68] = file:/Users/lhauspie/.m2/repository/org/eclipse/jetty/jetty-server/8.1.8.v20121106/jetty-server-8.1.8.v20121106.jar
[ERROR] urls[69] = file:/Users/lhauspie/.m2/repository/org/eclipse/jetty/orbit/javax.servlet/3.0.0.v201112011016/javax.servlet-3.0.0.v201112011016.jar
[ERROR] urls[70] = file:/Users/lhauspie/.m2/repository/org/eclipse/jetty/jetty-continuation/8.1.8.v20121106/jetty-continuation-8.1.8.v20121106.jar
[ERROR] urls[71] = file:/Users/lhauspie/.m2/repository/org/eclipse/jetty/jetty-http/8.1.8.v20121106/jetty-http-8.1.8.v20121106.jar
[ERROR] urls[72] = file:/Users/lhauspie/.m2/repository/org/eclipse/jetty/jetty-websocket/8.1.8.v20121106/jetty-websocket-8.1.8.v20121106.jar
[ERROR] urls[73] = file:/Users/lhauspie/.m2/repository/org/eclipse/jetty/jetty-util/8.1.8.v20121106/jetty-util-8.1.8.v20121106.jar
[ERROR] urls[74] = file:/Users/lhauspie/.m2/repository/org/eclipse/jetty/jetty-io/8.1.8.v20121106/jetty-io-8.1.8.v20121106.jar
[ERROR] urls[75] = file:/Users/lhauspie/.m2/repository/com/googlecode/json-simple/json-simple/1.1.1/json-simple-1.1.1.jar
[ERROR] urls[76] = file:/Users/lhauspie/.m2/repository/junit/junit/4.10/junit-4.10.jar
[ERROR] urls[77] = file:/Users/lhauspie/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar
[ERROR] urls[78] = file:/Users/lhauspie/.m2/repository/org/apache/commons/commons-vfs2/2.9.0/commons-vfs2-2.9.0.jar
[ERROR] urls[79] = file:/Users/lhauspie/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar
[ERROR] urls[80] = file:/Users/lhauspie/.m2/repository/com/structurizr/structurizr-analysis/1.3.5/structurizr-analysis-1.3.5.jar
[ERROR] urls[81] = file:/Users/lhauspie/.m2/repository/org/reflections/reflections/0.9.10/reflections-0.9.10.jar
[ERROR] urls[82] = file:/Users/lhauspie/.m2/repository/com/google/guava/guava/15.0/guava-15.0.jar
[ERROR] urls[83] = file:/Users/lhauspie/.m2/repository/com/google/code/findbugs/annotations/2.0.1/annotations-2.0.1.jar
[ERROR] urls[84] = file:/Users/lhauspie/.m2/repository/org/javassist/javassist/3.22.0-CR2/javassist-3.22.0-CR2.jar
[ERROR] urls[85] = file:/Users/lhauspie/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.14.1/jackson-databind-2.14.1.jar
[ERROR] urls[86] = file:/Users/lhauspie/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.14.1/jackson-core-2.14.1.jar
[ERROR] urls[87] = file:/Users/lhauspie/.m2/repository/javax/xml/bind/jaxb-api/2.3.1/jaxb-api-2.3.1.jar
[ERROR] urls[88] = file:/Users/lhauspie/.m2/repository/javax/activation/javax.activation-api/1.2.0/javax.activation-api-1.2.0.jar
[ERROR] urls[89] = file:/Users/lhauspie/.m2/repository/org/apache/hadoop/hadoop-hdfs-client/3.3.1/hadoop-hdfs-client-3.3.1.jar
[ERROR] urls[90] = file:/Users/lhauspie/.m2/repository/com/squareup/okhttp/okhttp/2.7.5/okhttp-2.7.5.jar
[ERROR] urls[91] = file:/Users/lhauspie/.m2/repository/com/squareup/okio/okio/1.6.0/okio-1.6.0.jar
[ERROR] urls[92] = file:/Users/lhauspie/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.10.5/jackson-annotations-2.10.5.jar
[ERROR] urls[93] = file:/Users/lhauspie/.m2/repository/io/github/Riduidel/aadarchi/github-scm-handler/0.1.6/github-scm-handler-0.1.6.jar
[ERROR] urls[94] = file:/Users/lhauspie/.m2/repository/org/kohsuke/github-api/1.308/github-api-1.308.jar
[ERROR] urls[95] = file:/Users/lhauspie/.m2/repository/org/eclipse/jgit/org.eclipse.jgit/6.3.0.202209071007-r/org.eclipse.jgit-6.3.0.202209071007-r.jar
[ERROR] urls[96] = file:/Users/lhauspie/.m2/repository/com/googlecode/javaewah/JavaEWAH/1.1.13/JavaEWAH-1.1.13.jar
[ERROR] urls[97] = file:/Users/lhauspie/.m2/repository/org/slf4j/slf4j-api/1.7.30/slf4j-api-1.7.30.jar
[ERROR] urls[98] = file:/Users/lhauspie/.m2/repository/io/github/Riduidel/aadarchi/adr-tickets-extractor/0.1.6/adr-tickets-extractor-0.1.6.jar
[ERROR] urls[99] = file:/Users/lhauspie/.m2/repository/org/freemarker/freemarker/2.3.31/freemarker-2.3.31.jar
[ERROR] urls[100] = file:/Users/lhauspie/.m2/repository/org/apache/maven/maven-project/2.2.1/maven-project-2.2.1.jar
[ERROR] urls[101] = file:/Users/lhauspie/.m2/repository/org/apache/maven/maven-settings/2.2.1/maven-settings-2.2.1.jar
[ERROR] urls[102] = file:/Users/lhauspie/.m2/repository/org/apache/maven/maven-profile/2.2.1/maven-profile-2.2.1.jar
[ERROR] urls[103] = file:/Users/lhauspie/.m2/repository/org/apache/maven/maven-model/2.2.1/maven-model-2.2.1.jar
[ERROR] urls[104] = file:/Users/lhauspie/.m2/repository/org/apache/maven/maven-artifact-manager/2.2.1/maven-artifact-manager-2.2.1.jar
[ERROR] urls[105] = file:/Users/lhauspie/.m2/repository/org/apache/maven/maven-repository-metadata/2.2.1/maven-repository-metadata-2.2.1.jar
[ERROR] urls[106] = file:/Users/lhauspie/.m2/repository/org/apache/maven/wagon/wagon-provider-api/1.0-beta-6/wagon-provider-api-1.0-beta-6.jar
[ERROR] urls[107] = file:/Users/lhauspie/.m2/repository/org/apache/maven/maven-plugin-registry/2.2.1/maven-plugin-registry-2.2.1.jar
[ERROR] urls[108] = file:/Users/lhauspie/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar
[ERROR] urls[109] = file:/Users/lhauspie/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.15/plexus-utils-1.5.15.jar
[ERROR] urls[110] = file:/Users/lhauspie/.m2/repository/org/apache/maven/maven-artifact/2.2.1/maven-artifact-2.2.1.jar
[ERROR] urls[111] = file:/Users/lhauspie/.m2/repository/org/codehaus/plexus/plexus-container-default/1.0-alpha-9-stable-1/plexus-container-default-1.0-alpha-9-stable-1.jar
[ERROR] urls[112] = file:/Users/lhauspie/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
[ERROR] urls[113] = file:/Users/lhauspie/.m2/repository/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar
[ERROR] urls[114] = file:/Users/lhauspie/projects/leroymerlin/sources/tis-stocktaking-orchestrator-archi/renew/example/target/classes/
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[project>com.lhauspie:example:0.0.1-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
[ERROR] 
[ERROR] -----------------------------------------------------
[ERROR] 
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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/PluginContainerException
Riduidel commented 1 year ago

Can't reproduce for now .. Let's meet tomorrow to check that (with the new version I'll release today)

lhauspie commented 1 year ago

hmmmm 🤔 pretty wierd. It works by running in docker maven:3.8.6-openjdk-11-slim

I'll deep dive this tonight (I can't meet tomorrow cause I'm in vacation).

I compared the logs in case of failure and in case of success and success logs display these lines in addition:

[INFO] --- aadarchi-maven-plugin:0.1.6:generate-model (default) @ example ---
[INFO] Adding dependency /root/.m2/repository/org/twdata/maven/mojo-executor/2.4.0/mojo-executor-2.4.0.jar to CLASSPATH
[INFO] Adding dependency /root/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.6.4/maven-plugin-annotations-3.6.4.jar to CLASSPATH
[INFO] Adding dependency /root/.m2/repository/org/apache/maven/maven-plugin-api/3.8.6/maven-plugin-api-3.8.6.jar to CLASSPATH
[INFO] Adding dependency /root/.m2/repository/io/github/Riduidel/aadarchi/cdi-in-maven-plugin-helper/0.1.6/cdi-in-maven-plugin-helper-0.1.6.jar to CLASSPATH
[INFO] Adding dependency /root/.m2/repository/io/github/Riduidel/aadarchi/base/0.1.6/base-0.1.6.jar to CLASSPATH
[INFO] Adding dependency /root/.m2/repository/io/github/Riduidel/aadarchi/maven-metadata-inferer/0.1.6/maven-metadata-inferer-0.1.6.jar to CLASSPATH
[INFO] Adding dependency /root/.m2/repository/net/alchim31/livereload-jvm/0.2.0/livereload-jvm-0.2.0.jar to CLASSPATH
[INFO] Adding dependency /root/.m2/repository/org/apache/commons/commons-vfs2/2.9.0/commons-vfs2-2.9.0.jar to CLASSPATH

These lines are not present in case of failure. I don't know if it can explain something.

lhauspie commented 1 year ago

I tried with Java 8 but java 11 is the minimum version (Detected JDK Version: 1.8.0-302 is not in the allowed range 11.)

I tried with Java 17 but it seems an issue already exists for that (https://github.com/Riduidel/aadarchi/issues/90)

I tried with an empty local maven repository, but same result.

For context, I use asdfvm to manage java versions on my laptop. Do you think the problem can come from this tool ?

Could you copy/paste here the result of your mvn -vcommand please ?

lhauspie commented 1 year ago

It seems to come from class loader that loads jar in a certain order.

In case of failure, this dependency is loaded first:

[ERROR] urls[3] = file:/Users/lhauspie/.m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2.jar

instead of:

[ERROR] urls[3] = file:/root/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.6.4/maven-plugin-annotations-3.6.4.jar
Riduidel commented 1 year ago

Seems like it may be related to javax annotation api as used by maven plugin api

2023-02-28 09_23_05-open-source - aadarchi-maven-plugin_pom xml - Eclipse IDE

lhauspie commented 1 year ago

I think this issue has to be re-open @Riduidel because I still have a problem with the release 0.1.9 :

[ERROR] Failed to execute goal io.github.Riduidel.aadarchi:aadarchi-maven-plugin:0.1.9:generate-model (default) on project example3: Execution default of goal io.github.Riduidel.aadarchi:aadarchi-maven-plugin:0.1.9:generate-model failed: An API incompatibility was encountered while executing io.github.Riduidel.aadarchi:aadarchi-maven-plugin:0.1.9:generate-model: java.lang.IncompatibleClassChangeError: javax.enterprise.inject.Default and javax.enterprise.inject.Default$Literal disagree on InnerClasses attribute
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>io.github.Riduidel.aadarchi:aadarchi-maven-plugin:0.1.9
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/lhauspie/.m2/repository/io/github/Riduidel/aadarchi/aadarchi-maven-plugin/0.1.9/aadarchi-maven-plugin-0.1.9.jar
[ERROR] urls[1] = file:/Users/lhauspie/.m2/repository/org/twdata/maven/mojo-executor/2.4.0/mojo-executor-2.4.0.jar
[ERROR] urls[2] = file:/Users/lhauspie/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.24/plexus-utils-3.0.24.jar
[ERROR] urls[3] = file:/Users/lhauspie/.m2/repository/javax/annotation/javax.annotation-api/1.2/javax.annotation-api-1.2.jar
[ERROR] urls[4] = file:/Users/lhauspie/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.5/org.eclipse.sisu.inject-0.3.5.jar
[ERROR] urls[5] = file:/Users/lhauspie/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar

The javax.annotation-api-1.2.jar still loaded in priority instead of maven-plugin-annotations-3.6.4.jar

lhauspie-adeo commented 1 year ago

@Riduidel could you copy/paste the result of mvn -v command from your machine please ?

I will install the exact same version than you to try on my side.

lhauspie-adeo commented 1 year ago

Ok, my suspicions are correct... the problem is related to the version of maven.

Maven 3.8.1 et 3.8.2 has the same problem, but since 3.8.3 the problem is not present anymore. So the solution is to have maven in version 3.8.3+.

Maybe it could appear in the documentation as a pre-requisite to avoid others users to search for hours or even days 😉