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 java.lang.Object

Maven2 Utilities.

Author:
Guillaume Sauthier

Method Summary
static java.lang.String getBundleMaven2Location(java.lang.String repository, java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String classifier)
           
static java.io.File getMaven2InternalRepository()
           
static java.io.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 java.lang.String getBundleMaven2Location(java.lang.String repository,
                                                       java.lang.String groupId,
                                                       java.lang.String artifactId,
                                                       java.lang.String version,
                                                       java.lang.String classifier)
                                                throws java.net.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:
java.net.MalformedURLException - If jar file is not in the repository.

getMaven2Repository

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

getMaven2InternalRepository

public static java.io.File getMaven2InternalRepository()
Returns:
a File pointing to $JONAS_ROOT/repositories/maven2-internal


Copyright © 2010 OW2 Consortium. All Rights Reserved.