Skip to content

BanDuplicateClasses trying to download artifacts #251

@delanym

Description

@delanym

This rule seems to be very troublesome, but recently it became unbearable.

With this configuration

<banDuplicateClasses>
  <ignoreClasses/>
  <scopes/>
  <findAllDuplicates>false</findAllDuplicates>
  <ignoreWhenIdentical>false</ignoreWhenIdentical>
</banDuplicateClasses>

It tries to download an artifact already downloaded (why is it even downloading artifacts?) and outputs a whopping 25 lines for every missing dependency.

Downloading from maven-releases: https://nexus.segway.com/repository/maven-releases/com.segway.driver/java-modules/3.3.0/java-modules-3.3.0.pom
Downloaded from maven-releases: https://nexus.segway.com/repository/maven-releases/com.segway.driver/java-modules/3.3.0/java-modules-3.3.0.pom (425 B at 604 B/s)                                                                                                                                 
Downloading from maven-releases: https://nexus.segway.com/repository/maven-releases/com.segway.driver/java-modules/3.3.0/java-modules-3.3.0.jar
Downloaded from maven-releases: https://nexus.segway.com/repository/maven-releases/com.segway.driver/java-modules/3.3.0/java-modules-3.3.0.jar (7.3 MB at 2.2 MB/s)
[INFO] Building com.segway.msgfactories:segwaymsgfactory:1.2.16-SNAPSHOT
Downloading from pronto-public: https://nexus.segway.com/repository/maven-public/com.segway.driver/java-modules/3.3.0/java-modules-3.3.0.jar
[WARNING] Missing:
----------
1) com.segway.driver:java-modules:jar:3.3.0

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=com.segway.driver -DartifactId=java-modules -Dversion=3.3.0 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=com.segway.driver -DartifactId=java-modules -Dversion=3.3.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
        1) com.segway.driver:java-modules:jar:3.3.0

----------
1 required artifact is missing.

for artifact: 
  com.segway.driver:java-modules:jar:3.3.0

from the specified remote repositories:
  pronto-public (https://nexus.segway.com/repository/maven-public/, releases=true, snapshots=false)
Path to dependency: 
        1) com.segway.driver:java-modules:jar:3.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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