2015-11-27 15:41:21 +00:00
KEMITIX-PARENT
==============
This Maven Parent POM several preconfigured plugins.
### Usage
#### Maven
< parent >
< groupId > net.kemitix< / groupId >
< artifactId > kemitix-parent< / artifactId >
2016-08-16 20:23:51 +01:00
< version > RELEASE< / version >
2015-11-27 15:41:21 +00:00
< / parent >
2016-08-16 20:24:20 +01:00
## Versions
If you want to override the version or configuration values of any of the
plugins configured by this parent, you can set the following properties to the
desired value.
2017-04-30 08:13:02 +01:00
* project.build.sourceEncoding
* project.reporting.outputEncoding
* kemitix.build.directory
2017-09-18 14:37:33 +01:00
* kemitix-quality-maven-plugin.version
2017-04-30 08:13:02 +01:00
* lombok.version
* maven-javadoc-plugin.version
* maven-source-plugin.version
* maven-gpg-plugin.version
* maven-deploy-plugin.version
* maven-compiler-plugin.version
* maven-surefire-plugin.version
* maven-failsafe-plugin.version
* maven-jxr-plugin.version
* java.version
2017-06-07 20:51:52 +01:00
* versions.version
2017-07-21 11:20:05 +01:00
* coveralls-maven-plugin.version
2016-08-16 20:24:20 +01:00
2017-09-18 14:37:33 +01:00
## Kemitix Quality
2015-11-27 15:41:21 +00:00
2017-09-18 14:37:33 +01:00
The [kemitix-quality-maven-plugin ](https://github.com/kemitix/kemitix-quality-maven-plugin )
provides several preconfigured quality related plugins.
2015-11-27 15:41:21 +00:00
2017-09-18 14:37:33 +01:00
N.B. The Kemitix Quality plugin required 100% code instruction coverage and mutation ratio. See the project page for details of adjusting these levels if needed.
2017-06-07 20:51:52 +01:00
2015-11-27 15:41:21 +00:00
## Maven Compiler Plugin
The [Maven Compiler Plugin ](https://maven.apache.org/plugins/maven-compiler-plugin/ )
compiles your sources.
### Configuration
Ref: [compile:compile ](https://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html )
* showDeprecation: true
* showWarnings: true
2017-06-07 20:51:52 +01:00
* source: ${java.version}
* target: ${java.version}
* encoding: ${project.build.sourceEncoding}
2015-11-27 15:41:21 +00:00
## Maven Surefire Plugin
The [Maven Surefire Plugin ](http://maven.apache.org/surefire/maven-surefire-plugin/index.html )
runs your Unit Tests.
### Configuration
No configuration applied beyond the defaults.
## Maven Failsafe Plugin
The [Maven Failsafe Plugin ](http://maven.apache.org/surefire/maven-failsafe-plugin/index.html )
runs your Integration Tests.
Runs its [integration-test ](http://maven.apache.org/surefire/maven-failsafe-plugin/integration-test-mojo.html )
goal during the `verify` phase.
### Configuration
No configuration applied beyond the defaults.
## Maven Source Plugin
The [Maven Source Plugin ](https://maven.apache.org/plugins/maven-source-plugin/ )
bundles your sources into a jar file ready for deployment.
2017-01-18 12:05:55 +00:00
Runs its [jar-no-fork ](https://maven.apache.org/plugins/maven-source-plugin/jar-no-fork-mojo.html )
2015-11-27 15:41:21 +00:00
goal during the `verify` phase.
### Configuration
No configuration applied beyond the defaults.
## Maven Javadoc Plugin
The [Maven Javadoc Plugin ](https://maven.apache.org/plugins/maven-javadoc-plugin/ )
generates your html javadocs and bundles them into a jar file ready for
deployment.
2017-01-18 12:05:55 +00:00
Runs its [jar ](https://maven.apache.org/plugins/maven-javadoc-plugin/jar-mojo.html )
2015-11-27 15:41:21 +00:00
goal during the `verify` phase.
### Configuration
No configuration applied beyond the defaults.
## Maven Deploy Plugin
The [Maven Deploy Plugin ](https://maven.apache.org/plugins/maven-deploy-plugin/ )
uploads your artifacts to a remote repository.
### Configuration
No configuration applied beyond the defaults.
## Maven JXR Plugin
The [Maven JXR Plugin ](http://maven.apache.org/jxr/maven-jxr-plugin/index.html )
produces cross-referenced HTML pages of your source code.
### Configuration
No configuration applied beyond the defaults.
2017-07-21 11:20:05 +01:00
## Coveralls
The [Coveralls Maven Plugin ](https://github.com/trautonen/coveralls-maven-plugin )
publishes coverage data to coveralls.io.
### Configuration
The plugin is not configured to run automatically. It must be initiated manually:
```shell
mvn -P release test jacoco:report coveralls:report
```
#### Requirements
In order to use the plugin:
* *must* enable the `release` profile
2015-11-27 15:41:21 +00:00
# Distribution Management
Remote repositories are provided for the Sonatype Nexus Snapshots and Nexus Release
Repositories. See the [OSSRH Guide ](http://central.sonatype.org/pages/ossrh-guide.html )
for information on how to deploy your artifact the Maven Central through
Sonatype.
2016-02-09 16:40:31 +00:00
### Changing the Build Directory
If you want to change the build directory, e.g. from your settings.xml to an SSD
or ram drive, then set the value of the `kemitix.build.directory` to your required
locations. e.g.
`< properties >
< kemitix.build.directory > /mnt/ramdrive/${project.groupId}/${project.artifactId}< / kemitix.build.directory >
< / properties > `