So I recently installed a Red5 Docker image/container on my computer and trying to get the red5-hls-plugin built/compiled to add it to the plugins
I followed the instructions as instructed on https://github.com/Red5/red5-hls-plugin#tiagos-step-by-step-guide but all I get when running mvn -Dmaven.test.skip=true
in the red5-hls-plugin/plugin/
directory is
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: org:jaudiotagger
Reason: Error getting POM for 'org:jaudiotagger' from the repository: Unable to read local copy of metadata: Cannot read metadata from '/root/.m2/repository/org/jaudiotagger/2.0.4-SNAPSHOT/maven-metadata-sonatype-snapshots.xml': end tag name </body> must match start tag name <hr> from line 5 (position: TEXT seen ...</center>\r\n</body>... @6:8)
org:jaudiotagger:pom:2.0.4-SNAPSHOT
for project org:jaudiotagger
Additional Information
I don't know if your suppose to build the hls plugin to the version you have installed which I have 1.0.4 but when I edit the pom.xml file and change <red5-server.version>1.0.2-SNAPSHOT</red5-server.version>
to <red5-server.version>1.0.4-RELEASE</red5-server.version>
and add the following repositories:
<repository>
<id>sonatype-releases</id>
<url>https://oss.sonatype.org/content/repositories/releases</url>
</repository>
<repository>
<id>sonatype-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
I get the following error now when trying to compile/build:
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 26 source files to /src/red5-hls-plugin/plugin/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /src/red5-hls-plugin/plugin/src/main/java/org/red5/service/httpstream/model/VideoFrame.java:[25,35] error: package org.red5.server.stream.codec does not exist
[ERROR] /src/red5-hls-plugin/plugin/src/main/java/org/red5/service/httpstream/model/VideoFrame.java:[58,34] error: package VideoCodec does not exist
[ERROR] /src/red5-hls-plugin/plugin/src/main/java/org/red5/service/httpstream/model/VideoFrame.java:[60,41] error: package VideoCodec does not exist
[INFO] 3 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
Just to answer this old question to preserve it in the Stack Overflow nature of things. I ended up fixing my build problem by pretty much using certain versions of build tools at that time that were older then the current versions; more specifically using gcc 3.6 or lower vs the 3.7+ that came with the linux distro at the time.
The instructions I received at the time of help was from a user in the red5 board, he told me how he got his to compile which I will share below that worked for me: