Reputation: 966
I am following this tutorial: Java Integration with Amazon Cognito Developer Tutorial. At the part with heading Sign In Implementation. The code found under that heading uses the class SpringSecurityUser. That actually belongs to package org.opennms.web.springframework.security.SpringSecurityUser, but maven repository doesn't have that, so I found another package that seems closest to the one in that code in the tutorial.
I am using Eclipse in macOS Mojave. I got this dependency from maven repository
<!-- https://mvnrepository.com/artifact/org.springframework.security/org.springframework.security.web -->
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>org.springframework.security.web</artifactId>
<version>3.1.3.RELEASE</version>
</dependency>
Here is the error message at the dependency opening tag above:
Missing artifact org.springframework.security:org.springframework.security.web:jar: 3.1.3.RELEASE
Here is my import statement:
import org.springframework.security.web;
This is the error message I get:
The import org.springframework cannot be resolved
I don't know what to check to resolve this error.
Any help will be appreciated.
Upvotes: 0
Views: 200
Reputation: 90527
SpringSecurityUser
is from OpenMNS
which can be found from :
<dependency>
<groupId>org.opennms.features</groupId>
<artifactId>org.opennms.features.springframework-security</artifactId>
<version>24.1.0</version>
</dependency>
But it is not available from the central maven repository. You have to add OpenMNS
maven repository in pom.xml
in order to download it :
<repositories>
<repository>
<id>opennms-repo</id>
<url>http://repo.opennms.org/maven2/</url>
</repository>
</repositories>
Upvotes: 1