org.ow2.jonas.launcher.felix.util
Class Maven2Utils

java.lang.Object
  extended by org.ow2.jonas.launcher.felix.util.Maven2Utils

public final class Maven2Utils
extends Object

Maven2 Utilities.

Author:
Guillaume Sauthier

Method Summary
static String getBundleMaven2Location(String repository, String groupId, String artifactId, String version, String classifier)
           
static File getMaven2Repository()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBundleMaven2Location

public static String getBundleMaven2Location(String repository,
                                             String groupId,
                                             String artifactId,
                                             String version,
                                             String classifier)
                                      throws MalformedURLException
Parameters:
repository - Artifact repository
groupId - Artifact groupId
artifactId - Artifact ID
version - Artifact version
classifier - Artifact's classifier (may be null)
Returns:
a string-ified URL
Throws:
MalformedURLException - If jar file is not in the repository.

getMaven2Repository

public static File getMaven2Repository()
Returns:
a File to a usable Maven2 repository.


Copyright © 2010 OW2 Consortium. All Rights Reserved.