"Cannot resolve symbol" even though "mvn install" succeeds

I've a maven project which gets build just fine by Maven but IntelliJ compiler gives me error- "cannot resolve symbol" for almost every class. I've tried File->Invalidate Caches/Restart and also re-importing project. Nothing has helped so far.

Here is idea.log-

2014-12-05 14:21:06,065 [      0]   INFO -        #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2014-12-05 14:21:06,075 [     10]   INFO -        #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IC-139.225.3, 11 Nov 2014 00:00)
2014-12-05 14:21:06,075 [     10]   INFO -        #com.intellij.idea.Main - OS: Linux (3.16.0-4-amd64, amd64)
2014-12-05 14:21:06,075 [     10]   INFO -        #com.intellij.idea.Main - JRE: 1.8.0_25-b17 (Oracle Corporation)
2014-12-05 14:21:06,075 [     10]   INFO -        #com.intellij.idea.Main - JVM: 25.25-b02 (Java HotSpot(TM) 64-Bit Server VM)
2014-12-05 14:21:06,076 [     11]   INFO -        #com.intellij.idea.Main - JVM Args: -Xms128m -Xmx750m -XX:MaxPermSize=350m -XX:ReservedCodeCacheSize=225m -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Djsse.enableSNIExtension=false -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -Dawt.useSystemAAFontSettings=lcd -Djb.vmOptionsFile=bin/idea-IC-139.225.3/bin/idea64.vmoptions -XX:ErrorFile=/home/gaurav/java_error_in_IDEA_%p.log -Xbootclasspath/a:bin/idea-IC-139.225.3/bin/../lib/boot.jar -Didea.paths.selector=IdeaIC14 -Djb.restart.code=88
2014-12-05 14:21:06,098 [     33]   INFO -        #com.intellij.idea.Main - JNA library loaded (64-bit) in 22 ms
2014-12-05 14:21:06,197 [    132]   INFO - .intellij.idea.IdeaApplication - WM detected: Xfwm4
2014-12-05 14:21:06,676 [    611]   INFO - llij.ide.plugins.PluginManager - 30 plugins initialized in 364 ms
2014-12-05 14:21:06,677 [    612]   INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: Android Support (10.0.8.12), Ant Support (1.0), Bytecode Viewer (0.1), CVS Integration (11), Commander (1.0.0), Copyright (8.1), Coverage, Eclipse Integration (3.0), EditorConfig (1.0), Git Integration (8.1), GitHub, Gradle, Groovy (9.0), I18n for Java, IDEA CORE, IntelliLang (8.0), JUnit (1.0), Java Bytecode Decompiler (0.1), JavaFX (1.0), Maven Integration, Plugin DevKit (1.0), Properties Support, Subversion Integration (1.1), Task Management (1.0), Terminal (0.1), TestNG-J (8.0), UI Designer, XPathView + XSLT Support (4), XSLT-Debugger (1.4), hg4idea (10.0)
2014-12-05 14:21:07,017 [    952]   INFO - ellij.util.io.PagedFileStorage - lower=100; upper=200; buffer=10; max=739246080
2014-12-05 14:21:07,057 [    992]   INFO - api.vfs.impl.local.FileWatcher - Starting file watcher: /home/gaurav/bin/idea-IC-139.225.3/bin/fsnotifier64
2014-12-05 14:21:07,063 [    998]   INFO - api.vfs.impl.local.FileWatcher - Native file watcher is operational.
2014-12-05 14:21:07,302 [   1237]   INFO - lij.diagnostic.DebugLogManager - Set DEBUG for the following categories: []
2014-12-05 14:21:07,767 [   1702]   INFO -                  TestNG Runner - Create TestNG Template Configuration
2014-12-05 14:21:07,778 [   1713]   INFO -                  TestNG Runner - Create TestNG Template Configuration
2014-12-05 14:21:07,838 [   1773]   INFO - ellij.project.impl.ProjectImpl - 20 project components initialized in 225 ms
2014-12-05 14:21:07,838 [   1773]   INFO - le.impl.ModuleManagerComponent - 0 module(s) loaded in 0 ms
2014-12-05 14:21:08,009 [   1944]   INFO - pl.stores.ApplicationStoreImpl - 82 application components initialized in 1314 ms
2014-12-05 14:21:08,010 [   1945]   INFO - .intellij.idea.IdeaApplication - App initialization took 2282 ms
2014-12-05 14:21:08,583 [   2518]   INFO -                  TestNG Runner - Create TestNG Template Configuration
2014-12-05 14:21:08,609 [   2544]   INFO -                  TestNG Runner - Create TestNG Template Configuration
2014-12-05 14:21:08,989 [   2924]   INFO - ellij.project.impl.ProjectImpl - 145 project components initialized in 677 ms
2014-12-05 14:21:09,209 [   3144]   INFO - le.impl.ModuleManagerComponent - 20 module(s) loaded in 220 ms
2014-12-05 14:21:09,852 [   3787]   INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342
2014-12-05 14:21:11,066 [   5001]   INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 1361 ms
2014-12-05 14:21:11,067 [   5002]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 1 files to update
2014-12-05 14:21:11,143 [   5078]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update done in 76 ms
2014-12-05 14:21:11,528 [   5463]   INFO - CompilerWorkspaceConfiguration - Available processors: 8
2014-12-05 14:21:11,770 [   5705]   INFO - ution.rmi.RemoteProcessSupport - <redacted>
2014-12-05 14:21:11,963 [   5898]   INFO - ution.rmi.RemoteProcessSupport - Port/ID: 17798/Maven3ServerImpla3a3197e
2014-12-05 14:21:13,130 [   7065]   INFO - tor.impl.FileEditorManagerImpl - Project opening took 4845 ms
2014-12-05 14:22:10,425 [  64360]   INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED (BUILD PROCESS)
2014-12-05 14:22:10,826 [  64761]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: /home/gaurav/bin/idea-IC-139.225.3/lib/jps-launcher.jar:/usr/lib/jvm/java-8-oracle/lib/tools.jar:/home/gaurav/bin/idea-IC-139.225.3/lib/optimizedFileManager.jar:/home/gaurav/bin/idea-IC-139.225.3/lib/ecj-4.4.jar
2014-12-05 14:22:10,893 [  64828]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: 14:22:10,878 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.groovy] at [jar:file:/home/gaurav/bin/idea-IC-139.225.3/plugins/gradle/lib/gradle.jar!/logback.groovy]
2014-12-05 14:22:10,893 [  64828]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: 14:22:10,879 |-ERROR in ch.qos.logback.classic.LoggerContext[default] - Groovy classes are not available on the class path. ABORTING INITIALIZATION.
2014-12-05 14:22:13,930 [  67865]   INFO - lij.compiler.impl.CompilerUtil - 14 new output directories were created, refreshing their parents together to avoid too many rootsChange events
2014-12-05 14:22:14,046 [  67981]   INFO - lij.compiler.impl.CompilerUtil -  COMPILATION FINISHED (BUILD PROCESS); Errors: 45; warnings: 0 took 3508 ms: 0 min 3sec
2014-12-05 14:22:14,089 [  68024]   INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 22 ms

Please sign in to leave a comment.