Skip to content
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.xml do not get the necessary to run the example.java #99

Closed
ViniciusDeAndrade opened this issue Oct 18, 2017 · 8 comments
Closed

pom.xml do not get the necessary to run the example.java #99

ViniciusDeAndrade opened this issue Oct 18, 2017 · 8 comments

Comments

@ViniciusDeAndrade
Copy link

Hi! I set the pom with the specified maven dependency, but the is no Config class to import.
config

What is wrong?

check the pom.xml
xml

@lwander
Copy link
Contributor

lwander commented Oct 18, 2017

Can you import

import io.kubernetes.client.util.Config

or is the editor just not suggesting it?

@ViniciusDeAndrade
Copy link
Author

ViniciusDeAndrade commented Oct 18, 2017

It is a little strange because the package explore do not show anything "inside" the Config.class tree item.
I am sending a screenshot to show the idea of the bug.

class

See in the package explore that there is a KubeConfig.class file, and it can be expanded, showing the KubeConfig class. It cannot be made with the Config.class file. So, the example given by this kubernetes-client java cannot work properly.

Finally, the editor suggest to me to create a Config class to solve this problem. So, it means that it is not recognizing the Config class in the maven dependencies

@lwander
Copy link
Contributor

lwander commented Oct 18, 2017

Are you able to build your code when you import the config class? If so, maybe something needs to be reconfigured in your editor.

@lwander
Copy link
Contributor

lwander commented Oct 18, 2017

@lwander
Copy link
Contributor

lwander commented Oct 18, 2017

And here is an example of an editor opening the dependency:
editor

@ViniciusDeAndrade
Copy link
Author

I will try to use another IDE so. In fact, when I try to use "alt + F5" to check the "force update of snapshots/releases", the editor do not save what I just did. I know that because I open it again and see it unchecked.

Maybe it is really a eclipse problem. I have tryed to use it on windows, besides ubuntu. I guess it is time to try .... Netbeans.

Thanks for your help

@ViniciusDeAndrade
Copy link
Author

I finally fixed it!
There was an error on maven cache

Thank you!

@lwander
Copy link
Contributor

lwander commented Oct 18, 2017

Glad it works!

@lwander lwander closed this as completed Oct 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants