java - Maven doesn't find dependency -


i added dependency in maven servlet seen here, here , here

maven doesn't find :

dependency javax.servlet:javax.servlet-api:3.0.1 not found

<dependency>     <groupid>javax.servlet</groupid>     <artifactid>javax.servlet-api</artifactid>     <version>3.1.0</version>     <scope>provided</scope> </dependency> 

i tried add this, doesn't work :

<repository>     <id>maven2</id>     <url>https://mvnrepository.com</url> </repository> 

or this:

<repository>     <id>maven2</id>     <url>http://repo1.maven.org/maven2/javax/servlet/javax.servlet-api/3.0.1/</url> </repository> 

first of need verify if have internet connectivity , can try purge , resolve dependencies in local maven repository there corrupted package, can try following command accomplish this:

mvn dependency:purge-local-repository 

take purging local repository dependencies more information.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo