com.atlassian.confluence.it.maven
Class LocalMavenDependency

java.lang.Object
  extended by com.atlassian.confluence.it.maven.LocalMavenDependency
All Implemented Interfaces:
MavenDependency

public class LocalMavenDependency
extends Object
implements MavenDependency

Represents a Maven dependency found in the local repository.

To determine the location of the local repository, first checks the 'localRepository' system property, then uses ~/.m2/repository.


Constructor Summary
LocalMavenDependency(String groupId, String artifactId, String version, String packaging)
           
 
Method Summary
 File getFile()
          Returns a file representing the dependency in the local repository, using the conventions of a Maven 2 repository.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalMavenDependency

public LocalMavenDependency(String groupId,
                            String artifactId,
                            String version,
                            String packaging)
Method Detail

getFile

public File getFile()
Returns a file representing the dependency in the local repository, using the conventions of a Maven 2 repository. The file that is returned may or may not exist.

Specified by:
getFile in interface MavenDependency

toString

public String toString()
Specified by:
toString in interface MavenDependency
Overrides:
toString in class Object


Copyright © 2003-2012 Atlassian. All Rights Reserved.