Package org.apache.felix.obrplugin
Class ObrDeploy
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.felix.obrplugin.ObrDeploy
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="deploy",
threadSafe=true,
defaultPhase=DEPLOY)
public final class ObrDeploy
extends org.apache.maven.plugin.AbstractMojo
Deploys bundle details to a remote OBR repository (life-cycle goal)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Patternprivate StringAlternative deployment repository.private Listprivate StringOptional public URL where the bundle has been deployed.private org.apache.maven.artifact.repository.ArtifactRepositoryprivate booleanWhen true, ignore remote locking.private org.apache.maven.artifact.repository.ArtifactRepositoryLocal Repository.private org.apache.maven.artifact.ArtifactAttached doc artifactprivate org.apache.maven.artifact.ArtifactAttached source artifactprivate org.apache.maven.artifact.manager.WagonManagerThe Wagon manager.private StringOBR specific deployment repository.private StringLocal OBR Repository.private StringOptional public URL prefix for the remote repository.private org.apache.maven.project.MavenProjectThe Maven project.private StringRemote OBR Repository.private org.apache.maven.settings.SettingsLocal Maven settings.private ListProject types which this plugin supports.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()private voidopenRepositoryConnection(RemoteFileManager remoteFile) private voidupdateRemoteBundleMetadata(org.apache.maven.artifact.Artifact artifact, ObrUpdate update) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
ignoreLock
@Parameter(property="ignoreLock") private boolean ignoreLockWhen true, ignore remote locking. -
prefixUrl
Optional public URL prefix for the remote repository. -
bundleUrl
Optional public URL where the bundle has been deployed. -
remoteOBR
Remote OBR Repository. -
obrRepository
Local OBR Repository. -
supportedProjectTypes
Project types which this plugin supports. -
deploymentRepository
@Parameter(defaultValue="${project.distributionManagementArtifactRepository}", readonly=true) private org.apache.maven.artifact.repository.ArtifactRepository deploymentRepository -
altDeploymentRepository
Alternative deployment repository. Format: id::layout::url -
obrDeploymentRepository
OBR specific deployment repository. Format: id::layout::url -
localRepository
@Parameter(defaultValue="${localRepository}", readonly=true, required=true) private org.apache.maven.artifact.repository.ArtifactRepository localRepositoryLocal Repository. -
project
@Parameter(defaultValue="${project}", readonly=true, required=true) private org.apache.maven.project.MavenProject projectThe Maven project. -
attachedArtifacts
@Parameter(defaultValue="${project.attachedArtifacts}", readonly=true, required=true) private List attachedArtifacts -
settings
@Parameter(defaultValue="${settings}", readonly=true, required=true) private org.apache.maven.settings.Settings settingsLocal Maven settings. -
m_wagonManager
@Component private org.apache.maven.artifact.manager.WagonManager m_wagonManagerThe Wagon manager. -
m_sourceArtifact
private org.apache.maven.artifact.Artifact m_sourceArtifactAttached source artifact -
m_docArtifact
private org.apache.maven.artifact.Artifact m_docArtifactAttached doc artifact -
ALT_REPO_SYNTAX_PATTERN
-
-
Constructor Details
-
ObrDeploy
public ObrDeploy()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
openRepositoryConnection
private void openRepositoryConnection(RemoteFileManager remoteFile) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
updateRemoteBundleMetadata
private void updateRemoteBundleMetadata(org.apache.maven.artifact.Artifact artifact, ObrUpdate update) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-