Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

target 'appengine/java/api' not declared in package 'external' #54

Open
MirkoRossini opened this issue Sep 8, 2017 · 1 comment
Open

Comments

@MirkoRossini
Copy link

MirkoRossini commented Sep 8, 2017

Hello,

I'm trying to make the bookshelf example app in the google documentation work with Bazel.

I can't build though. I run into this:

$ bazel build :myapp
INFO: $TEST_TMPDIR defined: output root default is '/spare/local/bazel/'.
.........................
ERROR: /spare/local/code/appengine/BUILD:17:1: no such target '//external:appengine/java/api': target 'appengine/java/api' not declared in package 'external' defined by /spare/local/code/appengine/WORKSPACE and referenced by '//:mylib'.
ERROR: Analysis of target '//:myapp' failed; build aborted.
INFO: Elapsed time: 2.065s

I attached my BUILD and WORKSPACE files.

Thanks

Mirko

configuration.zip

@MirkoRossini
Copy link
Author

I got it to work by adding this to the WORKSPACE:

bind(name='appengine/java/api', actual='@com_google_appengine_java//:api')

I'm totally new to bazel so there's probably a smarter way to make it work, but you may want to add something to the documentation so that it works out of the box

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant