public interface ProjectInstaller
There are several Plexus components implementing this interface. Each of the components is responsible for installing some kind of artifacts.
Users of this class should can either iterate over all project installer components available in Plexus container and
call getSupportedPackagingType()
to see which components are suitable for installing which projects, or use
role hint to lookup the right component.
Modifier and Type | Method and Description |
---|---|
List<String> |
getSupportedPackagingTypes()
Get list of supported packaging types.
|
void |
installProject(org.apache.maven.project.MavenProject project,
Package targetPackage,
PackagingRule rule)
Install Maven project into binary package.
|
List<String> getSupportedPackagingTypes()
void installProject(org.apache.maven.project.MavenProject project, Package targetPackage, PackagingRule rule) throws ProjectInstallationException, IOException
This method can be called only if project packaging type is on the list of supported packaging types, as returned
by getSupportedPackagingTypes()
method.
project
- Maven project to be installedtargetPackage
- binary package into which project should be installedrule
- effective packaging rule to useProjectInstallationException
- if project cannot be installed for some reasonIOException
- if I/O error occurs when installing package filesCopyright © 2012-2013 Red Hat, Inc.. All Rights Reserved.