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

Project does not compile once kolobok dependency is added #2

Open
nick2911 opened this issue Mar 2, 2020 · 3 comments
Open

Project does not compile once kolobok dependency is added #2

nick2911 opened this issue Mar 2, 2020 · 3 comments

Comments

@nick2911
Copy link

nick2911 commented Mar 2, 2020

I added this dependency in my project
<dependency> <groupId>com.github.ukman</groupId> <artifactId>kolobok</artifactId> <version>0.1.5</version> <scope>compile</scope> </dependency>

and tried to compile it.
I don't know why it started looking for other artifacts and says:

Could not resolve dependencies for project com.myartifact:mygroupId:jar:1.0.0: The following artifacts could not be resolved: groupid:rt:jar:1.8, com.sun:tools:jar:1.8, org.apache.struts:struts2-core:jar:1.3.10: Could not find artifact groupid:rt:jar:1.8 at specified path /usr/lib/jvm/java-11-openjdk-amd64/lib/rt.jar

@nick2911
Copy link
Author

nick2911 commented Mar 3, 2020

The compilation error goes away when I add the following exclusions:

            <exclusions>
                <exclusion>
                <groupId>com.sun</groupId>
                <artifactId>tools</artifactId>
            </exclusion>
            <exclusion>
                <groupId>groupid</groupId>
                <artifactId>rt</artifactId>
            </exclusion>
        </exclusions>

But why do I have to do this in the first place?

@anwithct
Copy link

anwithct commented Mar 3, 2020

Yeah I faced the same issue.

@mahesh1996
Copy link

@nick2911 rt.jar seems part of java 8 and you're probably running this with java 11. This library seems does not support java 11 yet.

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

3 participants