powered by Jive Software

Pàdé for Openfire 0.9.13 - mvn clean package fails

I am running OF 4.5.2.

These are the steps I have followed:

  1. git clone https://github.com/igniterealtime/openfire-pade-plugin.git

  2. cd openfire-pade-plugin

  3. vi pom.xlm. The updated file now looks like this:

    UTF-8 4.2.0 1.1-20200124.173127-125 1.1-20200529.210421-162 1.1-20190806.132856-49 1.1-20190509.130302-15 https://my.server.net:7443/pade/index.html
  4. mvn clean package

The command fails wi the following errors:

Downloading: http://igniterealtime.org/repo/org/igniterealtime/openfire/plugins/openfire-plugin-assembly-descriptor/4.2.0/openfire-plugin-assembly-descriptor-4.2.0.pom
Downloaded: http://igniterealtime.org/repo/org/igniterealtime/openfire/plugins/openfire-plugin-assembly-descriptor/4.2.0/openfire-plugin-assembly-descriptor-4.2.0.pom (784 B at 1.0 KB/sec)
Downloading: http://igniterealtime.org/repo/org/igniterealtime/openfire/plugins/4.2.0/plugins-4.2.0.pom
Downloaded: http://igniterealtime.org/repo/org/igniterealtime/openfire/plugins/4.2.0/plugins-4.2.0.pom (14 KB at 19.6 KB/sec)
Downloading: http://igniterealtime.org/repo/org/igniterealtime/openfire/plugins/openfire-plugin-assembly-descriptor/4.2.0/openfire-plugin-assembly-descriptor-4.2.0.jar
Downloaded: http://igniterealtime.org/repo/org/igniterealtime/openfire/plugins/openfire-plugin-assembly-descriptor/4.2.0/openfire-plugin-assembly-descriptor-4.2.0.jar (3 KB at 3.4 KB/sec)
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 16 source files to /download/pade/0.9.13/openfire-pade-plugin/ofmeet/target/classes
[INFO] /download/pade/0.9.13/openfire-pade-plugin/ofmeet/src/java/org/jivesoftware/openfire/plugin/ofmeet/OfMeetPlugin.java: /download/pade/0.9.13/openfire-pade-plugin/ofmeet/src/java/org/jivesoftware/openfire/plugin/ofmeet/OfMeetPlugin.java uses or overrides a deprecated API.
[INFO] /download/pade/0.9.13/openfire-pade-plugin/ofmeet/src/java/org/jivesoftware/openfire/plugin/ofmeet/OfMeetPlugin.java: Recompile with -Xlint:deprecation for details.
[INFO] /download/pade/0.9.13/openfire-pade-plugin/ofmeet/src/java/org/jivesoftware/openfire/plugin/ofmeet/MeetingPlanner.java: Some input files use unchecked or unsafe operations.
[INFO] /download/pade/0.9.13/openfire-pade-plugin/ofmeet/src/java/org/jivesoftware/openfire/plugin/ofmeet/MeetingPlanner.java: Recompile with -Xlint:unchecked for details.
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /download/pade/0.9.13/openfire-pade-plugin/ofmeet/src/java/org/jivesoftware/openfire/plugin/ofmeet/LobbyMuc.java:[53,57] addServerFeaturesProvider(org.jivesoftware.openfire.disco.ServerFeaturesProvider) has private access in org.jivesoftware.openfire.disco.IQDiscoInfoHandler
[ERROR] /download/pade/0.9.13/openfire-pade-plugin/ofmeet/src/java/org/jivesoftware/openfire/plugin/ofmeet/LobbyMuc.java:[54,57] cannot find symbol
symbol: method addServerIdentitiesProvider(org.jivesoftware.openfire.disco.ServerIdentitiesProvider)
location: class org.jivesoftware.openfire.disco.IQDiscoInfoHandler
[ERROR] /download/pade/0.9.13/openfire-pade-plugin/ofmeet/src/java/org/jivesoftware/openfire/plugin/ofmeet/LobbyMuc.java:[61,57] cannot find symbol
symbol: method removeServerIdentitiesProvider(org.jivesoftware.openfire.disco.ServerIdentitiesProvider)
location: class org.jivesoftware.openfire.disco.IQDiscoInfoHandler
[INFO] 3 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] parent … SUCCESS [0.059s]
[INFO] Pade Configuration … SUCCESS [1:45.551s]
[INFO] Pade VideoBridge Component … SUCCESS [1:54.831s]
[INFO] Pade Web Components … SUCCESS [1.634s]
[INFO] Pade VideoBridge Plugin … FAILURE [19.846s]
[INFO] Pade Focus Component … SKIPPED
[INFO] Pade Gateway to SIP … SKIPPED
[INFO] Pade Server … SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4:02.597s
[INFO] Finished at: Sun Jul 19 22:34:01 EDT 2020
[INFO] Final Memory: 41M/310M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project ofmeet: Compilation failure: Compilation failure:
[ERROR] /download/pade/0.9.13/openfire-pade-plugin/ofmeet/src/java/org/jivesoftware/openfire/plugin/ofmeet/LobbyMuc.java:[53,57] addServerFeaturesProvider(org.jivesoftware.openfire.disco.ServerFeaturesProvider) has private access in org.jivesoftware.openfire.disco.IQDiscoInfoHandler
[ERROR] /download/pade/0.9.13/openfire-pade-plugin/ofmeet/src/java/org/jivesoftware/openfire/plugin/ofmeet/LobbyMuc.java:[54,57] cannot find symbol
[ERROR] symbol: method addServerIdentitiesProvider(org.jivesoftware.openfire.disco.ServerIdentitiesProvider)
[ERROR] location: class org.jivesoftware.openfire.disco.IQDiscoInfoHandler
[ERROR] /download/pade/0.9.13/openfire-pade-plugin/ofmeet/src/java/org/jivesoftware/openfire/plugin/ofmeet/LobbyMuc.java:[61,57] cannot find symbol
[ERROR] symbol: method removeServerIdentitiesProvider(org.jivesoftware.openfire.disco.ServerIdentitiesProvider)
[ERROR] location: class org.jivesoftware.openfire.disco.IQDiscoInfoHandler
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :ofmeet

I have followed the exact same steps for version 0.9.9 to 0.9.12 without any problems.

Any suggestions?

Renato

May be you tried while the source code was still work-in-progress

Pull the current head and try again

Dele

Thanks for the reply. I just deleted the openfire-pade-plugin folder and the /root/.m2 folder as well.

Issued again the

git clone https://github.com/igniterealtime/openfire-pade-plugin.git

command, but I am still getting the same error message:

[INFO] /download/pade/0.9.13/openfire-pade-plugin/ofmeet/src/java/org/jivesoftware/openfire/plugin/ofmeet/MeetingPlanner.java: Some input files use unchecked or unsafe operations.
[INFO] /download/pade/0.9.13/openfire-pade-plugin/ofmeet/src/java/org/jivesoftware/openfire/plugin/ofmeet/MeetingPlanner.java: Recompile with -Xlint:unchecked for details.
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /download/pade/0.9.13/openfire-pade-plugin/ofmeet/src/java/org/jivesoftware/openfire/plugin/ofmeet/LobbyMuc.java:[53,57] addServerFeaturesProvider(org.jivesoftware.openfire.disco.ServerFeaturesProvider) has private access in org.jivesoftware.openfire.disco.IQDiscoInfoHandler
[ERROR] /download/pade/0.9.13/openfire-pade-plugin/ofmeet/src/java/org/jivesoftware/openfire/plugin/ofmeet/LobbyMuc.java:[54,57] cannot find symbol
  symbol:   method addServerIdentitiesProvider(org.jivesoftware.openfire.disco.ServerIdentitiesProvider)
  location: class org.jivesoftware.openfire.disco.IQDiscoInfoHandler
