-
Notifications
You must be signed in to change notification settings - Fork 128
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
Compilation problems when using GenericContainer #11
Comments
Hi @zaharidichev |
Thanks a lot. It really is causing me quite a lot of headache :( |
@zaharidichev could you please show the list of your dependencies and their versions? |
@dimafeng Thanks for looking into that. Following is a list of the dependencies.
|
@zaharidichev |
I did try setting:
However that did not display any additional information. Quite strange. Just the same old error. Something is getting severely mixed up on the compiler level. This type does not even exist. I do not understand what and why is trying to access it. |
I'll try to create an SBT project to reproduce the issue. |
@dimafeng |
Right... [info] [loaded package loader jackson in 0ms]
[info] [loaded package loader annotation in 0ms]
[info] [loaded package loader javax in 0ms]
[error] Class org.testcontainers.shaded.javax.annotation.CheckForNull not found - continuing with a stub.
[error] Class org.testcontainers.shaded.javax.annotation.CheckForNull not found - continuing with a stub.
[error] Class org.testcontainers.shaded.javax.annotation.CheckForNull not found - continuing with a stub.
[info] [loaded class file /Users/zahari/.ivy2/cache/org.testcontainers/testcontainers/jars/testcontainers-1.4.3.jar(com/github/dockerjava/api/command/InspectContainerResponse.class) in 2ms]
[info] [loaded package loader traits in 0ms] This is happening right before the loader picks up import org.testcontainers.shaded.com.fasterxml.jackson.annotation.JsonIgnore;
import org.testcontainers.shaded.com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.testcontainers.shaded.com.fasterxml.jackson.annotation.JsonProperty;
import org.testcontainers.shaded.javax.annotation.CheckForNull; <----- this guy here !
@JsonIgnoreProperties(
ignoreUnknown = true
)
public class InspectContainerResponse {
@JsonProperty("Args")
private String[] args;
@JsonProperty("Config") There is no such class
Seems like they missed something while shading the javax or I am getting confused somehow |
@zaharidichev sorry for the late response. This is interesting. @rnorth @bsideup do you guys know where |
@dimafeng I think I know where it comes from... Not related to testcontainers-scala, we need to fix that in testcontainers-core. @zaharidichev thanks for reporting! |
@bsideup Is there any estimation of when would that get fixed so I can pull in a snapshot at least. Alternatively I can give yo a hand and prepare a PR for it. |
I have the same problem. |
@ljkr sorry to hear that. It seems that issue was fixed in the latest version of |
@ljkr @zaharidichev please try version 0.13.0 |
@dimafeng the same problem with 0.13.0
So adding
|
@ljkr @zaharidichev should be fixed in testcontainers-scala 0.14.0, please try - testcontainers/testcontainers-java#563 was released in testcontainers-java 1.6.0 |
@dimafeng
The moment I touch GenericContainer class I get the following errors:
Scala Version: 2.11.8
Sbt version: 0.13.8
Have tried changing scala and sbt versions without much success. This error really does not tell me much of what I need (e.g. where is this class needed at all ?). Is this some conflict with other libraries. For example is lombock's NonNull getting mixed up with findbug's NonNull. If that is the case I have excluded the latter dependency but still get errors. A bit of help will be greatly appreciated
The text was updated successfully, but these errors were encountered: