Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-711

go-offline fails to download SNAPSHOT from other repository

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • go-offline
    • None

    Description

      I have a dependency on org.projectlombok:lombok:jar:edge-SNAPSHOT which should come from a different repository (see Project Lombok instructions). So in my POM I have

      <repositories>
        <repository>
          <id>projectlombok.org</id>
          <url>https://projectlombok.org/edge-releases</url>
          <releases>
            <enabled>false</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
            <updatePolicy>always</updatePolicy>
          </snapshots>
        </repository>
      </repositories>
      

      When I do mvn dependency:go-offline it fails with

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.2:go-offline (default-cli) on project mdep-711: org.eclipse.aether.resolution.DependencyResolutionException: Could not find artifact org.projectlombok:lombok:jar:edge-SNAPSHOT -> [Help 1]

      I would expect go-offline to (also) download this edge-SNAPSHOT dependency, but it doesn't. I'm not yet sure what the exact failure condition is: SNAPSHOT dependency, different repository, or the combination.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mthmulders Maarten Mulders
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: