First, add the right dependency to your project:
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>8.0</version>
<scope>provided</scope>
</dependency>
If you still haven't downloaded GlassFish 5 to your development environment, this is the right time to do it.