/*
  * (non-Javadoc)
  *
  * @see org.jboss.forge.addon.deltaspike.facets.DeltaSpikeFacet#remove(org.jboss.forge.addon.deltaspike.DeltaSpikeModule)
  */
 @Override
 public DeltaSpikeFacet remove(DeltaSpikeModule deltaSpikeModule) {
   DependencyFacet dependencyFacet = getFaceted().getFacet(DependencyFacet.class);
   for (Dependency dependency : deltaSpikeModule.getDependencies()) {
     dependencyFacet.removeManagedDependency(dependency);
     dependencyFacet.removeDependency(dependency);
   }
   return this;
 }
Exemplo n.º 2
0
  @Override
  public boolean uninstall() {
    final DependencyFacet depFacet = getProject().getFacet(DependencyFacet.class);

    for (final DependencyBuilder dep : createDependencies()) {
      if (depFacet.hasDirectManagedDependency(dep)) {
        depFacet.removeManagedDependency(dep);
      }
    }

    return true;
  }