[
https://issues.apache.org/jira/browse/AVRO-3273?focusedWorklogId=700754&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-700754
]
ASF GitHub Bot logged work on AVRO-3273:
----------------------------------------
Author: ASF GitHub Bot
Created on: 23/Dec/21 16:43
Start Date: 23/Dec/21 16:43
Worklog Time Spent: 10m
Work Description: RyanSkraba opened a new pull request #1436:
URL: https://github.com/apache/avro/pull/1436
Make sure you have checked _all_ steps below.
### Jira
- [X] My PR addresses the following [Avro
Jira](https://issues.apache.org/jira/browse/AVRO/) issues and references them
in the PR title. For example, "AVRO-1234: My Avro PR"
- https://issues.apache.org/jira/browse/AVRO-3273
- In case you are adding a dependency, check if the license complies with
the [ASF 3rd Party License
Policy](https://www.apache.org/legal/resolved.html#category-x).
### Tests
- [X] My PR does not need testing for this extremely good reason: Manually
tested with different maven versions
### Commits
- [X] My commits all reference Jira issues in their subject lines. In
addition, my commits follow the guidelines from "[How to write a good git
commit message](https://chris.beams.io/posts/git-commit/)":
1. Subject is separated from body by a blank line
1. Subject is limited to 50 characters (not including Jira issue reference)
1. Subject does not end with a period
1. Subject uses the imperative mood ("add", not "adding")
1. Body wraps at 72 characters
1. Body explains "what" and "why", not "how"
### Documentation
- [ ] In case of new functionality, my PR adds documentation that describes
how to use it.
- All the public functions and the classes in the PR contain Javadoc that
explain what it does
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 700754)
Remaining Estimate: 0h
Time Spent: 10m
> [Java] avro-maven-plugin breaks on old versions of Maven
> --------------------------------------------------------
>
> Key: AVRO-3273
> URL: https://issues.apache.org/jira/browse/AVRO-3273
> Project: Apache Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.11.0
> Reporter: Ryan Skraba
> Assignee: Ryan Skraba
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.11.1
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> If you generate an example project:
> {code}
> mvn archetype:generate -B -DarchetypeGroupId=org.apache.avro
> -DarchetypeArtifactId=avro-service-archetype -DarchetypeVersion=1.11.0
> -DgroupId=com.example -DartifactId=avro-simple -Dversion=1.0.0-SNAPSHOT
> -Dpackage=com.example
> {code}
> It compiles correctly with recent versions of maven, but fails for maven
> 3.2.5 and 3.3.9. (Notably, Flink uses maven 3.2.5).
> {code}
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 6.864 s
> [INFO] Finished at: 2021-12-23T16:07:10+00:00
> [INFO] Final Memory: 36M/545M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-install-plugin:2.5.2:install (default-install)
> on project avro-simple: Execution default-install of goal
> org.apache.maven.plugins:maven-install-plugin:2.5.2:install failed: Unable to
> load the mojo 'install' (or one of its required components) from the plugin
> 'org.apache.maven.plugins:maven-install-plugin:2.5.2':
> com.google.inject.ProvisionException: Unable to provision, see the following
> errors:
> [ERROR]
> [ERROR] 1) Error injecting: private org.eclipse.aether.spi.log.Logger
> org.apache.maven.repository.internal.DefaultVersionRangeResolver.logger
> [ERROR] while locating
> org.apache.maven.repository.internal.DefaultVersionRangeResolver
> [ERROR] while locating java.lang.Object annotated with *
> [ERROR] at org.eclipse.sisu.wire.LocatorWiring
> [ERROR] while locating org.eclipse.aether.impl.VersionRangeResolver
> [ERROR] for parameter 2 at
> org.eclipse.aether.internal.impl.collect.DefaultDependencyCollector.<init>(Unknown
> Source)
> [ERROR] while locating
> org.eclipse.aether.internal.impl.collect.DefaultDependencyCollector
> [ERROR] while locating java.lang.Object annotated with *
> [ERROR] at org.eclipse.sisu.wire.LocatorWiring
> [ERROR] while locating org.eclipse.aether.impl.DependencyCollector
> [ERROR] for parameter 5 at
> org.eclipse.aether.internal.impl.DefaultRepositorySystem.<init>(Unknown
> Source)
> [ERROR] while locating
> org.eclipse.aether.internal.impl.DefaultRepositorySystem
> [ERROR] while locating java.lang.Object annotated with *
> [ERROR] while locating
> org.apache.maven.artifact.installer.DefaultArtifactInstaller
> [ERROR] at ClassRealm[plexus.core, parent: null] (via modules:
> org.eclipse.sisu.wire.WireModule ->
> org.eclipse.sisu.plexus.PlexusBindingModule)
> [ERROR] at ClassRealm[plexus.core, parent: null] (via modules:
> org.eclipse.sisu.wire.WireModule ->
> org.eclipse.sisu.plexus.PlexusBindingModule)
> [ERROR] while locating org.apache.maven.artifact.installer.ArtifactInstaller
> [ERROR] while locating org.apache.maven.plugin.install.InstallMojo
> [ERROR] at
> ClassRealm[plugin>org.apache.maven.plugins:maven-install-plugin:2.5.2,
> parent: sun.misc.Launcher$AppClassLoader@7852e922] (via modules:
> org.eclipse.sisu.wire.WireModule ->
> org.eclipse.sisu.plexus.PlexusBindingModule)
> [ERROR] while locating org.apache.maven.plugin.Mojo annotated with
> @com.google.inject.name.Named(value=org.apache.maven.plugins:maven-install-plugin:2.5.2:install)
> [ERROR] 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
> [ERROR] at
> sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167)
> [ERROR] at
> sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)