[ERROR] /download/pade/0.9.13/openfire-pade-plugin/ofmeet/src/java/org/jivesoftware/openfire/plugin/ofmeet/LobbyMuc.java:[61,57] cannot find symbol
  symbol:   method removeServerIdentitiesProvider(org.jivesoftware.openfire.disco.ServerIdentitiesProvider)
  location: class org.jivesoftware.openfire.disco.IQDiscoInfoHandler
[INFO] 3 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] parent ............................................ SUCCESS [2.696s]
[INFO] Pade Configuration ................................ SUCCESS [1:59.712s]
[INFO] Pade VideoBridge Component ........................ SUCCESS [1:59.074s]
[INFO] Pade Web Components ............................... SUCCESS [1.510s]
[INFO] Pade VideoBridge Plugin ........................... FAILURE [21.823s]
[INFO] Pade Focus Component .............................. SKIPPED
[INFO] Pade Gateway to SIP ............................... SKIPPED
[INFO] Pade Server ....................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5:14.649s
[INFO] Finished at: Mon Jul 20 12:23:05 EDT 2020
[INFO] Final Memory: 41M/200M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project ofmeet: Compilation failure: Compilation failure:
[ERROR] /download/pade/0.9.13/openfire-pade-plugin/ofmeet/src/java/org/jivesoftware/openfire/plugin/ofmeet/LobbyMuc.java:[53,57] addServerFeaturesProvider(org.jivesoftware.openfire.disco.ServerFeaturesProvider) has private access in org.jivesoftware.openfire.disco.IQDiscoInfoHandler
[ERROR] /download/pade/0.9.13/openfire-pade-plugin/ofmeet/src/java/org/jivesoftware/openfire/plugin/ofmeet/LobbyMuc.java:[54,57] cannot find symbol
[ERROR] symbol:   method addServerIdentitiesProvider(org.jivesoftware.openfire.disco.ServerIdentitiesProvider)
[ERROR] location: class org.jivesoftware.openfire.disco.IQDiscoInfoHandler
[ERROR] /download/pade/0.9.13/openfire-pade-plugin/ofmeet/src/java/org/jivesoftware/openfire/plugin/ofmeet/LobbyMuc.java:[61,57] cannot find symbol
[ERROR] symbol:   method removeServerIdentitiesProvider(org.jivesoftware.openfire.disco.ServerIdentitiesProvider)
[ERROR] location: class org.jivesoftware.openfire.disco.IQDiscoInfoHandler
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :ofmeet

I am running this on a Centos 7 server.

Renato

Your errors suggest an old version of openfire is being used for compilation. Let me delete everything as well and try again in case I have a hidden dependency on my dev box

Same result for me with fresh folder and pull. I noticed that travis failed too, but for different reasons

If you are not changing anything, just use the built jar files at https://github.com/igniterealtime/openfire-pade-plugin/releases

Dele

Out of curiosity, what should the value for

<openfire.version>4.2.0</openfire.version>

in the pom.xml be set at?

If i set it at 4.5.2 (which is the version of OF I am running), I get the following error message:

[root@web openfire-pade-plugin]# mvn clean package
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.igniterealtime.openfire.ofmeet:ofgasi:jar:0.9.13-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.jitsi:jigasi:jar -> version (?) vs ${jigasi.version} @ line 119, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] parent
[INFO] Pade Configuration
[INFO] Pade VideoBridge Component
[INFO] Pade Web Components
[INFO] Pade VideoBridge Plugin
[INFO] Pade Focus Component
[INFO] Pade Gateway to SIP
[INFO] Pade Server
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building parent 0.9.13-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ parent ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Pade Configuration 0.9.13-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://github.com/jitsi/jitsi-maven-repository/raw/master/releases/org/igniterealtime/openfire/xmppserver/4.5.2/xmppserver-4.5.2.pom
Downloading: http://igniterealtime.org/repo/org/igniterealtime/openfire/xmppserver/4.5.2/xmppserver-4.5.2.pom
Downloading: https://repo.maven.apache.org/maven2/org/igniterealtime/openfire/xmppserver/4.5.2/xmppserver-4.5.2.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] parent ............................................ SUCCESS [0.062s]
[INFO] Pade Configuration ................................ FAILURE [1.795s]
[INFO] Pade VideoBridge Component ........................ SKIPPED
[INFO] Pade Web Components ............................... SKIPPED
[INFO] Pade VideoBridge Plugin ........................... SKIPPED
[INFO] Pade Focus Component .............................. SKIPPED
[INFO] Pade Gateway to SIP ............................... SKIPPED
[INFO] Pade Server ....................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.554s
[INFO] Finished at: Tue Jul 21 07:11:14 EDT 2020
[INFO] Final Memory: 13M/203M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project config: Could not resolve dependencies for project org.igniterealtime.openfire.ofmeet:config:jar:0.9.13-SNAPSHOT: Failed to collect dependencies for [org.igniterealtime.openfire:xmppserver:jar:4.5.2 (provided)]: Failed to read artifact descriptor for org.igniterealtime.openfire:xmppserver:jar:4.5.2: Could not transfer artifact org.igniterealtime.openfire:xmppserver:pom:4.5.2 from/to igniterealtime (http://igniterealtime.org/repo/): Access denied to: http://igniterealtime.org/repo/org/igniterealtime/openfire/xmppserver/4.5.2/xmppserver-4.5.2.pom , ReasonPhrase:Forbidden. -> [Help 1]

If I set it to 4.5.1 then I get the following error messages:

Downloading: https://repo.maven.apache.org/maven2/com/google/errorprone/error_prone_annotations/2.2.0/error_prone_annotations-2.2.0.jar
Downloaded: https://repo.maven.apache.org/maven2/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar (20 KB at 452.8 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar
Downloaded: https://repo.maven.apache.org/maven2/org/checkerframework/checker-qual/2.5.2/checker-qual-2.5.2.jar (189 KB at 2996.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/animal-sniffer-annotations/1.17/animal-sniffer-annotations-1.17.jar
Downloaded: https://repo.maven.apache.org/maven2/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar (9 KB at 199.4 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/com/google/errorprone/error_prone_annotations/2.2.0/error_prone_annotations-2.2.0.jar (14 KB at 212.3 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/mojo/animal-sniffer-annotations/1.17/animal-sniffer-annotations-1.17.jar (4 KB at 124.7 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/com/google/protobuf/protobuf-java/3.6.1/protobuf-java-3.6.1.jar (1389 KB at 1464.1 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/com/google/guava/guava/27.1-jre/guava-27.1-jre.jar (2683 KB at 5138.5 KB/sec)
Downloading: https://maven.atlassian.com/repository/public/org/igniterealtime/tinder/2.0.0/tinder-2.0.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] parent ............................................ SUCCESS [0.058s]
[INFO] Pade Configuration ................................ FAILURE [1:35.655s]
[INFO] Pade VideoBridge Component ........................ SKIPPED
[INFO] Pade Web Components ............................... SKIPPED
[INFO] Pade VideoBridge Plugin ........................... SKIPPED
[INFO] Pade Focus Component .............................. SKIPPED
[INFO] Pade Gateway to SIP ............................... SKIPPED
[INFO] Pade Server ....................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:36.385s
[INFO] Finished at: Tue Jul 21 07:15:25 EDT 2020
[INFO] Final Memory: 14M/330M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project config: Could not resolve dependencies for project org.igniterealtime.openfire.ofmeet:config:jar:0.9.13-SNAPSHOT: Could not find artifact org.igniterealtime:tinder:jar:2.0.0 in jitsi-maven-repository-releases (https://github.com/jitsi/jitsi-maven-repository/raw/master/releases/) -> [Help 1]

If I set it to 4.2.0, then the process moves further along but still fails:

[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /download/pade/0.9.13/openfire-pade-plugin/ofmeet/src/java/org/jivesoftware/openfire/plugin/ofmeet/LobbyMuc.java:[53,57] addServerFeaturesProvider(org.jivesoftware.openfire.disco.ServerFeaturesProvider) has private access in org.jivesoftware.openfire.disco.IQDiscoInfoHandler
[ERROR] /download/pade/0.9.13/openfire-pade-plugin/ofmeet/src/java/org/jivesoftware/openfire/plugin/ofmeet/LobbyMuc.java:[54,57] cannot find symbol
  symbol:   method addServerIdentitiesProvider(org.jivesoftware.openfire.disco.ServerIdentitiesProvider)
  location: class org.jivesoftware.openfire.disco.IQDiscoInfoHandler
[ERROR] /download/pade/0.9.13/openfire-pade-plugin/ofmeet/src/java/org/jivesoftware/openfire/plugin/ofmeet/LobbyMuc.java:[61,57] cannot find symbol
  symbol:   method removeServerIdentitiesProvider(org.jivesoftware.openfire.disco.ServerIdentitiesProvider)
  location: class org.jivesoftware.openfire.disco.IQDiscoInfoHandler
[INFO] 3 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] parent ............................................ SUCCESS [0.057s]
[INFO] Pade Configuration ................................ SUCCESS [1.988s]
[INFO] Pade VideoBridge Component ........................ SUCCESS [4.959s]
[INFO] Pade Web Components ............................... SUCCESS [0.714s]
[INFO] Pade VideoBridge Plugin ........................... FAILURE [0.907s]
[INFO] Pade Focus Component .............................. SKIPPED
[INFO] Pade Gateway to SIP ............................... SKIPPED
[INFO] Pade Server ....................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.351s
[INFO] Finished at: Tue Jul 21 07:17:34 EDT 2020
[INFO] Final Memory: 38M/444M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project ofmeet: Compilation failure: Compilation failure:
[ERROR] /download/pade/0.9.13/openfire-pade-plugin/ofmeet/src/java/org/jivesoftware/openfire/plugin/ofmeet/LobbyMuc.java:[53,57] addServerFeaturesProvider(org.jivesoftware.openfire.disco.ServerFeaturesProvider) has private access in org.jivesoftware.openfire.disco.IQDiscoInfoHandler
[ERROR] /download/pade/0.9.13/openfire-pade-plugin/ofmeet/src/java/org/jivesoftware/openfire/plugin/ofmeet/LobbyMuc.java:[54,57] cannot find symbol
[ERROR] symbol:   method addServerIdentitiesProvider(org.jivesoftware.openfire.disco.ServerIdentitiesProvider)
[ERROR] location: class org.jivesoftware.openfire.disco.IQDiscoInfoHandler
[ERROR] /download/pade/0.9.13/openfire-pade-plugin/ofmeet/src/java/org/jivesoftware/openfire/plugin/ofmeet/LobbyMuc.java:[61,57] cannot find symbol
[ERROR] symbol:   method removeServerIdentitiesProvider(org.jivesoftware.openfire.disco.ServerIdentitiesProvider)
[ERROR] location: class org.jivesoftware.openfire.disco.IQDiscoInfoHandler
[ERROR] -> [Help 1]

For now, I will download the pre-compiled code from your repo.

Thanks again for the quick response.

Renato

I used 4.5.1 which caused it to fail for you because of missing tinder.jar dependency. I suspect I may have tinder cached in maven on my PC. The maven pom file is old and should be updated to match the current style for openfire plugins which use archiva for the openfire maven repo. That will be a task for some other day.

Hi Dele,
I receive the same error when buil the proyect ! … the reason why I want to modify is that the lobby function does not allow me to accept guests,
could you help me?

apparently it is because of the “conference” service by default in openfire

I am unable to reproduce this issue

Are you really sure about this? Is Openfire enabled for anonymous users?