score:65
So I get you are using Eclipse with the M2E plugin. Try to update your Maven configuration : In the Project Explorer, right-click on the project, Maven -> Update project.
If the problem still remains, try to clean your project: right-click on your pom.xml, Run as -> Maven build (the second one). Enter "clean package" in the Goals fields. Check the Skip Tests box. Click on the Run button.
Edit: For your new problem, you need to add Spring MVC to your pom.xml. Add something like the following:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>4.0.0.RELEASE</version>
</dependency>
Maybe you have to change the version to match the version of your Spring framework. Take a look here:
http://mvnrepository.com/artifact/org.springframework/spring-webmvc
score:0
score:2
I have solved it using "force update", pressing Alt+F5 as it is mentioned in the following link.
score:4
I finally found my maven repo mirror is down. I changed to another one, problem solved.
score:4
I'm a little late to the party but I'll give my two cents. I just resolved this issue after spending longer than I'd like on it. The above solutions didn't work for me and here's why:
there was a network issue when maven was downloading the required repositories so I actually didn't have the right jars. adding a -U to a maven clean install went and got them for me. So if the above solutions aren't working try this:
- Right click on your project -> Choose Run as -> 5 Maven build...
- In the Goals field type "clean install -U" and select Run
- After that completes right click on your project again and choose Maven -> Update Project and click ok.
Hope it works for you.
score:4
Although it's too late , But here is my experience .
Whenever you get your maven project from a source controller or just copying your project from one machine to another , you need to update the dependencies .
For this Right-click on Project on project explorer -> Maven -> Update Project.
Please consider checking the "Force update of snapshot/releases"
checkbox.
If you have not your dependencies in m2/repository then you need internet connection to get from the remote maven repository.
In case you have get from the source controller and you have not any unit test , It's probably your test folder does not include in the source controller in the first place , so you don't have those in the new repository.so you need to create those folders manually.
I have had both these cases .
score:4
Today I had this same problem with another jar. I tried multiple things people said on Stackoverflow, but nothing worked. Eventually I did this:
- Close eclipse and any project-app that is running.
- Delete the .m2 folder (Users --> [your_username] --> .m2). It's an invisible folder, make sure you are able to view invisible folders.
- Restarted Eclipse (I guess it works in other IDE too) and updated my project.
Now it works again for me. Perhaps this solves the problem for someone else too.
score:16
I got the same problem and this is how i solved. :
- Right click your Spring MVC project, choose Run As -> Maven install. Observe the output console to see the installation progress. After the installation is finished, you can continue to the next step.
- Right click your Spring MVC project, choose Maven -> Update Project.
- Choose your project and click OK. Wait until update process is finished.
- The error still yet, then do Project->Clean and then be sure you have selected our project directory and then do the follow Project->Build.
Source: stackoverflow.com
Related Query
- The container 'Maven Dependencies' references non existing library - STS
- The container Android Dependencies references non existing library /home/user/workspace/appcompat_v7/bin/appcompat_v7.jar
- The container 'Android Dependencies' references non existing library 'facebook-android-sdk\facebook\bin\com_facebook_android.jar'
- Eclipse Gradle project shows dependency errors : the container 'project and external dependencies' references non existing library
- The container ivy.xml references non existing library
- Maven Dependencies references non existing library
- The container 'Web App Libraries' references non existing library 'C:\work\WebRoot\WEB-INF\lib\google-collections-1.0-rc4.jar'
- The container 'Android Dependencies' references non existing library appcompat_v7.jar'
- The container 'Android Dependencies' references non existing library '/Users/...../platforms/android/CordovaLib/bin/mainactivity-cordovalib.jar'
- The container >...< references non existing library in eclipse
- the container references non existing library
- Android Dependencies references non existing library google-play-services_lib.jar
- The container 'Android Dependencies' references non existing library?
- Eclipse does not recognize existing resolved Maven dependencies
- Unit test using the Reflections google library fails only when executed by Maven
- M2Eclipse: Resolving Maven dependencies from the Eclipse workspace
- What is the difference between Maven Dependencies and Referenced Libraries in Eclipse?
- Binary library dependencies in Maven / Eclipse
- When and how does m2e use the Maven test scope to include test dependencies in Eclipse Run Configurations?
- Eclipse - org.junit cannot be resolved, even though it's in the Maven dependencies
- Why and when is Eclipse putting Maven dependencies in the CLASSPATH and not in the MODULEPATH?
- What are the minimum maven dependencies are required to run Junit 5 in eclipse?
- What is the best way Mavenizing Ivy managed dependencies for an existing project
- How to resolve the dependencies in the java project which is imported through maven in eclipse?
- More than one scala library found in the build path when fresh creating maven project in eclipse
- how to add a library to the dependencies gradle of LIBGDX project
- Automating the Import of Existing Maven Project Into Eclipse
- Add maven dependencies of OSGi bundles to the Eclipse target platform
- Why does eclipse not resolve the maven plugin dependencies after it being added to the dependencies section?
- Prevent the download of Gradle and Maven dependencies
More Query from same tag
- CUFFT_ALLOC_FAILED Error in nsight eclipse
- RenderScript BCC Compiler failed while running BasicRenderScriptSample
- eclipse plugin special highlighting if test method is annotated with junit @Ignore
- Mystery exceptions during Tomcat startup from Eclipse
- JBoss error: org.jboss.as.controller.management-operation with mysql-connector-java-5.1.39-bin.jar
- How do I develop a maven plugin using Groovy in Eclipse
- Eclipse code quality check - find ocurrences of comparing Integers using ==?
- Eclipse doesn't execute the right branch
- Eclipse & Java: make Eclipse also compile the code when run
- Android app force close when executed
- Finish button not working while creating android project?
- Google maps API V2 blank screen after installed on real device
- Reconnecting a Mercurial controlled project in Eclipse
- Cannot run android aplication - appcompat_v7 not found -
- How to run method in object - beginner
- Exception in thread "main" javax.persistence.PersistenceException: No Persistence provider for EntityManager named databaseTest
- can't find android device in eclipse?
- Eclipse java project where directory structure != package structure
- How to find which classes implement a particular interface in Eclipse?
- Eclipse SWT Group Empty
- How to stop mediaplayer when home button is pressed
- The import javax.persistence cannot be resolved after deleting Server Runtime Environment
- Problem in executing application
- pydev remote debug path
- XMPP Java client - Not connected to server
- Java test file works when I run as Junit Test, not working as Java application
- m2e connector buildhelper not compatible with Eclipse Juno SR1 m2e 1.2
- Android app and Scala. This fragment should provide a default constructor
- What's the "standard" Java Exception type to use for user mistakes?
- Color Themes For Eclipse Python Development