question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jsonschema-maven-plugin fails because of missing transitive dependencies

See original GitHub issue

I’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:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dickmaocommented, Aug 31, 2022

I’ve a very simple project like this:

If this is very simple, I’d hate to see complicated (I’m completely new to maven).

0reactions
lburgazzolicommented, Jan 7, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found