You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tamás Cservenák (Jira)" <ji...@apache.org> on 2022/05/17 12:33:00 UTC

[jira] [Commented] (MASSEMBLY-874) maven-assembly plugin always downloads dependencies from net

    [ https://issues.apache.org/jira/browse/MASSEMBLY-874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17538155#comment-17538155 ] 

Tamás Cservenák commented on MASSEMBLY-874:
-------------------------------------------

Confirmed, in a moment you have {{<repository>}} element in assembly descriptor, this is happening.

> maven-assembly plugin always downloads dependencies from net
> ------------------------------------------------------------
>
>                 Key: MASSEMBLY-874
>                 URL: https://issues.apache.org/jira/browse/MASSEMBLY-874
>             Project: Maven Assembly Plugin
>          Issue Type: Improvement
>    Affects Versions: 3.1.0
>         Environment: Multi-Module build
>            Reporter: Roland Schäuble
>            Assignee: Enrico Olivelli
>            Priority: Major
>         Attachments: make.log, maven_assembly_repositories_after_and_before_change.png
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The maven-assembly-plugin always loads it own dependencies from the internet, although the required dependencies are available in the local m2 repositiory. The local repository is updated with the dependencies but during the next build, the files are downloaded from the internet again instead of getting them from the local repo.
> In the attached log, near the end, the unnecessary downloads begin with "Downloading from central: [https://repo.maven.apache.org/maven2/com/lowagie/itext/2.1.7.js5/itext-2.1.7.js5.pom."|https://repo.maven.apache.org/maven2/com/lowagie/itext/2.1.7.js5/itext-2.1.7.js5.pom.]
> The files are definitely available in my local repository under ~/.m2/repository/com/...



--
This message was sent by Atlassian Jira
(v8.20.7#820007)