Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

maven dependencies resolution problem

$
0
0

I have variable of type SlingHttpServletRequest

And I see error that method getParameterMap cannot be resolved but code compiles without any errors.

 

When I check declaration of SlingHttpServletRequest it is declared in this lib

.m2/repository/org/apache/sling/org.apache.sling.api/2.2.0/org.apache.sling.api-2.2.0-sources.jar!/org/apache/sling/api/SlingHttpServletRequest.java

and as it extends HttpServletRequest which is declared in

.m2/repository/org/apache/felix/javax.servlet/1.0.0/javax.servlet-1.0.0.jar!/javax/servlet/http/HttpServletRequest.class

 

In diffrent project I have similar dependecy declarations in pom.xml file but method getParameterMap is valid for Idea.

difrence is where Idea shows declaration of HttpServletRequest

.m2/repository/javax/servlet/servlet-api/2.4/servlet-api-2.4-sources.jar!/javax/servlet/http/HttpServletRequest.java

 

I try to align dependecies configuration in pom with no success.


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>