Configure Project Dependencies
Watch a demonstration of the current section
VIDEO
Double Click the pom.xml file
Select the pom.xml tab from the bottom of the pom editor
Add the following three dependencies under the junit
dependency. These dependencies add the Servlet and Red5 dependencies which are required for our project to build properly.
<!-- https://mvnrepository.com/artifact/org.apache.tomcat/tomcat-servlet-api -->
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-servlet-api</artifactId>
<version>8.5.11</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.red5</groupId>
<artifactId>red5-parent</artifactId>
<version>1.0.10-M9</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.red5</groupId>
<artifactId>tomcatplugin</artifactId>
<version>2.0.9</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.red5/red5-server -->
<dependency>
<groupId>org.red5</groupId>
<artifactId>red5-server</artifactId>
<version>1.0.10-M9</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
Add the following properties below the build tag like so:
<build>
<finalName>example</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
</plugin>
</plugins>
</build>
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
</properties>
From the main menu of the Eclipse IDE, select File > Save
Right-Click the example project from the Project Explorer view
Select Maven > Update Project…
Verify that your build errors are no longer present