geonetwork / geonetwork/core-geonetwork

Font Awesome icons not showing when using `-Penv-dev` or `-Denv=dev` with `mvn jetty:run`

Open
#9,129 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
521
Forks
514
Avg merge
6d 13h
Merged PRs (30d)
19

Description

**Describe the bug**
When starting the Jetty server using `mvn -Penv-dev jetty:run` or `mvn -Denv=dev jetty:run`, the Font Awesome icons are not shown. When starting the Jetty server using `mvn jetty:run`, the Font Awesone icons are shown fine.

**To Reproduce**
Steps to reproduce the behavior:
1. Follow the instructions on https://docs.geonetwork-opensource.org/latest/install-guide/installing-from-source-code/
2. Run GeoNetwork with the embedded Jetty server in the developer environment: `mvn -Penv-dev jetty:run` (or `mvn -Denv=dev jetty:run`)
3. Open http://localhost:8080/geonetwork/
4. The Font Awesome icons are not shown or shown incorrectly, see screenshot.

**Expected behavior**
The Font Awesome icons are displayed correctly.

**Screenshots**
`mvn -Penv-dev jetty:run` or `mvn -Denv=dev jetty:run`:
Image

`mvn jetty:run`:
Image

**Log file**
[log_env_dev.txt](https://github.com/user-attachments/files/24471465/log_env_dev.txt)
[log_no_env.txt](https://github.com/user-attachments/files/24471466/log_no_env.txt)

**Desktop**
- Browser: Firefox 146.0.1
- GeoNetwork Version: issue occurs with 4.4.9 (7712567c67) and 4.4.10-SNAPSNOT commit 86c8dc5eb5
- Server Application: Jetty 9.4.54.v20240208 and openjdk version "11.0.29" 2025-10-21 LTS
- Maven 3.9.11

**Additional context**
N/A

Contributor guide

Open the contributing guide

Research direction

Start by comparing the output and assets produced by `mvn -Penv-dev jetty:run`, `mvn -Denv=dev jetty:run`, and `mvn jetty:run`, using log_env_dev.txt and log_no_env.txt. Trace the environment-specific resource or asset loading that affects the Font Awesome icons. Done means the icons display correctly with both developer commands without changing the working default command.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.