janvladimirmostert
08/15/2016, 2:45 PMCookie cookie = new Cookie(key, value);
cookie.setHttpOnly(true);
When I do mvn clean install
, it compiles perfectly (both Linux and OSX), no errors, on OSX if I click Build -> Make Project, it compiles perfectly, but in Linux if I click Build -> Make Project, I get the following error:
Error:(115, 11) java: cannot find symbol
symbol: method setHttpOnly(boolean)
location: variable cookie of type javax.servlet.http.Cookie
In my pom.xml I'm specifying the servlet version as 3.1:
<!-- Servlet -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<scope>provided</scope>
</dependency>
Any idea why intelliJ would do this on Linux?