0

I'm making project in Maven. I added dependency to pom.xml, it downloaded dependency to maven repostitory

but I have getting following message:

Missing artifact org.springframework:spring-context:jar:5.0.0.M5

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0      http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
      <groupId>pl.tutorial</groupId>
     <artifactId>fiszki</artifactId>
<version>0.0.1-SNAPSHOT</version>

<dependencies>
    <dependency>           //here is showing mistake
        <groupId>org.springframework</groupId>
        <artifactId>spring-context</artifactId>
        <version>5.0.0.M5</version>
    </dependency>
</dependencies>

I checked and this dependency is downloaded in my Maven repository.

Abi
  • 724
  • 6
  • 22
karol512
  • 23
  • 8

1 Answers1

0

You can't add spring 5.0 dependencies, while in pom.xml maven schema location is pointing to 4.0.0.

Try to add Spring 4.0 dependencies. Any version you can use like :

<!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc -->
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-webmvc</artifactId>
    <version>4.3.8.RELEASE</version>
</dependency>
HMD
  • 2,202
  • 6
  • 24
  • 37