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
{{ message }}
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.
When building a graalvm version of the service (using build-native-image.sh), I sometimes run into
Message: Multiple possible bean candidates found: [io.micronaut.jackson.ObjectMapperFactory, io.micronaut.jackson.ObjectMapperFactory]
This is caused by duplicate entries in META-INF/services/com.fasterxml.jackson.core.ObjectCodec: it contains com.fasterxml.jackson.databind.ObjectMapper twice.
This is because the ServicesResourceTransformer of the maven-shade plugin doesn't clean out an already existing service-registration (sounds like a bug in the transformer to me).
It can be worked around by running
./mvnw clean package
iso
./mvnw package
at the start of build-native-image.sh
The text was updated successfully, but these errors were encountered:
BartRobeyns
changed the title
duplicate service-registration in META-INF/services
duplicate service-registration in META-INF/services, failing the native-image build
Jan 4, 2019
When building a graalvm version of the service (using build-native-image.sh), I sometimes run into
Message: Multiple possible bean candidates found: [io.micronaut.jackson.ObjectMapperFactory, io.micronaut.jackson.ObjectMapperFactory]
This is caused by duplicate entries in META-INF/services/com.fasterxml.jackson.core.ObjectCodec: it contains com.fasterxml.jackson.databind.ObjectMapper twice.
This is because the ServicesResourceTransformer of the maven-shade plugin doesn't clean out an already existing service-registration (sounds like a bug in the transformer to me).
It can be worked around by running
./mvnw clean package
iso
./mvnw package
at the start of build-native-image.sh
The text was updated successfully, but these errors were encountered: