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

Open
#704 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java, spring-boot
Domain
build-system

Research direction

Start with the minimal pom.xml reproduction in the issue and run mvn clean install using spring-boot-jpa-starter version 3.0.9. Inspect how the spring-boot-jpa-starter and spring-boot-core-starter artifacts and their dependencies are published, then verify that Maven can download them from Central without manually adding the plain classifier.

Written by the indexing model from the issue text.

Description

bug

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"
Dominant language
Java
Stars
8
Forks
3
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from raynigon/unit-api

All issues in raynigon/unit-api

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.