/

Configure Project Dependencies


Watch a demonstration of the current section
  1. Double Click the pom.xml file
  2. Select the pom.xml tab from the bottom of the pom editor Red5 Pro Application
  3. 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>
  1. 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>
  1. From the main menu of the Eclipse IDE, select File > Save
  2. Right-Click the example project from the Project Explorer view
  3. Select Maven > Update Project...
  4. Verify that your build errors are no longer present