org.apache.maven.shared.osgi

Interface Maven2OsgiConverter

public interface Maven2OsgiConverter

Converter from Maven groupId,artifactId and versions to OSGi Bundle-SymbolicName and version

Version: $Id: Maven2OsgiConverter.java 661727 2008-05-30 14:21:49Z bentmann $

Author: Carlos Sanchez

Method Summary
StringgetBundleFileName(Artifact artifact)
StringgetBundleSymbolicName(Artifact artifact)
Get the OSGi symbolic name for the artifact
StringgetVersion(Artifact artifact)
Convert a Maven version into an OSGi compliant version
StringgetVersion(String version)
Convert a Maven version into an OSGi compliant version

Method Detail

getBundleFileName

public String getBundleFileName(Artifact artifact)

getBundleSymbolicName

public String getBundleSymbolicName(Artifact artifact)
Get the OSGi symbolic name for the artifact

Parameters: artifact

Returns: the Bundle-SymbolicName manifest property

getVersion

public String getVersion(Artifact artifact)
Convert a Maven version into an OSGi compliant version

Parameters: artifact Maven artifact

Returns: the OSGi version

getVersion

public String getVersion(String version)
Convert a Maven version into an OSGi compliant version

Parameters: version Maven version

Returns: the OSGi version

Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.