@Override
public void configureNexus() {
final Properties nexusProperties = new Properties();
nexusProperties.setProperty("application-port", String.valueOf(getPort()));
nexusProperties.setProperty("application-port-ssl", String.valueOf(getSslPort()));
nexusProperties.setProperty(commandMonitorProperty(), String.valueOf(commandMonitorPort));
nexusProperties.setProperty(keepAliveProperty(), String.valueOf(keepAlivePort));
if (getConfiguration().getContextPath() != null) {
nexusProperties.setProperty("nexus-webapp-context-path", getConfiguration().getContextPath());
}
final Map<String, String> systemProperties = getConfiguration().getSystemProperties();
if (!systemProperties.isEmpty()) {
for (final Map.Entry<String, String> entry : systemProperties.entrySet()) {
nexusProperties.setProperty(entry.getKey(), entry.getValue() == null ? "true" : entry.getValue());
}
}
onDirectory(getConfiguration().getTargetDirectory()).apply(
fileTaskBuilder.properties(path("nexus/conf/nexus-test.properties"))
.properties(nexusProperties)
);
}