x4o/build.txt
2013-04-14 21:59:26 +02:00

87 lines
2 KiB
Plaintext

Building X4O
You need a few software packages;
- java 1.5 or higher.
- maven 3 or higher.
-- 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
-- Create package --
cd project-root/;
mvn clean package;
-- Install local package --
cd project-root/;
mvn clean install;
-- Update schemas in src --
-- note; rm after auto schema creation
cd project-root/;
mvn clean install;
mvn -Pant-update-schema-cel package;
mvn -Pant-update-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/main/build/gnu-up.sh <scm_username> <version>
-- Make site --
cd project-root/;
MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=128m" mvn -Pbuild-site-x4o-support 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;
-- Run x4o-plugin-maven from cmd --
cd project-root/;
mvn clean install;
mvn org.x4o.plugin:x4o-plugin-maven:help
mvn org.x4o.plugin:x4o-plugin-maven:write-language-doc -DoutputDirectory=/tmp/doc1
mvn org.x4o.plugin:x4o-plugin-maven:write-language-doc -DoutputDirectory=/tmp/doc2 -Dlanguages={eld=ALL,swixml=1.0-2.0} -Dverbose=true