KwmavenThe kwmaven command creates a Java build specification based on the information in your maven build file. PrerequisitesBefore you can create a build specification, you need to:
For how-to information, see Creating a Java build specification. Usagekwmaven <maven_options> where <maven_options> are any arguments required for your maven build Options
File exclusion with kwmavenIf you wish to make use of file exclusion or inclusion with kwmaven, it can be run with the --manual-integration option. In every Project Object Model (POM), there must be a plugin section for the maven-compiler-plugin and, in this section, dependency on the kwmaven plugin has to be specified. For example:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <useIncrementalCompilation>false</useIncrementalCompilation> <excludes> <exclude>**/Ignore.java</exclude> </excludes> </configuration> </plugin>becomes this: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <useIncrementalCompilation>false</useIncrementalCompilation> <excludes> <exclude>**/Ignore.java</exclude> </excludes> </configuration> <dependencies> <dependency> <groupId>com.klocwork</groupId> <artifactId>kwmaven</artifactId> <version>10.4.0.1577</version> </dependency> </dependencies> </plugin> Note: The dependency does not interfere with the native build.
If you are getting memory errors while running kwmaven with file exclusion, there are two possible workarounds to resolve this issue:
|