How to make the "Attach classes from repository" feature work?

I have tried and tried again but I couldn't make it work. I created a new project with a new module with a GWT facet and I wanted to add the gwt-user dependancy to it via the "Attach classes from repository" feature (Project structure->libraries->Attach classes from repository). No matter what I wrote in the "coordinates" box (I tried gwt, gwt-user, com.google.gwt, com.google.gwt:gwt-user, com.google.gwt:gwt-user:2.4.0 and various others) it would never find the library (found:0, showing:0). On the other hand, when I wrote hibernate (which I don't need) it found 163 matches :(. Maybe I configured something wrong. Thanks for your help.

4 comments

I've just got 'found:37' for 'gwt-user'. May be you forget to press 'Enter' after typing the name?

Also there is a simple way to add 'gwt-user.jar' to the dependencies. Open GWT Facet settings, it should show 'gwt-user.jar library not found'
message, and you can click 'Fix' to add gwt-user.jar from the GWT SDK.

--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Nope I didn't forget to press enter. I also tried with the magnifying glass several times without results. I already wrote that it can find hibernate dependancies but when I enter gwt-user again after I have searched for hibernate (and press enter :) ), the list is still filled with hibernate items. I have to add that maven projects work fine on the same machine (I mean dependancies are resolved and downloaded correctly). The point is not the gwt-user jar in itself because I have several other dependancies that cannot be resolved with the facet "patch". I think my problem relates to this issue:http://youtrack.jetbrains.net/issue/IDEA-58380 which was supposedly resolved. Is there any log I could check or any other configuration to set up?

0

Which version of IDEA do you use? Looks like IDEA 10.5 indeed has this problem but IDEA 11 builds work ok.

--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.