2015-05-13 13:49:42 -04:00
|
|
|
# Building
|
|
|
|
|
|
|
|
We use Apache Maven to build the code, docs, distribution, etc. and to manage dependencies.
|
|
|
|
|
|
|
|
The minimum required Maven version is 3.0.0.
|
|
|
|
|
|
|
|
Note that there are some [compatibility issues with Maven 3.X](https://cwiki.apache.org/confluence/display/MAVEN/Maven+3.x+Compatibility+Notes)
|
|
|
|
still unsolved. This is specially true for the ['site' plugin](https://maven.apache.org/plugins-archives/maven-site-plugin-3.3/maven-3.html).
|
|
|
|
|
|
|
|
## Full Release
|
|
|
|
|
2016-01-19 06:46:45 -05:00
|
|
|
#### Upgrading the `gitbook` version and regenerating the `npm-shrinkwrap.json` file
|
|
|
|
The full release uses `gitbook` to build a static website from the documentation. This is automatically installed using
|
2016-07-28 11:14:35 -04:00
|
|
|
an `NPM` plugin and is controlled via a package.json file.
|
2015-05-13 13:49:42 -04:00
|
|
|
|
2016-01-19 06:46:45 -05:00
|
|
|
Install `NPM` using the instructions below
|
2015-05-13 13:49:42 -04:00
|
|
|
|
2016-01-19 06:46:45 -05:00
|
|
|
cd artemis-website
|
|
|
|
alter the `package.json` changing the version
|
|
|
|
npm cache clean; rm -rf ./node_modules/ ./node npm-shrinkwrap.json
|
|
|
|
npm install --save-dev
|
|
|
|
npm shrinkwrap --dev
|
|
|
|
|
|
|
|
The new npm-shrinkwrap.json should be written, commit it.
|
2015-05-13 13:49:42 -04:00
|
|
|
|
2016-06-27 18:19:52 -04:00
|
|
|
### gitbook
|
|
|
|
|
|
|
|
Artemis will automate the execution and download of npm. But it may be useful to install it on your system. Simply type:
|
|
|
|
|
|
|
|
$ npm install -g gitbook gitbook-cli
|
|
|
|
|
|
|
|
If you don't have `npm` installed then you would need to install it first.
|
|
|
|
|
2015-05-13 13:49:42 -04:00
|
|
|
#### Install npm On Fedora
|
|
|
|
|
|
|
|
$ yum install npm
|
|
|
|
|
2016-06-27 18:19:52 -04:00
|
|
|
#### Install npm On Fedora 24
|
|
|
|
|
|
|
|
This is what you should do if you are using Fedora 24+.
|
|
|
|
|
|
|
|
$ dnf install nodejs
|
|
|
|
|
2015-05-13 13:49:42 -04:00
|
|
|
#### Install npm On Mac-OS
|
|
|
|
|
|
|
|
The easiest way would be through brew [brew]
|
|
|
|
|
|
|
|
You first install brew using the instructions on the [brew] website.
|
|
|
|
|
|
|
|
After you installed brew you can install npm by:
|
|
|
|
|
|
|
|
brew install npm
|
|
|
|
|
|
|
|
[brew]: <http://brew.sh>
|
|
|
|
|
|
|
|
To build the full release with documentation, Javadocs, and the full web site:
|
|
|
|
|
|
|
|
$ mvn -Prelease package
|
|
|
|
|
|
|
|
To install it to your local maven repo:
|
|
|
|
|
|
|
|
$ mvn -Prelease install
|
|
|
|
|
|
|
|
## Build the distribution without docs
|
|
|
|
|
2016-06-27 18:19:52 -04:00
|
|
|
It is possible to build a distribution without the manuals and Javadocs.
|
2015-05-13 13:49:42 -04:00
|
|
|
simply run
|
|
|
|
|
2016-01-19 06:46:45 -05:00
|
|
|
$ mvn package
|