Skip to content

Commit

Permalink
Removed KnownRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Mar 7, 2013
1 parent b059750 commit 7234ee7
Showing 1 changed file with 4 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,6 @@
*/
public interface DependencyFacet extends ProjectFacet
{
public enum KnownRepository
{
CENTRAL("http://repo1.maven.org/maven2/"),
JBOSS_NEXUS("http://repository.jboss.org/nexus/content/groups/public"),
JAVA_NET("http://download.java.net/maven/2/");

private final String url;

private KnownRepository(final String url)
{
this.url = url;
}

public String getId()
{
return this.name();
}

public String getUrl()
{
return url;
}
}

/**
* Add the given {@link Dependency} to this {@link Project}'s immediate list of dependencies. This method does not
* check for existence of dependencies in the hierarchy, instead, directly adds or replaces a direct dependency.
Expand All @@ -74,12 +50,6 @@ public String getUrl()
*/
public void addDirectManagedDependency(Dependency dep);

/**
* Add a {@link KnownRepository} to the project build system. This is where dependencies can be found, downloaded,
* and installed to the project build script.
*/
public void addRepository(KnownRepository repository);

/**
* Add a repository to the project build system. This is where dependencies can be found, downloaded, and installed
* to the project build script.
Expand Down Expand Up @@ -107,7 +77,7 @@ public String getUrl()
* <b>Notice:</b> This method checks only the immediate project dependencies, meaning that if a dependency is
* declared somewhere else in the hierarchy, it will not be detected by this method, even though by
* {@link #hasDependency(Dependency)} may return true.
*
*
* @return
*/
public Dependency getDirectDependency(Dependency dependency);
Expand All @@ -130,7 +100,7 @@ public String getUrl()
* and return it.
* <p/>
* See also: {@link DependencyBuilder}. See also: {@link #hasEffectiveDependency(Dependency)}.
*
*
* @return
*/
Dependency getEffectiveDependency(Dependency dependency);
Expand Down Expand Up @@ -158,7 +128,7 @@ public String getUrl()
* Attempt to locate the given managed {@link Dependency}, if it exists in the {@link Project}, and return it.
* <p/>
* See also: {@link DependencyBuilder}. See also: {@link #hasEffectiveManagedDependency(Dependency)}.
*
*
* @return
*/
public Dependency getManagedDependency(Dependency managedDependency);
Expand Down Expand Up @@ -223,11 +193,6 @@ public String getUrl()
*/
public boolean hasDirectManagedDependency(Dependency managedDependency);

/**
* Return true if the given {@link KnownRepository} is already registered in this project's build system.
*/
public boolean hasRepository(KnownRepository repository);

/**
* Return true if the given repository URL is already registered in this project's build system.
*/
Expand Down Expand Up @@ -274,7 +239,7 @@ public String getUrl()
/**
* Given a {@link Dependency} with a populated groupId, versionId, and version range, identify the available
* artifacts in all known repositories for this project. By default, SNAPSHOT versions are excluded.
*
*
* See {@link DependencyFacet#resolveAvailableVersions(String)}. For more comprehensive resolution features, see
* {@link DependencyResolver}
*/
Expand Down

0 comments on commit 7234ee7

Please sign in to comment.