org.jfrog.maven.annomojo.extractor
Class Maven20Helper

java.lang.Object
  extended by org.jfrog.maven.annomojo.extractor.Maven20Helper
All Implemented Interfaces:
MavenHelper

public class Maven20Helper
extends java.lang.Object
implements MavenHelper

Author:
Jason van Zyl

Method Summary
 org.apache.maven.settings.Settings buildSettings(java.io.File userSettingsPath, java.io.File globalSettingsPath, java.lang.Boolean pluginUpdateOverride)
           
 org.apache.maven.settings.Settings buildSettings(java.io.File userSettingsPath, java.io.File globalSettingsPath, boolean interactive, boolean offline, boolean usePluginRegistry, java.lang.Boolean pluginUpdateOverride)
           
 org.apache.maven.artifact.repository.ArtifactRepository createLocalRepository(java.io.File directory)
           
 org.apache.maven.artifact.repository.ArtifactRepository createRepository(java.lang.String repositoryId, java.lang.String repositoryUrl, boolean offline, boolean updateSnapshots, java.lang.String globalChecksumPolicy)
           
 java.io.File getGlobalSettingsPath()
          Retrieve the global settings path using the followiwin search pattern:

1.

 org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()
           
 java.lang.String getLocalRepositoryPath()
           
 java.lang.String getLocalRepositoryPath(org.apache.maven.settings.Settings settings)
          Retrieve the local repository path using the followiwin search pattern:

1.

 java.io.File getUserSettingsPath(java.lang.String optionalSettingsPath)
          Retrieve the user settings path using the followiwin search pattern:

1.

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createLocalRepository

public org.apache.maven.artifact.repository.ArtifactRepository createLocalRepository(java.io.File directory)

createRepository

public org.apache.maven.artifact.repository.ArtifactRepository createRepository(java.lang.String repositoryId,
                                                                                java.lang.String repositoryUrl,
                                                                                boolean offline,
                                                                                boolean updateSnapshots,
                                                                                java.lang.String globalChecksumPolicy)

buildSettings

public org.apache.maven.settings.Settings buildSettings(java.io.File userSettingsPath,
                                                        java.io.File globalSettingsPath,
                                                        boolean interactive,
                                                        boolean offline,
                                                        boolean usePluginRegistry,
                                                        java.lang.Boolean pluginUpdateOverride)
                                                 throws java.lang.Exception
Throws:
java.lang.Exception

buildSettings

public org.apache.maven.settings.Settings buildSettings(java.io.File userSettingsPath,
                                                        java.io.File globalSettingsPath,
                                                        java.lang.Boolean pluginUpdateOverride)
                                                 throws java.lang.Exception
Throws:
java.lang.Exception

getUserSettingsPath

public java.io.File getUserSettingsPath(java.lang.String optionalSettingsPath)
Retrieve the user settings path using the followiwin search pattern:

1. System Property 2. Optional path 3. ${user.home}/.m2/settings.xml


getGlobalSettingsPath

public java.io.File getGlobalSettingsPath()
Retrieve the global settings path using the followiwin search pattern:

1. System Property 2. CLI Option 3. ${maven.home}/conf/settings.xml


getLocalRepositoryPath

public java.lang.String getLocalRepositoryPath(org.apache.maven.settings.Settings settings)
Retrieve the local repository path using the followiwin search pattern:

1. System Property 2. localRepository specified in user settings file 3. ${user.home}/.m2/repository


getLocalRepositoryPath

public java.lang.String getLocalRepositoryPath()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

getLocalRepository

public org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()
                                                                           throws java.lang.Exception
Specified by:
getLocalRepository in interface MavenHelper
Throws:
java.lang.Exception


Copyright © 2006-2009. All Rights Reserved.