Maven headache

I'm using intelliJ 13.1.4. And I'm having an anoying problem with maven.

In the config panel, it say the maven central repo is indexed, but, when searching for an artifact or class, only the local repository shows up.
I updated again and again, cleaned maven config to do it all again. No dice.

Using maven 3.2.3
I lost an afternoon trying to get it to work, rather than actual coding. :_|

If anyone have an idea.

4 comments
Comment actions Permalink

So ?

Nobody have any clues about what's going on ?

0
Comment actions Permalink

This works for me, although I'm using 14EAP.

After updating, is a date filled in "Updated" column (see attached screenshot)? In my case, the update is finishing in about 10 minutes. After that, IDEA indexes the repository several minutes and only after that I'm able to search artifacts from this repository.

One more thing: you can check if there are errors while indexing the repo.
<HOME_FOLDER>/.IntellijIdea<VERSION>/system/Maven/Indicies/

For example, on my linux machine, the folder is:
/home/ivayloivanov/.IntelliJIdea14/system/Maven/Indices/

You'll have to find the index (open one by one index.properties files), find the one containing http\://repo.maven.apache.org/maven2 and see if there are errors.
Example: I have a failed index with message:
failureMessage=java.lang.RuntimeException\: java.io.FileNotFoundException\: Resource nexus-maven-repository-index.properties does not exist







Attachment(s):
maven_repo.png
0
Comment actions Permalink

Hi,

Updated date shows ok.

I'll have a closer look for errors when i get the PC, but, no message or anything shows

0
Comment actions Permalink

Hi Eowyn,

which artifact are you searching? I'll try to see if it is being found in my IDE.
Btw artifacts appear with a noticeable lag. For example, if I search for jfreechart, it appears after several seconds

Ivaylo

0

Please sign in to leave a comment.