diff --git a/activemq-maven-plugin/src/main/java/org/apache/activemq/server/ActiveMQBootstrap.java b/activemq-maven-plugin/src/main/java/org/apache/activemq/server/ActiveMQBootstrap.java index 43dd087af7..bb7faf4590 100644 --- a/activemq-maven-plugin/src/main/java/org/apache/activemq/server/ActiveMQBootstrap.java +++ b/activemq-maven-plugin/src/main/java/org/apache/activemq/server/ActiveMQBootstrap.java @@ -98,14 +98,14 @@ public class ActiveMQBootstrap { //extendPluginClasspath(configurationDir); configuration = new FileConfiguration(); - File file = new File(configurationDir + "/" + "activemq-configuration.xml"); + File file = new File(new File(configurationDir), "activemq-configuration.xml"); jmsFileConfiguration = new FileJMSConfiguration(); - FileDeploymentManager deploymentManager = new FileDeploymentManager(file.toURI().toURL().toExternalForm()); + FileDeploymentManager deploymentManager = new FileDeploymentManager(file.toURI().toString()); deploymentManager.addDeployable((FileConfiguration)configuration); deploymentManager.addDeployable((FileJMSConfiguration) jmsFileConfiguration); - securityConfiguration = new FileSecurityConfiguration("file://" + configurationDir + "/" + "activemq-users.properties", - "file://" + configurationDir + "/" + "activemq-roles.properties", + securityConfiguration = new FileSecurityConfiguration(new File(configurationDir, "activemq-users.properties").toURI().toString(), + new File(configurationDir, "activemq-roles.properties").toURI().toString(), "guest", false, null);