Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

In multi-module project: "Artifact is present in the local repository, but cached from a remote repository ID that is unavailable in current build context" #1306

Open
Labels
bugSomething isn't working

Description

Affected version

3.8.0

Bug description

When building a multi-module project using maven-assembly-plugin, the build repeatedly prints warnings for dependencies from a repository defined in the parent POM (which contains artifacts not present in the Maven Central). The warning message is:

[INFO] Artifact <groupId>:<artifactId>:pom:<version> is present in the local repository, but cached from a remote repository ID that is unavailable in current build context, verifying that is downloadable from [central (https://repo.maven.apache.org/maven2, default, releases)]

This occurs even though all artifacts are successfully resolved during the main build phase and are present in the local cache.

It appears the plugin ignores the project's repositories configuration. This leads to dozens of warnings, slowing down the build.

The root cause seems similar to the previously resolved issue MASSEMBLY-855. The problem is that the plugin's internal DefaultDependencyResolver does not properly inherit the session's repository list when executed from a child module in a reactor build.

I attached test multi-module project which represents this issue.

test.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /