Class BndMavenTestsPlugin

java.lang.Object
org.apache.maven.plugin.AbstractMojo
aQute.bnd.maven.plugin.AbstractBndMavenPlugin
aQute.bnd.maven.plugin.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 Details

    • 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.

    • testCases

      @Parameter(defaultValue="junit5") private TestCases testCases
      The test case types to generate into the Test-Cases manifest header.

      Possible values are junit3, junit4, junit5, all, testng, and TestCases.useTestCasesHeader

    • sourceDir

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

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

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

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

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

      @Parameter(defaultValue="${project.build.testOutputDirectory}/META-INF/MANIFEST.MF") private 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 Details

    • BndMavenTestsPlugin

      public BndMavenTestsPlugin()
  • Method Details