1

I want to build a project which has some external libraries. I included pom.xml file inside intellij and it downloaded all of required dependencies files from maven and put them as external libraries, but my project doesn't recognize them and gives compilation error. IDE screen attached below.

this is one of the compilation errors that I get:

Error:(29, 33) java: package com.google.common.collect does not exist

here is the my external libraries which I think are added correctly. enter image description here

I don't have maven installed but I think IntelliJ handles it by it self.

Error screen shot

Rathma
  • 1,196
  • 2
  • 33
  • 65
  • 1
    It might be helpful to include the compilation error. Also, it's generally frowned upon to post screenshots of code. Better to include the code with the question as a [minimal, complete and verifiable example](http://stackoverflow.com/help/mcve). – Lex Scarisbrick Aug 08 '16 at 15:03
  • I'm not java user but : do you have com.google.common.collect or com.google.common in your external library list ? As you are using it, i suppose it should be found there. – technico Aug 08 '16 at 15:06
  • 1
    Can you share the pom.xml file also? – SamB Aug 08 '16 at 15:17
  • @SameeraB here is the `pom.xml` file: https://github.com/guoguibing/librec/blob/master/librec/pom.xml – Rathma Aug 08 '16 at 19:50
  • @technico I added screen shot of my external libraries as described by here http://stackoverflow.com/questions/7065402/how-to-add-external-library-in-intellij-idea – Rathma Aug 08 '16 at 19:51
  • @LexScarisbrick I added the compilation error(one of them) – Rathma Aug 08 '16 at 19:51
  • Did you already try to force a resync with the `Reimport all Maven projects` (blue _refresh_ icon) button from the Maven tool-window? – Morfic Aug 09 '16 at 12:41

1 Answers1

1

Have you tried running mvn clean compile either using Intellij or command line ?

Numerinico
  • 55
  • 5