This mojo generates an Ounce project file. It does not fork the build like the "project" mojo and is instead intended to be bound in a pom for automatic execution. If you would rather have the project generated on demand via the command line, use the project goal instead.
Mojo Attributes:
testpackage| Name | Type | Description |
|---|---|---|
| analyzeStrutsFramework | boolean |
Whether to analyze the framework for a Struts application Default value is false. |
| classpathScope | String |
The scope of the classpath used to analyze this project. Valid choices are: compile, test, runtime, or system. If includeTestSources is true, then the classpathScope reverts to test. Otherwise, the default is compile. Default value is compile. |
| coreHint | String |
This hint provides a way to switch the core implementation. Consult Ounce support for details, most users should
leave this set to the default. Use -Dounce.core=console to have have the output displayed instead of written to
the file for debugging purposes. Default value is ouncexml. |
| createVariables | boolean |
Whether the plugin should use the Ounce Automation Server to create any necessary variables (such as M2_REPO).
Requires that the Ounce Automation Server be installed. Default value is true. |
| importStrutsValidation | boolean |
Whether to import Struts validation routines Default value is false. |
| includeTestSources | boolean |
If TestSources should be included in the compilable sources. If set, adds project.getTestSourceRoot() to the path
and defaults the classpathScope to test. Default value is false. |
| installDir | String |
The location of the Ounce client installation directory. Required if ounceauto is not on the path. |
| javaCompilerOptions | String |
Options to pass to the javac compiler. |
| jdkName | String |
JDK configuration known to Ounce Core. |
| pathVariableMap | Map |
Map of Ounce variable names and paths. pathVariableMap variables are automatically registered with Ounce by the Ounce/Maven plugin if the Ounce Automation Server is installed. |
| skipPoms | boolean |
If pom packaging projects should be skipped. Typically these will not have source code and should be excluded.
This is true by default because typically the application or projects will be created at a pom level and the poms
have no source to be analyzed Only set this if you have source in your "pom" packaging projects that needs to be
scanned. Default value is true. |
| webappDirectory | String |
The location of the web context root, if needed. |
booleanNo${ounce.analyzeStrutsFramework}falsejava.lang.StringNo${ounce.classpathScope}compilejava.lang.StringNo${ounce.core}ouncexmlbooleanNo${ounce.createVariables}truebooleanNo${ounce.importStrutsValidation}falsebooleanNo${ounce.includeTestSources}falsejava.lang.StringNo${ounce.installDir}java.lang.StringNo${ounce.javaCompilerOptions}java.lang.StringNo${ounce.jdkName}java.util.MapNobooleanNo${ounce.skipPoms}truejava.lang.StringNo${project.build.directory}/${project.build.finalName}