The default scope is compile , meaning that the dependency is not present at runtime. I have edited my comment and added the scope. By using our site, you acknowledge that you have read and understand our Cookie Policy , Privacy Policy , and our Terms of Service. Active 3 months ago. Post as a guest Name.


Uploader: Tulrajas
Date Added: 1 April 2006
File Size: 33.49 Mb
Operating Systems: Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X
Downloads: 17435
Price: Free* [*Free Regsitration Required]

Unicorn Meta Zoo 9: Downvoted because this is not an answer to the question. Since they are replaced, dependencies with a scope of import do not actually gsno-1.7.1.jar in limiting the transitivity of a dependency.


I am thinking that most probably it is a classpath problem, although Maven should teoretically resolve that see this: Gson-11.7.1.jar Required, but never shown. I am getting the following error – I have added the GSon in my dependency – Can someone point out what I am doing wrong?

Active 3 months ago.

Download gson-1.7.1-sources.jar : gson « g « Jar File Download

Stack Overflow works best with JavaScript enabled. Did you try to manually add the Gson library to the classpath of the project? For this, you use the provided scope. Try it with a new version could work too.


Maven Repository: » gson »

How do we handle problem users? Eclipse is not giving me any error Improving the question-asking experience. This scope is only available on the compilation and test classpath, and is not transitive.

Asked 7 years, 2 months ago. Gspn-1.7.1.jar Overflow for Teams is a private, secure spot for you and your coworkers to find and share information.

So that you get an idea whether it is a problem concerning Maven or not. Sign up using Facebook. Furthermore, those dependencies are propagated to dependent projects. I can do “import com.

By using our site, you acknowledge that you have read and our Cookie PolicyPrivacy Policyand our Terms of Service. The artifact is always available and is not looked up in a repository.

Fox Fox 4, 13 13 gold badges 31 31 silver badges 58 58 bronze badges. Raul Rene Raul Rene 7, 9 9 gold badges 43 43 silver badges 68 68 bronze badges. Sign up using Email and Password.



Post as a guest Name. I have edited my comment and added the scope. It is in the runtime and test classpaths, but not the compile classpath. Compile dependencies are available in all classpaths of a project.

Compile is the default and should work in other people’s cases, as gson isn’t available from a JRE, instead it needs to be downloaded by maven.


The default scope is compilemeaning that the dependency is not present at runtime. Sign up or log in Sign up using Google. Hope this resolves your issue. More about scopes in maven dependencies on Apache’s Introduction to Maven Dependencies.