-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POM with binary type dependencies #132
Comments
Noting that I'm able to work around this by using exclusions + # WORKSPACE
http_file(
name = "com_almworks_sqlite4java_libsqlite4java_linux_amd64",
downloaded_file_path = "libsqlite4java-linux-amd64-1.0.392.so",
urls = ["https://repo1.maven.org/maven2/com/almworks/sqlite4java/libsqlite4java-linux-amd64/1.0.392/libsqlite4java-linux-amd64-1.0.392.so"],
)
http_file(
name = "com_almworks_sqlite4java_libsqlite4java_osx",
downloaded_file_path = "libsqlite4java-osx-1.0.392.dylib",
urls = ["https://repo1.maven.org/maven2/com/almworks/sqlite4java/libsqlite4java-osx/1.0.392/libsqlite4java-osx-1.0.392.dylib"],
)
http_file(
name = "org_eclipse_jetty_orbit_javax_servlet",
downloaded_file_path = "javax.servlet-3.0.0.v201112011016.jar",
urls = ["https://repo1.maven.org/maven2/org/eclipse/jetty/orbit/javax.servlet/3.0.0.v201112011016/javax.servlet-3.0.0.v201112011016.jar"],
)
maven_install(
artifacts = [
maven.artifact(
group = "com.amazonaws",
artifact = "DynamoDBLocal",
version = "1.11.477",
exclusions = [
"com.almworks.sqlite4java:libsqlite4java-linux-amd64",
"com.almworks.sqlite4java:libsqlite4java-linux-i386",
"com.almworks.sqlite4java:libsqlite4java-osx",
"com.almworks.sqlite4java:sqlite4java-win32-x64",
"com.almworks.sqlite4java:sqlite4java-win32-x86",
"org.eclipse.jetty.orbit:javax.servlet",
],
),
],
) # BUILD
java_import(
name = "org_eclipse_jetty_orbit_javax_servlet",
jars = [
"@org_eclipse_jetty_orbit_javax_servlet//file",
],
)
java_binary(
name = "dynamodb-local",
args = [
"-sharedDb",
"-inMemory",
],
data = [
"@com_almworks_sqlite4java_libsqlite4java_linux_amd64//file",
"@com_almworks_sqlite4java_libsqlite4java_osx//file",
],
jvm_flags = [
"-Djava.library.path=$$JAVA_RUNFILES/com_almworks_sqlite4java_libsqlite4java_osx/file/:$$JAVA_RUNFILES/com_almworks_sqlite4java_libsqlite4java_linux_amd64/file/",
],
main_class = "com.amazonaws.services.dynamodbv2.local.main.ServerRunner",
visibility = ["//visibility:public"],
runtime_deps = [
"org_eclipse_jetty_orbit_javax_servlet",
"@maven//:com_almworks_sqlite4java_sqlite4java",
"@maven//:com_amazonaws_DynamoDBLocal",
],
) |
Marking this as a feature request and thanks for providing the clear workaround. FWIW, on 2.0.1 I can include the |
@jin I tried the same and get errors like
when building. I had to use a similar workaround as above. |
log4j exports some test helpers with a packaging as test-jar. Packaging doesn't seem to affect which artifact is actually retrieved. (I think same root issue) |
Maybe the same problem for
|
Hitting the exact same issue with the same dependency. So far this has been the only issue I've had with rules_jvm_external. |
Same for quarkus |
https://github.com/bazelbuild/rules_jvm_external/pull/959/files is not fully automagical but a bit nicer experience |
The POM for DynamoDB local
com.amazonaws:DynamoDBLocal:1.11.477
inhttps://s3-us-west-2.amazonaws.com/dynamodb-local/release
includes some binary dependencies:So we get:
Are there any suggestions for handling transitive dependencies of this sort?
The text was updated successfully, but these errors were encountered: