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 Pattern
private String
Alternative deployment repository.private List
private String
Optional public URL where the bundle has been deployed.private org.apache.maven.artifact.repository.ArtifactRepository
private boolean
When true, ignore remote locking.private org.apache.maven.artifact.repository.ArtifactRepository
Local Repository.private org.apache.maven.artifact.Artifact
Attached doc artifactprivate org.apache.maven.artifact.Artifact
Attached source artifactprivate org.apache.maven.artifact.manager.WagonManager
The Wagon manager.private String
OBR specific deployment repository.private String
Local OBR Repository.private String
Optional public URL prefix for the remote repository.private org.apache.maven.project.MavenProject
The Maven project.private String
Remote OBR Repository.private org.apache.maven.settings.Settings
Local Maven settings.private List
Project types which this plugin supports.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
private void
openRepositoryConnection
(RemoteFileManager remoteFile) private void
updateRemoteBundleMetadata
(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
-