jsonschema-maven-plugin fails because of missing transitive dependencies
See original GitHub issueI’ve a very simple project like this:
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.lburgazzoli</groupId>
<artifactId>schema</artifactId>
<version>0.1</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.parameters>true</maven.compiler.parameters>
</properties>
<dependencies>
<dependency>
<groupId>com.slack.api</groupId>
<artifactId>slack-api-model</artifactId>
<version>1.8.1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.github.victools</groupId>
<artifactId>jsonschema-maven-plugin</artifactId>
<version>4.21.0</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<classNames>
<className>com.slack.api.model.Message</className>
</classNames>
</configuration>
</plugin>
</plugins>
</build>
</project>
When running the mojo, I get the following error:
[INFO] --- jsonschema-maven-plugin:4.21.0:generate (default) @ schema ---
Downloading from central: https://repo.maven.apache.org/maven2/com/github/victools/jsonschema-generator/jsonschema-generator/4.21.0/jsonschema-generator-4.21.0.pom
[WARNING] The POM for com.github.victools.jsonschema-generator:jsonschema-generator:jar:4.21.0 is missing, no dependency information available
Downloading from central: https://repo.maven.apache.org/maven2/com/github/victools/jsonschema-generator/jsonschema-maven-plugin/4.21.0/jsonschema-maven-plugin-4.21.0.pom
[WARNING] The POM for com.github.victools.jsonschema-generator:jsonschema-maven-plugin:jar:4.21.0 is missing, no dependency information available
Downloading from central: https://repo.maven.apache.org/maven2/com/github/victools/jsonschema-generator/jsonschema-module-jackson/4.21.0/jsonschema-module-jackson-4.21.0.pom
[WARNING] The POM for com.github.victools.jsonschema-generator:jsonschema-module-jackson:jar:4.21.0 is missing, no dependency information available
Downloading from central: https://repo.maven.apache.org/maven2/com/github/victools/jsonschema-generator/jsonschema-module-jakarta-validation/4.21.0/jsonschema-module-jakarta-validation-4.21.0.pom
[WARNING] The POM for com.github.victools.jsonschema-generator:jsonschema-module-jakarta-validation:jar:4.21.0 is missing, no dependency information available
Downloading from central: https://repo.maven.apache.org/maven2/com/github/victools/jsonschema-generator/jsonschema-module-javax-validation/4.21.0/jsonschema-module-javax-validation-4.21.0.pom
[WARNING] The POM for com.github.victools.jsonschema-generator:jsonschema-module-javax-validation:jar:4.21.0 is missing, no dependency information available
Downloading from central: https://repo.maven.apache.org/maven2/com/github/victools/jsonschema-generator/jsonschema-module-swagger-1.5/4.21.0/jsonschema-module-swagger-1.5-4.21.0.pom
[WARNING] The POM for com.github.victools.jsonschema-generator:jsonschema-module-swagger-1.5:jar:4.21.0 is missing, no dependency information available
Downloading from central: https://repo.maven.apache.org/maven2/com/github/victools/jsonschema-generator/jsonschema-module-swagger-2/4.21.0/jsonschema-module-swagger-2-4.21.0.pom
[WARNING] The POM for com.github.victools.jsonschema-generator:jsonschema-module-swagger-2:jar:4.21.0 is missing, no dependency information available
Downloading from central: https://repo.maven.apache.org/maven2/com/github/victools/jsonschema-generator/jsonschema-generator/4.21.0/jsonschema-generator-4.21.0.jar
Downloading from central: https://repo.maven.apache.org/maven2/com/github/victools/jsonschema-generator/jsonschema-maven-plugin/4.21.0/jsonschema-maven-plugin-4.21.0.jar
Downloading from central: https://repo.maven.apache.org/maven2/com/github/victools/jsonschema-generator/jsonschema-module-jackson/4.21.0/jsonschema-module-jackson-4.21.0.jar
Downloading from central: https://repo.maven.apache.org/maven2/com/github/victools/jsonschema-generator/jsonschema-module-jakarta-validation/4.21.0/jsonschema-module-jakarta-validation-4.21.0.jar
Downloading from central: https://repo.maven.apache.org/maven2/com/github/victools/jsonschema-generator/jsonschema-module-javax-validation/4.21.0/jsonschema-module-javax-validation-4.21.0.jar
Downloading from central: https://repo.maven.apache.org/maven2/com/github/victools/jsonschema-generator/jsonschema-module-swagger-1.5/4.21.0/jsonschema-module-swagger-1.5-4.21.0.jar
Downloading from central: https://repo.maven.apache.org/maven2/com/github/victools/jsonschema-generator/jsonschema-module-swagger-2/4.21.0/jsonschema-module-swagger-2-4.21.0.jar
Looks like the maven coordinates of the transitive dependencies are wrong.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Some of the transitive dependencies are missing compared to ...
I've read the CONTRIBUTING guidelines steps files Under project directory, named sbt-issue. build.sbt name := "sbt-issue" organization ...
Read more >gradle 7 missing transitive dependencies - Stack Overflow
I tried switching my build.gradle file to use 'api' in the dependencies but that did not fix it. projectA has a dependency on...
Read more >Customizing resolution of a dependency directly
It's because the module coordinates for both libraries are completely different and conflict resolution is activated when group and module coordinates are the ......
Read more >The hassle of transitive dependencies across sub-projects in ...
Modern build tools, like Gradle, handle that problem very well, especially by providing automatic resolution of transitive dependencies.
Read more >Add build dependencies - Android Developers
Add annotation processors; Exclude transitive dependencies ... That's because using this configuration improves build performance by separating the compile ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If this is very simple, I’d hate to see complicated (I’m completely new to maven).
Closing this one as it was an issue on my cached maven repo. Opened a new one for the failure on OpenJDK 11 https://github.com/victools/jsonschema-generator/issues/222