Skip to content

[Maven] Could not find com.raynigon.unit-api:spring-boot-core-starter:jar:3:0.9 #704

@alessiomatricardi

Description

@alessiomatricardi

Describe the bug
Starting from version 3.0.9, some artifacts are published with the plain classifier (spring-boot-core-starter:jar, spring-boot-jpa-starter:jar).

Affected Versions
3.0.9, 4.0.0, 4.0.1

To Reproduce
Steps to reproduce the behavior:

  1. Be sure to have installed maven 3.6.x or newer
  2. Create a folder and put a file named pom.xml with the following content
<?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>

    <groupId>com.alessiomatricardi</groupId>
    <artifactId>pom-test</artifactId>
    <version>1.0.0-SNAPSHOT</version>

    <dependencies>
        <dependency>
            <groupId>com.raynigon.unit-api</groupId>
            <artifactId>spring-boot-jpa-starter</artifactId>
            <version>3.0.9</version>
        </dependency>
    </dependencies>

</project>
  1. Launch mvn clean install command
  2. Output is
The following artifacts could not be resolved: com.raynigon.unit-api:spring-boot-jpa-starter:jar:3.0.9, com.raynigon.unit-api:spring-boot-core-starter:jar:3.0.9: com.raynigon.unit-api:spring-boot-jpa-starter:jar:3.0.9 was not found in [https://repo.maven.apache.org/maven2](vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-browser/workbench/workbench.html) during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

Expected behavior
The dependency is correctly downloaded from Central

Additional context

  1. Adding plain classifier to the dependency doesn't help because the next error will be related to the spring-boot-jpa-starter dependencies such as spring-boot-core-starter
  2. The result of mvn --version is
Apache Maven 3.6.3 (Red Hat 3.6.3-22)
Maven home: /usr/share/maven
Java version: 21.0.10, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-21-openjdk-21.0.10.0.7-1.el9.x86_64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.14.0-611.34.1.el9_7.x86_64", arch: "amd64", family: "unix"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions