Prerequisites
- Use a machine with at least
8 GBof memory. - Install Java 17.
- Ensure that external dependency repositories are reachable.
- Use a PostgreSQL version supported by the OpenNMS release.
Build and start
Clone OpenNMS, then run:
| |
If assembly tests fail, retry with:
| |
Do not place a custom Maven repository inside the source checkout, because the assembly process may include it in the generated source archive.
Remote debugging
Configure the OpenNMS JVM to listen for a debugger on port 8001, then attach with IntelliJ IDEA. Keep the debug port private and use an SSH tunnel when debugging a remote host.
The web console uses port 8980 by default.
Script permissions
If the startup scripts report a missing user or insufficient permissions, review the RUNAS setting in runjava, install, and opennms. In a temporary test environment, the value can be supplied explicitly:
| |
Production environments should use a dedicated service user with only the required permissions.