You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came accross a build issue with mapstruct regarding the new quarkus version (1.13.0), that didn't happen on version 1.12.2.
On Quarkus version 1.12.2 my code build without errors.
On Quarkus version 1.13.0 my code doesn't build.
(same Mapstruct version)
Expected behavior
I expect the code to build without errors.
Actual behavior
It didn't build properly and got dependency injection issues using Mapstruct mappers.
Moreover, implementation classes are not generated.
My stacktrace :
* What went wrong:
Execution failed for task ':quarkusBuild'.
> io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[error]: Build step io.quarkus.arc.deployment.ArcProcessor#validate threw an exception: javax.enterprise.inject.spi.DeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type org.acme.PersonMapper and qualifiers [@Default]
- java member: org.acme.PersonResource#personMapper
- declared on CLASS bean [types=[java.lang.Object, org.acme.PersonResource], qualifiers=[@Default, @Any], target=org.acme.PersonResource]
at io.quarkus.arc.processor.BeanDeployment.processErrors(BeanDeployment.java:1081)
at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:255)
at io.quarkus.arc.processor.BeanProcessor.initialize(BeanProcessor.java:129)
at io.quarkus.arc.deployment.ArcProcessor.validate(ArcProcessor.java:419)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:920)
at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2415)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
at java.base/java.lang.Thread.run(Thread.java:834)
at org.jboss.threads.JBossThread.run(JBossThread.java:501)
Caused by: javax.enterprise.inject.UnsatisfiedResolutionException: Unsatisfied dependency for type org.acme.PersonMapper and qualifiers [@Default]
- java member: org.acme.PersonResource#personMapper
- declared on CLASS bean [types=[java.lang.Object, org.acme.PersonResource], qualifiers=[@Default, @Any], target=org.acme.PersonResource]
at io.quarkus.arc.processor.Beans.resolveInjectionPoint(Beans.java:484)
at io.quarkus.arc.processor.BeanInfo.init(BeanInfo.java:378)
at io.quarkus.arc.processor.BeanDeployment.init(BeanDeployment.java:247)
... 12 more
Check the gradle properties (quarkusPluginVersion and quarkusPlatformVersion must be equal to 1.13.0)
Run the command gradle build
Check the console
You'll get the stacktrace from above.
Environment :
Output of uname -a or ver
Linux administrateur-XPS-13-7390 5.4.0-70-generic #78~18.04.1-Ubuntu SMP Sat Mar 20 14:10:07 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Output of java -version
openjdk version "11.0.8" 2020-07-14
OpenJDK Runtime Environment GraalVM CE 20.2.0 (build 11.0.8+10-jvmci-20.2-b03)
OpenJDK 64-Bit Server VM GraalVM CE 20.2.0 (build 11.0.8+10-jvmci-20.2-b03, mixed mode, sharing)
Quarkus version or git rev
Quarkus 1.13.0
Build tool
Gradle 6.8.3
MapStruct version
1.3.1
The text was updated successfully, but these errors were encountered:
Describe the bug
I came accross a build issue with mapstruct regarding the new quarkus version (1.13.0), that didn't happen on version 1.12.2.
On Quarkus version 1.12.2 my code build without errors.
On Quarkus version 1.13.0 my code doesn't build.
(same Mapstruct version)
Expected behavior
I expect the code to build without errors.
Actual behavior
It didn't build properly and got dependency injection issues using Mapstruct mappers.
Moreover, implementation classes are not generated.
My stacktrace :
To Reproduce
The code can be found from the following repo : https://github.com/rebillard-maxime/quarkus-1.13.0-mapstruct-test
gradle build
Environment :
Output of
uname -a
orver
Linux administrateur-XPS-13-7390 5.4.0-70-generic #78~18.04.1-Ubuntu SMP Sat Mar 20 14:10:07 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk version "11.0.8" 2020-07-14
OpenJDK Runtime Environment GraalVM CE 20.2.0 (build 11.0.8+10-jvmci-20.2-b03)
OpenJDK 64-Bit Server VM GraalVM CE 20.2.0 (build 11.0.8+10-jvmci-20.2-b03, mixed mode, sharing)
Quarkus version or git rev
Quarkus 1.13.0
Build tool
Gradle 6.8.3
MapStruct version
1.3.1
The text was updated successfully, but these errors were encountered: