Compiling part of sources

#1

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

#2

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
../../../compile.pl

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.pid)
$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.