Package org.apache.felix.bundleplugin
Class BundleAllPlugin
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.felix.bundleplugin.BundlePlugin
-
- org.apache.felix.bundleplugin.ManifestPlugin
-
- org.apache.felix.bundleplugin.BundleAllPlugin
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
WrapPlugin
@Deprecated @Mojo(name="bundleall", requiresDependencyResolution=TEST, defaultPhase=PACKAGE) public class BundleAllPlugin extends ManifestPlugin
Deprecated.The bundleall goal is no longer supported and may be removed in a future releaseBuild an OSGi bundle jar for all transitive dependencies.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.felix.bundleplugin.BundlePlugin
BundlePlugin.ClassPathItem
-
-
Field Summary
Fields Modifier and Type Field Description private int
depth
Deprecated.Process up to some depthprivate boolean
ignoreMissingArtifacts
Deprecated.Ignore missing artifacts that are not required by current project but are required by the transitive dependencies.private org.apache.maven.artifact.repository.ArtifactRepository
localRepository
Deprecated.Local repository.private static java.lang.String
LS
Deprecated.private org.apache.maven.artifact.metadata.ArtifactMetadataSource
m_artifactMetadataSource
Deprecated.private org.apache.maven.artifact.resolver.ArtifactResolver
m_artifactResolver
Deprecated.Artifact resolver, needed to download jars.private java.util.Set
m_artifactsBeingProcessed
Deprecated.private org.apache.maven.artifact.factory.ArtifactFactory
m_factory
Deprecated.private org.apache.maven.project.MavenProjectBuilder
m_mavenProjectBuilder
Deprecated.private java.util.List
remoteRepositories
Deprecated.Remote repositories.private static java.util.regex.Pattern
SNAPSHOT_VERSION_PATTERN
Deprecated.private java.lang.String
wrapImportPackage
Deprecated.Import-Package to be used when wrapping dependencies.-
Fields inherited from class org.apache.felix.bundleplugin.ManifestPlugin
rebuildBundle
-
Fields inherited from class org.apache.felix.bundleplugin.BundlePlugin
artifactFactory, artifactResolver, classifier, createDependencyReducedPom, dependencyReducedPomLocation, dumpClasspath, dumpInstructions, excludeDependencies, exportScr, m_dependencyGraphBuilder, manifestLocation, mavenProjectBuilder, niceManifest, noWarningProjectTypes, packaging, project, remoteArtifactRepositories, scrLocation, session, supportedProjectTypes, unpackBundle
-
-
Constructor Summary
Constructors Constructor Description BundleAllPlugin()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private BundleInfo
addExportedPackages(org.apache.maven.project.MavenProject project, java.util.Collection packages)
Deprecated.private boolean
alreadyBundled(org.apache.maven.artifact.Artifact artifact)
Deprecated.protected BundleInfo
bundle(org.apache.maven.project.MavenProject project)
Deprecated.Bundle one project only without building its childreprivate BundleInfo
bundleAll(org.apache.maven.project.MavenProject project)
Deprecated.Bundle a project and all its dependenciesprotected BundleInfo
bundleAll(org.apache.maven.project.MavenProject project, int maxDepth)
Deprecated.Bundle a project and its transitive dependencies up to some depth levelprivate BundleInfo
bundleRoot(org.apache.maven.project.MavenProject project, BundleInfo bundleInfo)
Deprecated.Bundle the root of a dependency tree after all its children have been bundledvoid
execute()
Deprecated.private java.lang.String
getArtifactKey(org.apache.maven.artifact.Artifact artifact)
Deprecated.private java.io.File
getBuiltFile(org.apache.maven.artifact.Artifact artifact)
Deprecated.private java.lang.String
getBundleName(org.apache.maven.artifact.Artifact artifact)
Deprecated.protected java.io.File
getFile(org.apache.maven.artifact.Artifact artifact)
Deprecated.Use previously built bundles when available.protected java.io.File
getOutputFile(org.apache.maven.artifact.Artifact artifact)
Deprecated.private boolean
isOsgi(aQute.bnd.osgi.Jar jar)
Deprecated.protected void
logDuplicatedPackages(BundleInfo bundleInfo)
Deprecated.Log what packages are exported in more than one bundleprivate org.apache.maven.artifact.Artifact
resolveArtifact(org.apache.maven.artifact.Artifact artifact)
Deprecated.protected boolean
snapshotMatch(org.apache.maven.artifact.Artifact artifact, java.lang.String bundleName)
Deprecated.Check that the bundleName provided correspond to the artifact provided.-
Methods inherited from class org.apache.felix.bundleplugin.ManifestPlugin
calculateExportsFromContents, execute, getAnalyzer, getAnalyzer, getManifest, getManifest, writeManifest, writeManifest
-
Methods inherited from class org.apache.felix.bundleplugin.BundlePlugin
addMavenInstructions, addMavenSourcePath, buildOSGiBundle, convertVersionToOsgi, dumpClasspath, dumpInstructions, dumpManifest, getBase, getBuildDirectory, getBundleName, getClasspath, getDefaultProperties, getEmbeddableArtifacts, getInstructions, getMaven2OsgiConverter, getMavenResourcePaths, getOptionalPackages, getOSGiBuilder, getOutputDirectory, getProject, includeJava9Fixups, includeMavenResources, isTransitivelyOptional, mergeManifest, mergeMavenManifest, removeTagFromInstruction, reportErrors, sanitize, sanitize, setBuildDirectory, setOutputDirectory, transformDirectives, updateExcludesInDeps
-
-
-
-
Field Detail
-
LS
private static final java.lang.String LS
Deprecated.
-
SNAPSHOT_VERSION_PATTERN
private static final java.util.regex.Pattern SNAPSHOT_VERSION_PATTERN
Deprecated.
-
localRepository
@Parameter(defaultValue="${localRepository}", readonly=true, required=true) private org.apache.maven.artifact.repository.ArtifactRepository localRepository
Deprecated.Local repository.
-
remoteRepositories
@Parameter(defaultValue="${project.remoteArtifactRepositories}", readonly=true, required=true) private java.util.List remoteRepositories
Deprecated.Remote repositories.
-
wrapImportPackage
@Parameter(property="wrapImportPackage", defaultValue="*") private java.lang.String wrapImportPackage
Deprecated.Import-Package to be used when wrapping dependencies.
-
m_factory
@Component private org.apache.maven.artifact.factory.ArtifactFactory m_factory
Deprecated.
-
m_artifactMetadataSource
@Component private org.apache.maven.artifact.metadata.ArtifactMetadataSource m_artifactMetadataSource
Deprecated.
-
m_artifactResolver
@Component private org.apache.maven.artifact.resolver.ArtifactResolver m_artifactResolver
Deprecated.Artifact resolver, needed to download jars.
-
m_mavenProjectBuilder
@Component private org.apache.maven.project.MavenProjectBuilder m_mavenProjectBuilder
Deprecated.
-
ignoreMissingArtifacts
@Parameter private boolean ignoreMissingArtifacts
Deprecated.Ignore missing artifacts that are not required by current project but are required by the transitive dependencies.
-
m_artifactsBeingProcessed
private java.util.Set m_artifactsBeingProcessed
Deprecated.
-
depth
@Parameter private int depth
Deprecated.Process up to some depth
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException
Deprecated.- Specified by:
execute
in interfaceorg.apache.maven.plugin.Mojo
- Overrides:
execute
in classBundlePlugin
- Throws:
org.apache.maven.plugin.MojoExecutionException
- See Also:
Mojo.execute()
-
bundleAll
private BundleInfo bundleAll(org.apache.maven.project.MavenProject project) throws org.apache.maven.plugin.MojoExecutionException
Deprecated.Bundle a project and all its dependencies- Parameters:
project
-- Throws:
org.apache.maven.plugin.MojoExecutionException
-
bundleAll
protected BundleInfo bundleAll(org.apache.maven.project.MavenProject project, int maxDepth) throws org.apache.maven.plugin.MojoExecutionException
Deprecated.Bundle a project and its transitive dependencies up to some depth level- Parameters:
project
-maxDepth
- how deep to process the dependency tree- Throws:
org.apache.maven.plugin.MojoExecutionException
-
bundleRoot
private BundleInfo bundleRoot(org.apache.maven.project.MavenProject project, BundleInfo bundleInfo) throws org.apache.maven.plugin.MojoExecutionException
Deprecated.Bundle the root of a dependency tree after all its children have been bundled- Parameters:
project
-bundleInfo
-- Returns:
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
bundle
protected BundleInfo bundle(org.apache.maven.project.MavenProject project) throws org.apache.maven.plugin.MojoExecutionException
Deprecated.Bundle one project only without building its childre- Parameters:
project
-- Throws:
org.apache.maven.plugin.MojoExecutionException
-
isOsgi
private boolean isOsgi(aQute.bnd.osgi.Jar jar) throws java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
-
addExportedPackages
private BundleInfo addExportedPackages(org.apache.maven.project.MavenProject project, java.util.Collection packages)
Deprecated.
-
getArtifactKey
private java.lang.String getArtifactKey(org.apache.maven.artifact.Artifact artifact)
Deprecated.
-
getBundleName
private java.lang.String getBundleName(org.apache.maven.artifact.Artifact artifact)
Deprecated.
-
alreadyBundled
private boolean alreadyBundled(org.apache.maven.artifact.Artifact artifact)
Deprecated.
-
getFile
protected java.io.File getFile(org.apache.maven.artifact.Artifact artifact)
Deprecated.Use previously built bundles when available.- Overrides:
getFile
in classBundlePlugin
- Parameters:
artifact
-
-
getBuiltFile
private java.io.File getBuiltFile(org.apache.maven.artifact.Artifact artifact)
Deprecated.
-
snapshotMatch
protected boolean snapshotMatch(org.apache.maven.artifact.Artifact artifact, java.lang.String bundleName)
Deprecated.Check that the bundleName provided correspond to the artifact provided. Used to determine when the bundle name is a timestamped snapshot and the artifact is a snapshot not timestamped.- Parameters:
artifact
- artifact with snapshot versionbundleName
- bundle file name- Returns:
- if both represent the same artifact and version, forgetting about the snapshot timestamp
-
getOutputFile
protected java.io.File getOutputFile(org.apache.maven.artifact.Artifact artifact)
Deprecated.
-
resolveArtifact
private org.apache.maven.artifact.Artifact resolveArtifact(org.apache.maven.artifact.Artifact artifact) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.artifact.resolver.ArtifactNotFoundException
Deprecated.- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.artifact.resolver.ArtifactNotFoundException
-
logDuplicatedPackages
protected void logDuplicatedPackages(BundleInfo bundleInfo)
Deprecated.Log what packages are exported in more than one bundle
-
-