``` FAILURE Exception caught: (<c...
# general
b
Copy code
FAILURE
Exception caught: (<class 'pants.cache.cache_setup.RemoteCacheSpecRequiredError'>)
  File "/Users/pl/code/pants/src/python/pants/bin/pants_exe.py", line 50, in <module>
    main()
  File "/Users/pl/code/pants/src/python/pants/bin/pants_exe.py", line 44, in main
    PantsRunner(exiter).run()
  File "/Users/pl/code/pants/src/python/pants/bin/pants_runner.py", line 53, in run
    options_bootstrapper=options_bootstrapper)
  File "/Users/pl/code/pants/src/python/pants/bin/pants_runner.py", line 43, in _run
    return LocalPantsRunner(exiter, args, env, options_bootstrapper=options_bootstrapper).run()
  File "/Users/pl/code/pants/src/python/pants/bin/local_pants_runner.py", line 49, in run
    self._maybe_profiled(self._run)
  File "/Users/pl/code/pants/src/python/pants/bin/local_pants_runner.py", line 46, in _maybe_profiled
    runner()
  File "/Users/pl/code/pants/src/python/pants/bin/local_pants_runner.py", line 84, in _run
    result = goal_runner.run()
  File "/Users/pl/code/pants/src/python/pants/bin/goal_runner.py", line 335, in run
    result = self._execute_engine()
  File "/Users/pl/code/pants/src/python/pants/bin/goal_runner.py", line 324, in _execute_engine
    result = engine.execute(self._context, self._goals)
  File "/Users/pl/code/pants/src/python/pants/engine/engine.py", line 26, in execute
    self.attempt(context, goals)
  File "/Users/pl/code/pants/src/python/pants/engine/round_engine.py", line 240, in attempt
    goal_executor.attempt(explain)
  File "/Users/pl/code/pants/src/python/pants/engine/round_engine.py", line 58, in attempt
    task.execute()
  File "/Users/pl/code/pants/src/python/pants/backend/jvm/tasks/jvm_compile/jvm_compile.py", line 392, in execute
    classpath_product.add_for_target(cc.target, [(conf, cc.jar_file)])
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 24, in __exit__
    self.gen.next()
  File "/Users/pl/code/pants/src/python/pants/task/task.py", line 425, in invalidated
    and self.artifact_cache_writes_enabled()
  File "/Users/pl/code/pants/src/python/pants/task/task.py", line 270, in artifact_cache_writes_enabled
    return self._cache_factory.write_cache_available()
  File "/Users/pl/code/pants/src/python/pants/cache/cache_setup.py", line 131, in write_cache_available
    return self._options.write and bool(self._options.write_to) and self.get_write_cache()
  File "/Users/pl/code/pants/src/python/pants/cache/cache_setup.py", line 154, in get_write_cache
    cache_spec = self._resolve(self._sanitize_cache_spec(self._options.write_to))
  File "/Users/pl/code/pants/src/python/pants/cache/cache_setup.py", line 183, in _sanitize_cache_spec
    raise RemoteCacheSpecRequiredError('One of two cache specs must be a remote spec.')

Exception message: One of two cache specs must be a remote spec.