private void tagDeploy() throws ComponentLookupException, ScmException {

    final ScmManager scmManager = (ScmManager) container.lookup(ScmManager.ROLE);
    final String date = new SimpleDateFormat("yyyyMMddHHmm").format(now);

    loadPomProject();

    final TagScmResult result =
        scmManager.tag(
            scmManager.makeScmRepository(project.getScm().getDeveloperConnection()),
            new ScmFileSet(pomProject.getBasedir()), // TODO server-side copy
            profile + "-deployments/" + date + "-" + project.getArtifactId(),
            "sesat " + profile + " deployment");

    if (!result.isSuccess()) {
      throw new ScmException(result.getCommandOutput());
    }
  }