Why can my IntelliJ Project no longer see my maven dependencies ?

My simple maven base dproject was working fine a few days ago, but tried to rebuild the code today with IntelliJ and evey file that references a dependencie in the pom.xml fails to compile because it cannot find the classes. If I go to Module Settings the depndencies tab has all the maven dependencies in red because they cannot be found, however if just go to the command line and do mvn install it works no problem so there is nothing wrong with my maven repository.

Ive tried sychronizing my pom and invalidating caches and neithe rhad any effect.

5 comments

Hi Paul,

Please check if there are any exception traces at idea.log (main menu | help | reveal log).

Could you provide a sample project which illustrates the problem at your environment or any project goes?

Denis

0

Not really because this project was working, there is nothing special about it is just a maven based project. Ive checked the log and then are error, if i delete the module depndencies is there a way to get it to readd them

0

What kind of errors are ther? Could you provide the log file?

It's expected that the project is correctly setup (all module dependencies are set among other project entities) after maven refresh.

Denis

0

oops sorry meant to say there are no errors, her eis the log

2013-06-24 13:32:09,847 [7082953]   INFO -                  TestNG Runner - Create TestNG Template Configuration
2013-06-24 13:32:09,848 [7082954]   INFO -                  TestNG Runner - Create TestNG Template Configuration
2013-06-24 13:32:09,856 [7082962]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $PROJECT_CONFIG_DIR$/dynamic.xml file is null
2013-06-24 13:32:09,864 [7082970]   INFO - ellij.project.impl.ProjectImpl - 138 project components initialized in 49 ms
2013-06-24 13:32:09,867 [7082973]   INFO - le.impl.ModuleManagerComponent - 1 module(s) loaded in 3 ms
2013-06-24 13:32:09,945 [7083051]   INFO - .roots.impl.DirectoryIndexImpl - Directory index initialized in 7 ms, indexed 2024 directories
2013-06-24 13:32:09,945 [7083051]   INFO - pl.PushedFilePropertiesUpdater - File properties pushed in 0 ms
2013-06-24 13:32:09,959 [7083065]   INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 8 ms
2013-06-24 13:32:09,959 [7083065]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 1 files to update
2013-06-24 13:32:09,971 [7083077]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update done in 12 ms
2013-06-24 13:32:10,260 [7083366]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $PROJECT_CONFIG_DIR$/codeStyleSettings.xml file is null
2013-06-24 13:32:10,261 [7083367]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $PROJECT_CONFIG_DIR$/projectCodeStyle.xml file is null
2013-06-24 13:32:10,265 [7083371]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $PROJECT_CONFIG_DIR$/fileColors.xml file is null
2013-06-24 13:32:10,295 [7083401]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $PROJECT_CONFIG_DIR$/IntelliLang.xml file is null
2013-06-24 13:32:10,333 [7083439]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $PROJECT_CONFIG_DIR$/gant_config.xml file is null
2013-06-24 13:32:10,341 [7083447]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $PROJECT_CONFIG_DIR$/gradle.xml file is null
2013-06-24 13:32:10,984 [7084090]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $PROJECT_CONFIG_DIR$/checker.xml file is null
2013-06-24 13:32:11,281 [7084387]   INFO - tor.impl.FileEditorManagerImpl - Project opening took 1469 ms
2013-06-24 13:32:11,953 [7085059]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $PROJECT_CONFIG_DIR$/ant.xml file is null
2013-06-24 13:32:13,458 [7086564]   INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED (BUILD PROCESS)
2013-06-24 13:32:13,675 [7086781]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: /C:/Apps/IntelliJ/lib/jps-server.jar;/C:/Apps/IntelliJ/lib/ecj-4.2.1.jar;/C:/Apps/IntelliJ/lib/protobuf-2.4.1.jar;/C:/Apps/IntelliJ/lib/idea_rt.jar;/C:/Apps/IntelliJ/lib/nanoxml-2.2.3.jar;C:/Apps/IntelliJ/lib/picocontainer.jar;/C:/Apps/IntelliJ/lib/openapi.jar;C:/Apps/IntelliJ/lib/resources_en.jar;/C:/Apps/IntelliJ/lib/asm4-all.jar;/C:/Apps/IntelliJ/lib/idea.jar;C:/Apps/IntelliJ/lib/jna-utils.jar;C:/Apps/IntelliJ/lib/util.jar;/C:/Apps/IntelliJ/lib/optimizedFileManager.jar;/C:/Apps/IntelliJ/lib/netty-3.6.2.Final.jar;/C:/Apps/IntelliJ/lib/jgoodies-forms.jar;C:/Apps/IntelliJ/lib/jna.jar;C:/Apps/IntelliJ/lib/annotations.jar;C:/Apps/IntelliJ/lib/oromatcher.jar;/C:/Apps/IntelliJ/lib/forms_rt.jar;C:/Apps/IntelliJ/lib/log4j.jar;C:/Apps/IntelliJ/lib/jdom.jar;C:/Apps/IntelliJ/lib/trove4j.jar;C:/Program Files/Java/jdk1.7.0_17/lib/tools.jar;C:/Apps/IntelliJ/plugins/ant/lib/ant-jps-plugin.jar;C:/Apps/IntelliJ/plugins/devkit/lib/jps/devkit-jps-plugin.jar;C:/Apps/IntelliJ/plugins/uiDesigner/lib/jps/ui-designer-jps-plugin.jar;C:/Apps/IntelliJ/plugins/IntelliLang/lib/intellilang-jps-plugin.jar;C:/Apps/IntelliJ/plugins/Groovy/lib/groovy-jps-plugin.jar;C:/Apps/IntelliJ/plugins/eclipse/lib/eclipse-jps-plugin.jar;C:/Apps/IntelliJ/plugins/eclipse/lib/common-eclipse-util.jar;C:/Apps/IntelliJ/plugins/maven/lib/maven-jps-plugin.jar;C:/Apps/IntelliJ/plugins/maven/lib/maven3/plexus-utils-2.0.6.jar;C:/Apps/IntelliJ/plugins/android/lib/jps/android-jps-plugin.jar;C:/Apps/IntelliJ/plugins/android/lib/android-common.jar;C:/Apps/IntelliJ/plugins/android/lib/android-rt.jar;C:/Apps/IntelliJ/plugins/android/lib/sdklib.jar;C:/Apps/IntelliJ/plugins/android/lib/common.jar;C:/Apps/IntelliJ/plugins/android/lib/jarutils.jar;C:/Apps/IntelliJ/plugins/android/lib/androidprefs.jar;C:/Apps/IntelliJ/plugins/android/lib/layoutlib_api.jar;C:/Apps/IntelliJ/plugins/javaFX/lib/javaFX-jps-plugin.jar;C:/Apps/IntelliJ/plugins/javaFX/lib/common-javaFX-plugin.jar
2013-06-24 13:32:15,105 [7088211]   INFO - lij.compiler.impl.CompilerUtil -     COMPILATION FINISHED (BUILD PROCESS); Errors: 11; warnings: 2 took 1643 ms: 0 min 1sec

0

I doubt we can do anything without ability to reproduce that at local environment :(

The only advice so far is to try 'main menu | file | invalidate caches'.

Denis

0

Please sign in to leave a comment.