Ryan Skraba created AVRO-4218:
---------------------------------
Summary: [Java] Unable to depend on avro-tools from maven
Key: AVRO-4218
URL: https://issues.apache.org/jira/browse/AVRO-4218
Project: Apache Avro
Issue Type: Bug
Affects Versions: 1.12.1, 1.11.5, 1.11.4
Reporter: Ryan Skraba
The {{avro-tools}} dependency in the following pom can't be resolved.
This is broken for 1.12.1, 1.11.5 and 1.11.4, but works for 1.12.0 and 1.11.3.
{code}
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>avro-tool-dependency</artifactId>
<groupId>com.example</groupId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Test dependency</name>
<properties>
<project.relBaseDir>..</project.relBaseDir>
<maven.deploy.skip>false</maven.deploy.skip>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.avro</groupId>
<artifactId>avro-tools</artifactId>
<version>1.12.1</version>
</dependency>
</dependencies>
</project>
{code}
it looks like some jars with the test classifier were not published to maven:
{code}
Downloaded from central:
https://repo.maven.apache.org/maven2/org/apache/avro/trevni-core/1.11.4/trevni-core-1.11.4.jar
(48 kB at 153 kB/s)
Downloaded from central:
https://repo.maven.apache.org/maven2/org/apache/avro/trevni-avro/1.11.4/trevni-avro-1.11.4.jar
(44 kB at 61 kB/s)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.017 s
[INFO] Finished at: 2025-12-03T21:03:43+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project avro-tool-dependency: Could not
resolve dependencies for project
com.example:avro-tool-dependency:jar:0.0.1-SNAPSHOT
[ERROR] dependency: org.apache.avro:trevni-core:jar:tests:1.11.4 (compile)
[ERROR] Could not find artifact
org.apache.avro:trevni-core:jar:tests:1.11.4 in central
(https://repo.maven.apache.org/maven2)
[ERROR] dependency: org.apache.avro:trevni-avro:jar:tests:1.11.4 (compile)
[ERROR] Could not find artifact
org.apache.avro:trevni-avro:jar:tests:1.11.4 in central
(https://repo.maven.apache.org/maven2)
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)