Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-2994

[Build] Bump maven build tool to 3.6.3

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.11.0
    • None
    • None

    Description

      Currently the docker image uses 3.3.9 which is five years old.

      Spotless has some issues with old maven:

      [INFO] --- spotless-maven-plugin:1.31.1:check (spotless-check) @ avro-ipc ---
      [WARNING] Error injecting: com.diffplug.spotless.maven.SpotlessCheckMojo
      com.google.inject.ProvisionException: Unable to provision, see the following errors:
      1) Error injecting: private org.eclipse.aether.spi.log.Logger org.apache.maven.repository.internal.DefaultVersionRangeResolver.logger
        while locating org.apache.maven.repository.internal.DefaultVersionRangeResolver
        while locating java.lang.Object annotated with *
        at org.eclipse.sisu.wire.LocatorWiring
        while locating org.eclipse.aether.impl.VersionRangeResolver
          for parameter 2 at org.eclipse.aether.internal.impl.collect.DefaultDependencyCollector.<init>(DefaultDependencyCollector.java:107)
        while locating org.eclipse.aether.internal.impl.collect.DefaultDependencyCollector
        while locating java.lang.Object annotated with *
        at org.eclipse.sisu.wire.LocatorWiring
        while locating org.eclipse.aether.impl.DependencyCollector
          for parameter 5 at org.eclipse.aether.internal.impl.DefaultRepositorySystem.<init>(DefaultRepositorySystem.java:121)
        while locating org.eclipse.aether.internal.impl.DefaultRepositorySystem
        while locating java.lang.Object annotated with *
        while locating com.diffplug.spotless.maven.SpotlessCheckMojo
      Caused by: java.lang.IllegalArgumentException: Can not set org.eclipse.aether.spi.log.Logger field org.apache.maven.repository.internal.DefaultVersionRangeResolver.logger to org.eclipse.aether.internal.impl.slf4j.Slf4jLoggerFactory
      	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167)
      	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171)
      	at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:81)
      	at java.lang.reflect.Field.set(Field.java:764)
      	at org.eclipse.sisu.bean.BeanPropertyField.set(BeanPropertyField.java:72)
      	at org.eclipse.sisu.plexus.ProvidedPropertyBinding.injectProperty(ProvidedPropertyBinding.java:48)
      	at org.eclipse.sisu.bean.BeanInjector.injectMembers(BeanInjector.java:52)
      	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:140)
      	at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114)
      	at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32)
      	at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:89)
      

      We should use maven 3.6.3 to build Avro.

      Attachments

        Issue Links

          Activity

            People

              rskraba Ryan Skraba
              rskraba Ryan Skraba
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: