powered by Jive Software

Openfire build package

Hello Community,

which is the easiest way to change openfire class,
compile openfire and update installed openfire version 4.3.2.0.

I installed Maven,
navigate into the root direcotry of this distribution named via the command-line:
C:\Src\Openfire-4.3.2
and call mvn compile

I have got one error

[ERROR] Failed to execute goal on project distribution: Could not resolve dependencies for project org.igniterealtime.openfire:distribution:jar:4.3.2: Failed to collect dependencies at org.igniterealtime.openfire.plugins:search:jar:openfire-plugin-assembly:1.7.1: Failed to read artifact descriptor for org.igniterealtime.openfire.plugins:search:jar:openfire-plugin-assembly:
1.7.1: Could not transfer artifact org.igniterealtime.openfire.plugins:search:pom:1.7.1 from/to igniterealtime (https://igniterealtime.org/archiva/repository/maven/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I found Search-Plugin 1.7.1 here
https://igniterealtime.org/archiva/repository/maven/org/igniterealtime/openfire/plugins/search/1.7.1/

These 3 urls are mentioned in the maven output

  1. Downloading from ej-technologies:
    https://maven.ej-technologies.com/repository/org/igniterealtime/openfire/plugins/search/1.7.1/search-1.7.1.pom

resource Not Found

  1. Downloading from igniterealtime:
    https://igniterealtime.org/archiva/repository/maven/org/igniterealtime/openfire/plugins/search/1.7.1/search-1.7.1.pom

resource exists

  1. Downloading from central:
    https://repo.maven.apache.org/maven2/org/igniterealtime/openfire/plugins/search/1.7.1/search-1.7.1.pom

resource Not Found

how can I fix it?

thank you

The second call of mvn compile use only one url:

Downloading from igniterealtime:
https://igniterealtime.org/archiva/repository/maven/org/igniterealtime/openfire/plugins/search/1.7.1/search-1.7.1.pom

{code}sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target{code}

This part of the error suggests that your computer does not trust the certificate that is being used by our Maven repository. As far as I can tell, it is a valid certificate. We’re using a LetsEncrypt-signed certificate - maybe you need to explicitly trust it?

thank you

the boath certificates are valid and now in computer certificates store on windows server installed.

  • CN = Let’s Encrypt Authority X3
  • CN = DST Root CA X3

But the error is not away.

from the site
https://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

  1. The remote repository in question uses SSL and the JVM running Maven does not trust the certificate of the server.

I don’t found where by maven self a certificate can be set.

there is some warning about dependency by start too:

I suspect updating to the latest Java 8 release will fix this. Via open_chat found that ofIgor was using 1.8.0_73 see here

java updated, server rebooted, the same error
java version “1.8.0_221”

By update of java, it was proposed from java, at first delete old java-installation, but I update it.

JAVA_HOME has C:\Program Files\Java\jdk1.8.0_31\

run java -version on the console again and behold your default.

For java-download I needed a company account by oracle.
I have got jdk-8u221-windows-x64.exe and install it now.

java version “1.8.0_221”
Java™ SE Runtime Environment (build 1.8.0_221-b11)
Java HotSpot™ 64-Bit Server VM (build 25.221-b11, mixed mode)

JAVA_HOME change to new Java-SDK C:\Program Files\Java\jdk1.8.0_221

I have Openfire 4.3.2 installed on the Windows Server.
Openfire is running as service.

I hvae a modivied Openfire 4.3.2 distribution.

How can I update the instlled version?

installed
grafik

distribution (created with maven)
grafik

I update the lib

from
C:\Src\Openfire-4.3.2\distribution\target\distribution-base\lib
to
C:\Program Files (x86)\Openfire\lib

Openfire is running