Class BndMavenTestsPlugin

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    Direct Known Subclasses:
    BndMavenPackagingTestsPlugin

    @Mojo(name="bnd-process-tests",
          defaultPhase=PROCESS_TEST_CLASSES,
          requiresDependencyResolution=TEST,
          threadSafe=true)
    public class BndMavenTestsPlugin
    extends AbstractBndMavenPlugin
    Processes the test target classes to generate OSGi metadata.

    This goal has the default phase of "process-test-classes".

    • Field Detail

      • artifactFragment

        @Parameter(defaultValue="false")
        private boolean artifactFragment
        Whether the test artifact is an OSGi fragment.

        If true, make the tests artifact a fragment using ${project.artifactId} as the Fragment-Host header and setting the Bundle-SymbolicName of the tests artifact to ${project.artifactId}-tests.

      • sourceDir

        @Parameter(defaultValue="${project.build.testSourceDirectory}",
                   readonly=true)
        private java.io.File sourceDir
      • resources

        @Parameter(defaultValue="${project.build.testResources}",
                   readonly=true)
        private java.util.List<org.apache.maven.model.Resource> resources
      • mainClassesDir

        @Parameter(defaultValue="${project.build.outputDirectory}")
        private java.io.File mainClassesDir
        The directory where the maven-compiler-plugin placed the main output.
      • classesDir

        @Parameter(defaultValue="${project.build.testOutputDirectory}")
        private java.io.File classesDir
        The directory where the maven-compiler-plugin places its output.
      • outputDir

        @Parameter(defaultValue="${project.build.testOutputDirectory}")
        private java.io.File outputDir
        The directory where this plugin will store its output.
      • manifestPath

        @Parameter(defaultValue="${project.build.testOutputDirectory}/META-INF/MANIFEST.MF")
        private java.io.File manifestPath
        Specify the path to store the generated manifest file.
      • skip

        @Parameter(property="maven.test.skip",
                   defaultValue="false")
        private boolean skip
        Skip this goal. The goal can also be skipped with the skipGoal configuration.
      • skipGoal

        @Parameter(property="bnd-tests.skip",
                   defaultValue="false")
        private boolean skipGoal
        Skip this goal. The goal can also be skipped with the skip configuration.
    • Constructor Detail

      • BndMavenTestsPlugin

        public BndMavenTestsPlugin()