2012-09-11 11:15:26 +00:00
|
|
|
|
|
|
|
Building X4O
|
|
|
|
|
|
|
|
You need a few software packages;
|
2012-09-26 19:49:08 +00:00
|
|
|
- java 1.5 or higher.
|
2012-09-11 11:15:26 +00:00
|
|
|
- maven 3 or higher.
|
|
|
|
|
|
|
|
|
2012-09-26 19:49:08 +00:00
|
|
|
-- Run multi jvm test --
|
|
|
|
|
|
|
|
todo make maven like;
|
|
|
|
note2: this does need maven 3.0.3++ in 3.0.1 there is some java6 classes.
|
|
|
|
|
|
|
|
export JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64/;mvn clean test
|
|
|
|
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/;mvn clean test
|
|
|
|
export JAVA_HOME=/usr/lib/jvm/j2sdk1.6-oracle/;mvn clean test
|
|
|
|
export JAVA_HOME=/usr/lib/jvm/j2sdk1.7-oracle/;mvn clean test
|
|
|
|
export JAVA_HOME=/usr/lib/jvm/jdk1.5.0_22/;~/bin/mvn3/apache-maven-3.0.3/bin/mvn clean test
|
|
|
|
#not working;
|
|
|
|
#export JAVA_HOME=/usr/lib/jvm/java-1.5.0-gcj-4.7/;~/bin/mvn3/apache-maven-3.0.3/bin/mvn clean test
|
2012-09-11 11:15:26 +00:00
|
|
|
|
|
|
|
-- Create package --
|
|
|
|
|
|
|
|
cd project-root/;
|
|
|
|
mvn clean package;
|
|
|
|
|
|
|
|
|
|
|
|
-- Install local package --
|
|
|
|
|
|
|
|
cd project-root/;
|
|
|
|
mvn clean install;
|
|
|
|
|
|
|
|
|
|
|
|
-- Update schemas in src --
|
|
|
|
|
|
|
|
cd project-root/;
|
|
|
|
mvn clean install;
|
|
|
|
mvn -Pupdate-schema-cel package;
|
|
|
|
mvn -Pupdate-schema-eld package;
|
|
|
|
- Add the license as manual step in xsd files. (todo in ant task)
|
|
|
|
|
|
|
|
note: the do 'install' is because of circle plugins.
|
|
|
|
|
|
|
|
|
|
|
|
-- Make release build --
|
|
|
|
|
|
|
|
# todo make work
|
|
|
|
cd project-root/;
|
|
|
|
mvn clean package;
|
|
|
|
mvn -B -Dusername=<scm_username> clean install release:clean release:prepare release:perform;
|
|
|
|
src/build/gnu-up.sh <scm_username> <version>
|
|
|
|
|
|
|
|
|
|
|
|
-- Make site --
|
|
|
|
|
|
|
|
cd project-root/;
|
|
|
|
mvn -Psite-elddoc clean package site site:stage
|
|
|
|
|
|
|
|
|
|
|
|
-- Check for code style --
|
|
|
|
|
|
|
|
cd project-root/;
|
|
|
|
mvn checkstyle:checkstyle
|
|
|
|
|
|
|
|
|
|
|
|
-- Check for licenses --
|
|
|
|
|
|
|
|
cd project-root/;
|
|
|
|
mvn -Pcheck-license license:check
|
|
|
|
|
|
|
|
|
|
|
|
-- Check for versions-updates --
|
|
|
|
|
|
|
|
cd project-root/;
|
|
|
|
mvn versions:display-plugin-updates;
|
|
|
|
mvn versions:display-dependency-updates;
|
|
|
|
|
|
|
|
|