@Parameter
protected Map<String, String> systemVariables = new HashMap<String, String>();
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
final Deployer deployer = (Deployer) lookup("openejb/DeployerBusinessRemote");
try {
if (systemVariables.isEmpty()) {
deployer.deploy(path);
} else {
final Properties prop = new Properties();
prop.putAll(systemVariables);
deployer.deploy(path, prop);
}
} catch (OpenEJBException e) {
throw new TomEEException(e.getMessage(), e);
}
}