简体   繁体   中英

Cannot add module in Intellij Idea

I want to add lucene library to my project and modify it's core methods . I already have used lucene .jar files and that was the time when I didn't need modifying lucene core codes. But then I figure out that .jar files are pre-compiled files and we couldn't modify them at all.

Actually I googled almost every related page to find the solution (for many hours), but it seems that there is no helpful link on web!

This is the link I found apparently useful. So I get the lucene 6.3.0 from github and followed the steps suggested by the writer.

After all nothing helped me in this way and I got plenty of errors in IntellijIdea! This is the first error:

Error:Cannot compile Groovy files: no Groovy library is defined for module 'Balog2'

Any help would be appreciated, thanks.

What are you using for dependency management? Your submodule likely does not have groovy as a dependency and therefore cannot locate the groovy compiler

https://mvnrepository.com/artifact/org.codehaus.groovy/groovy-all

go here, pick a version of groovy that jives with the the java runtime you're using and add it to whatever dependency management solution you're using

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM