Compiling part of sources


Hi, is there a quick way to compile only a part of the sources?
Thank you very much
Best Regards.


To do this, I tend to go in the directory of the module that I updated, and run the compile from there:

cd features/measurements/impl

When that completes, copy the artifact over to the build and restart:

cp target/org.opennms.features.measurements.impl-24.0.0-SNAPSHOT.jar $OPENNMS_HOME/lib/
kill -9 $(cat $OPENNMS_HOME/logs/
$OPENNMS_HOME/bin/opennms -t start

How to deploy the updated artifacts depends on what’s being updated, some live in $OPENMS_HOME/system, and others in $OPENNMS_HOME/jetty-webapps.