Maven 1
  1. Maven 1
  2. MAVEN-1440

Clearing maven.repo.remote results in incorrect reporting of unsatisfied dependencies

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Solaris
    • Number of attachments :
      0

      Description

      Running "maven -Dmaven.repo.remote= -Dmaven.mode.online=false"
      <snip>
      The use of the remote repository has been disabled. (x10)

      BUILD FAILED
      File...... /export/home/cruise/.maven/cache/maven-multiproject-plugin-1.3.1/plugin.jelly
      Element... maven:reactor
      Line...... 217
      Column.... 9
      The build cannot continue because of the following unsatisfied dependency:

      kernel-core-SNAPSHOT.jar
      </snip>

      Which is misleading. kernel-core-SNAPSHOT.jar failed to build because it was missing dependencies. Running "maven -o -Dmaven.repo.remote= multiproject:install-snapshot" shows the correct dependencies:

      <snip>
      The use of the remote repository has been disabled. (x10)
      You are working offline so the build will continue, but kernel-core-SNAPSHOT.jar may be out of date!
      You are working offline so the build will continue, but kernel-container-SNAPSHOT.jar may be out of date!

      BUILD FAILED
      File...... /export/home/cruise/.maven/cache/maven-multiproject-plugin-1.3.1/plugin.jelly
      Element... maven:reactor
      Line...... 217
      Column.... 9
      The build cannot continue because of the following unsatisfied dependencies:

      commons-beanutils-1.6.1.jar
      commons-digester-1.4.1.jar
      </snip>

        Activity

        Hide
        Brett Porter added a comment -

        need to check if this has already been fixed.

        Show
        Brett Porter added a comment - need to check if this has already been fixed.
        Hide
        Arnaud Heritier added a comment -

        I don't want to put the build offline if maven.repo.remote isn't defined. It's not logical.
        I prefer to fail the build if maven.repo.remote is empty and the build is online.

        Show
        Arnaud Heritier added a comment - I don't want to put the build offline if maven.repo.remote isn't defined. It's not logical. I prefer to fail the build if maven.repo.remote is empty and the build is online.
        Hide
        Michael Osipov added a comment -

        Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.

        Show
        Michael Osipov added a comment - Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.

          People

          • Assignee:
            Unassigned
            Reporter:
            Cameron Horn
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: