2015-06-19 15:26:29 +00:00
|
|
|
|
|
|
|
# TPQuery Building
|
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
|
|
|
* java sdk 1.8 or higher.
|
|
|
|
* maven 3 or higher.
|
2015-06-19 17:18:16 +00:00
|
|
|
* Commands are runned in project root folder.
|
2015-06-19 15:26:29 +00:00
|
|
|
|
2015-06-19 17:18:16 +00:00
|
|
|
## Tests
|
|
|
|
|
|
|
|
### Run tests normal
|
|
|
|
mvn clean test
|
2015-06-19 15:26:29 +00:00
|
|
|
|
2015-06-19 17:18:16 +00:00
|
|
|
### Run tests with jacoco
|
2015-06-19 18:30:26 +00:00
|
|
|
mvn -Ptest-jacoco clean test
|
2015-06-19 17:18:16 +00:00
|
|
|
|
|
|
|
## Create build artifacts
|
2015-06-19 18:30:26 +00:00
|
|
|
mvn -Pbuild clean package;
|
2015-06-19 15:26:29 +00:00
|
|
|
|
|
|
|
## Change pom.xml versions
|
|
|
|
mvn versions:set -DnewVersion=2.3.4-SNAPSHOT
|
|
|
|
|
|
|
|
## Make release build
|
2015-06-19 18:30:26 +00:00
|
|
|
mvn -Pbuild clean package;
|
2015-06-19 15:26:29 +00:00
|
|
|
mvn -B -Dusername=(scm_username) clean install release:clean release:prepare release:perform;
|
|
|
|
|
|
|
|
## Make site
|
2015-06-19 18:30:26 +00:00
|
|
|
mvn -Ptest-jacoco clean test
|
|
|
|
mvn -Pbuild-site site:site
|
2015-06-19 15:26:29 +00:00
|
|
|
|
|
|
|
Optional add -DstagingDirectory=/tmp/tpquery-build-fullsite
|
|
|
|
And then manual upload.
|
|
|
|
|
|
|
|
## Check for dependency-updates
|
|
|
|
mvn versions:display-plugin-updates|grep ">"|uniq;
|
|
|
|
mvn versions:display-dependency-updates|grep ">"|uniq;
|
|
|
|
|