[GRADLE-2203] m9 build fails because LOCAL_MAVEN_REPO is not set Created: 29/Mar/12  Updated: 04/Jan/13  Resolved: 19/Aug/12

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 1.1-rc-1

Type: Improvement
Reporter: Gradle Forums Assignee: Unassigned
Resolution: Fixed Votes: 0


Trying to build without environment variable LOCAL_MAVEN_REPO fails with this output:

FAILURE: Build aborted because of an internal error.

  • What went wrong:
    Build aborted because of an unexpected internal error. Please file an issue at: http://forums.gradle.org.
  • Try:
    Run with --debug option to get additional debug info.
  • Exception is:
    org.gradle.api.internal.artifacts.mvnsettings.CannotLocateLocalMavenRepositoryException: Cannot resolve placeholder 'env.LOCAL_MAVEN_REPO' in value 'null'

Comment by Gradle Forums [ 29/Mar/12 ]

It means that you reference an environment variable LOCAL_MAVEN_REPO from your Maven settings.xml. Gradle's Maven plugin reads that file to learn about the location of the local Maven repository. Either remove the reference to the environment variable, or set the environment variable.

Comment by Gradle Forums [ 29/Mar/12 ]

You know, that environment variable did look familiar.

I do think though that this is a bug. It doesn't make sense to me that gradle fails because maven is not configured correctly.

Comment by Adam Murdoch [ 29/Mar/12 ]

Do you have the full stack trace for the failure?

Generated at Wed Jun 30 12:15:31 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.