APM Java Agent Building Speed

The recommended way to build the java apm agent from source is:

./mvnw clean install -DskipTests=true -Dmaven.javadoc.skip=true

This takes between 1m45s to 2m30s to build. Is there a way to compile and create jar only on the modified files alone - to make this process faster.

Thanks for the question.

The way to achieve what you want is probably execute the same, without the clean stage.
Unfortunately, there is a problem with the maven shade plugin that fails such execution without priorly cleaning. It seems the plugin relies on former constructs when creating artefacts, and fails for duplicated entry.

We currently can't prioritize investigating why this happens and what needs to be fixed. If you wish to take a look on that, we will be happy to hear what you learn :slight_smile: .

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.