You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Oliver Glowa (Jira)" <ji...@apache.org> on 2020/10/21 13:21:00 UTC

[jira] [Updated] (MASSEMBLY-944) Goal assembly:single tries to load artifacts from undefined repositores

     [ https://issues.apache.org/jira/browse/MASSEMBLY-944?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Glowa updated MASSEMBLY-944:
-----------------------------------
    Attachment: build3-0.log

> Goal assembly:single tries to load artifacts from undefined repositores
> -----------------------------------------------------------------------
>
>                 Key: MASSEMBLY-944
>                 URL: https://issues.apache.org/jira/browse/MASSEMBLY-944
>             Project: Maven Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 3.0.0, 3.1.0, 3.1.1, 3.3.0
>            Reporter: Oliver Glowa
>            Priority: Major
>              Labels: Repositories, assembly
>         Attachments: build2-6.log, build3-0.log
>
>
> h1. Problem Description
> According to MASSEMBLY-917 and the comment i have to disagree. The problem occurs in case :
>  * You are using an artifact-A (from the official maven-repo)
>  * This artifcat has an <repositories>-Tag defined, for some (private) maven-repo-A
>  * Your own artifact-B is only deployed on your own (private) maven-repo-B
>  * You have defined in artifcat-B an <repositories>-Tag for your own maven-repo-B
>  * Your artifact-B is not deployed to the official maven-repo
> When executing goal "assembly:single" the goal tries to load artifact-B from
>  * official maven-repo (fails)
>  * maven-repo-A (fails)
>  * maven-repo-B (success)
> *Logfile excerpt*
> {noformat}
> [INFO] --- maven-assembly-plugin:3.0.0:single (default-cli) @ assembly-plugin-sample ---
> [INFO] Reading assembly descriptor: src/main/assembly/package.xml
> Downloading from terracotta-releases: http://www.terracotta.org/download/reflector/releases/com/glowa-net/samples/assembly-plugin-artifact/1.0-SNAPSHOT/maven-metadata.xml
> Downloading from codehaus.snapshots: http://snapshots.repository.codehaus.org/com/glowa-net/samples/assembly-plugin-artifact/1.0-SNAPSHOT/maven-metadata.xml
> Downloading from apache.snapshots: https://repository.apache.org/snapshots/com/glowa-net/samples/assembly-plugin-artifact/1.0-SNAPSHOT/maven-metadata.xml
> Downloading from terracotta-snapshots: http://www.terracotta.org/download/reflector/snapshots/com/glowa-net/samples/assembly-plugin-artifact/1.0-SNAPSHOT/maven-metadata.xml
> Downloading from sonatype-nexus-snapshots: https://oss.sonatype.org/content/repositories/snapshots/com/glowa-net/samples/assembly-plugin-artifact/1.0-SNAPSHOT/maven-metadata.xml
> Downloading from ow2-snapshot: http://repository.ow2.org/nexus/content/repositories/snapshots/com/glowa-net/samples/assembly-plugin-artifact/1.0-SNAPSHOT/maven-metadata.xml
> Downloading from apache-snapshots: http://people.apache.org/repo/m2-snapshot-repository/com/glowa-net/samples/assembly-plugin-artifact/1.0-SNAPSHOT/maven-metadata.xml
> Downloading from codehaus-snapshots: http://snapshots.repository.codehaus.org/com/glowa-net/samples/assembly-plugin-artifact/1.0-SNAPSHOT/maven-metadata.xml
> Downloading from jvnet-nexus-snapshots: https://maven.java.net/content/repositories/snapshots/com/glowa-net/samples/assembly-plugin-artifact/1.0-SNAPSHOT/maven-metadata.xml
> [WARNING] Could not transfer metadata com.glowa-net.samples:assembly-plugin-artifact:1.0-SNAPSHOT/maven-metadata.xml from/to terracotta-releases (http://www.terracotta.org/download/reflector/releases): Authorization failed for http://www.terracotta.org/download/reflector/releases/com/glowa-net/samples/assembly-plugin-artifact/1.0-SNAPSHOT/maven-metadata.xml 403 Forbidden
> [WARNING] Could not transfer metadata com.glowa-net.samples:assembly-plugin-artifact:1.0-SNAPSHOT/maven-metadata.xml from/to codehaus.snapshots (http://snapshots.repository.codehaus.org): Transfer failed for http://snapshots.repository.codehaus.org/com/glowa-net/samples/assembly-plugin-artifact/1.0-SNAPSHOT/maven-metadata.xml
> [WARNING] Could not transfer metadata com.glowa-net.samples:assembly-plugin-artifact:1.0-SNAPSHOT/maven-metadata.xml from/to codehaus-snapshots (http://snapshots.repository.codehaus.org): Transfer failed for http://snapshots.repository.codehaus.org/com/glowa-net/samples/assembly-plugin-artifact/1.0-SNAPSHOT/maven-metadata.xml
> [INFO] Copying files to C:\projects\projects_testing\assembly-plugin-sample\target\assembly-plugin-sample-1.0-SNAPSHOT-dis
> [WARNING] Assembly file: C:\projects\projects_testing\assembly-plugin-sample\target\assembly-plugin-sample-1.0-SNAPSHOT-dis is not a regular file (it may be a directory). It cannot be attached to the project build for installation or deployment.
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> {noformat}
> This has an impact on the build cycle and build time.
> The problem occurs first with R3.0.0 and seemed to me  NOT a configuration problem, because the problem does not occur with R2.6:
>  * official maven-repo (fails)
>  * maven-repo-B (success)
> *Logfile excerpt*
> {noformat}
> [INFO] --- maven-assembly-plugin:2.6:single (default-cli) @ assembly-plugin-sample ---
> [INFO] Reading assembly descriptor: src/main/assembly/package.xml
> [INFO] Copying files to C:\projects\projects_testing\assembly-plugin-sample\target\assembly-plugin-sample-1.0-SNAPSHOT-dis
> [WARNING] Assembly file: C:\projects\projects_testing\assembly-plugin-sample\target\assembly-plugin-sample-1.0-SNAPSHOT-dis is not a regular file (it may be a directory). It cannot be attached to the project build for installation or deployment.
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> {noformat}
> h1. Example
> I've added an example as attachment and the corrosponding logfiles when executing with R2.6 and R3.0.0 of the plugin.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)