Skip to content

Vaadin 25.3-SNAPSHOT build fails #100

Description

@javier-godoy

Describe the bug

[WARNING] Found dependencies defined with different versions in project and Vaadin maven plugin.
Project dependencies are used, but plugin execution could fail if the versions are incompatible.
In case of build failure please analyze the project dependencies and update versions or configure exclusions for potential offending transitive dependencies.
You can use 'mvn dependency:tree -Dincludes=groupId:artifactId' to detect where the dependency is defined in the project.
com.fasterxml.jackson.core:jackson-annotations:jar: project version [2.13.4], plugin version [2.21]
com.vaadin:license-checker:jar: project version [3.1-SNAPSHOT], plugin version [3.1.1]
com.fasterxml.jackson.core:jackson-databind:jar: project version [2.13.4.2], plugin version [2.22.1]
com.fasterxml.jackson.core:jackson-core:jar: project version [2.13.4], plugin version [2.22.1]
[ERROR] The build process encountered an error: com/fasterxml/jackson/annotation/JsonSerializeAs com.fasterxml.jackson.annotation.JsonSerializeAs
[ERROR] To diagnose the issue, please re-run Maven with the -X option to enable detailed debug logging and identify the root cause.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.535 s
[INFO] Finished at: 2026-08-12T11:51:14-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.vaadin:vaadin-maven-plugin:25.3-SNAPSHOT:prepare-frontend (default) on project orgchart-addon
...
Caused by: java.lang.NoClassDefFoundError: com/fasterxml/jackson/annotation/JsonSerializeAs
at tools.jackson.databind.introspect.JacksonAnnotationIntrospector.<clinit> (JacksonAnnotationIntrospector.java:37)
at tools.jackson.databind.cfg.MapperBuilder.<clinit> (MapperBuilder.java:50)
at tools.jackson.databind.json.JsonMapper.builder (JsonMapper.java:147)
at com.vaadin.flow.internal.JacksonUtils.createConfiguredMapper (JacksonUtils.java:81)
at com.vaadin.flow.internal.JacksonUtils.<clinit> (JacksonUtils.java:74)
at com.vaadin.flow.plugin.base.BuildFrontendUtil.propagateBuildInfo (BuildFrontendUtil.java:231)
at com.vaadin.flow.plugin.maven.PrepareFrontendMojo.executeInternal (PrepareFrontendMojo.java:50)
at com.vaadin.hilla.maven.PrepareFrontendMojo.executeInternal (PrepareFrontendMojo.java:73)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103)
at java.lang.reflect.Method.invoke (Method.java:580)
at com.vaadin.flow.plugin.maven.FlowModeAbstractMojo.execute (FlowModeAbstractMojo.java:381)

Expected behavior

Build must succeed.

Minimal reproducible example

mvn clean test -Pv25 -X

Add-on Version

5.3.2-SNAPSHOT

Vaadin Version

25.3-SNAPSHOT

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions