Skip to content

-SNAPSHOT Dependency in POM Causes Build Issues #3738

@andponlin

Description

@andponlin

Describe the bug
The pom.xml for io.micrometer:micrometer-core:1.10.5 has a SNAPSHOT depdendency in it which is causing problems for projects using the go-offine function in Maven because the SNAPSHOT version is not publicly available. Please see here;

<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-core</artifactId>
<version>1.10.5</version>
<name>micrometer-core</name>
...
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>context-propagation</artifactId>
<version>1.0.3-SNAPSHOT</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
...

Please update the project so that there are no SNAPSHOT dependencies in the release.

Environment
This is being encountered with a SpringBoot 3 application here and is occuring when the immutable Docker container image is built from the Dockerfile. See the line;

RUN ./mvnw clean org.apache.maven.plugins:maven-dependency-plugin:3.3.0:go-offline

To Reproduce
Clone the project and with a Java 17 JAVA_HOME run...

./mvnw clean org.apache.maven.plugins:maven-dependency-plugin:3.3.0:go-offline

Finally you will see;

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.3.0:go-offline (default-cli) on project haikudepotserver-core: org.eclipse.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved: io.micrometer:context-propagation:jar:1.0.3-SNAPSHOT (absent): Could not find artifact io.micrometer:context-propagation:jar:1.0.3-SNAPSHOT -> [Help 1]

Expected behavior
The Maven execution will run to completion.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA general bugbuildA change in our build-system

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy