[
https://issues.apache.org/jira/browse/MASSEMBLY-874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16334962#comment-16334962
]
Gordon Pettey edited comment on MASSEMBLY-874 at 1/22/18 9:37 PM:
------------------------------------------------------------------
Seeing this same issue. I have a some poms using {{jar:copy-dependencies}} and
a {{fileSet}} in assembly for a lib/ directory. Tried to simplify by removing
{{jar:c-d}} and {{fileSet}} and just including a {{dependencySet}} in assembly,
but it takes much longer to build now because it is forcing re-download of
every dependency and transitive dependency on every single build. If it
matters, I am executing {{mvn}} from inside a module directory with no children
of its own, so it is not a multi-module reactor like OP.
was (Author: gpettey):
Seeing this same issue. I have a some poms using {{jar:copy-dependencies}} and
a {{fileSet}} in assembly for a lib/ directory. Tried to simplify by removing
{{jar:c-d}} and {{fileSet}} and just including a {{dependencySet}} in assembly,
but it takes much longer to build now because it is forcing re-download of
every dependency and transitive dependency on every single build.
> 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
> Priority: Major
> Attachments: make.log
>
>
> 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
(v7.6.3#76005)