domingo, 24 de agosto de 2014

Pivot4J, how to build it

Hi,
Pivot4J is a awesome JSF project (I'm in love by JSF).

So I decide it to start it looking to it, 1st thing is to build it:


1. OS

My OS is Linux Ubuntu 12.04, others I will not look at it.

2. Building system

To build Pivot 4j we need maven 3.

How to install Maven3 in Linux Ubuntu 12.04:
  • sudo mkdir -p /usr/local/apache-maven
  • sudo mv apache-maven-3.2.3-bin.tar.gz /usr/local/apache-maven
  • cd /usr/local/apache-maven
  • sudo tar -xzvf apache-maven-3.2.3-bin.tar.gz

Now that Maven is installed configure the mvn3 for default maven:
  • put env variables on ~/.profile or set the vars:
export M2_HOME=/usr/local/apache-maven/apache-maven-3.2.3
export M2=$M2_HOME/bin
export MAVEN_OPTS="-Xms256m -Xmx512m"
export PATH=$M2:$PATH

3. Java

 To build it i used java 8. To install it make:

  • enter Java 8 PPA 
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
  • install the Java
    sudo apt-get install oracle-java7-installer
or    
 sudo apt-get install oracle-java8-installer
 (will not work)
    sudo apt-get install oracle-java6-installer

  • now set the default java 
 sudo update-alternatives --config java
  • set the default javac
sudo update-alternatives --config javac

  •  java will be but you have to set JAVA_HOME for maven build
export JAVA_HOME=/usr/lib/jvm/java-8-oracle/jre

4. GIT

  •  install git on ubuntu
sudo apt-get install git-core 
  • mode info check http://www.vogella.com/articles/Git/article.html

4.1 Get Source 

Get source from GIT
  • git clone https://github.com/mysticfall/pivot4j.git ~/workspace/SANDBOX/pivot4j

5. Build it


  • cd ~/workspace/SANDBOX/pivot4j
  • mvn clean compile install 
output shall be:

[INFO] Reactor Summary:
[INFO]
[INFO] Pivot4J ............................................ SUCCESS [  0.566 s]
[INFO] Pivot4J Core ....................................... SUCCESS [02:01 min]
[INFO] Pivot4J Analytics .................................. SUCCESS [ 38.479 s]
[INFO] Pivot4J Pentaho .................................... SUCCESS [ 17.466 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------



6. Questions

This blog is just for fun, any questions please goto pivot4j forum:
https://groups.google.com/forum/#!forum/pivot4j-list

best,
tecbea


Java Obfuscate Properties

Hi there how many times we have fuckin stupid commentaries of , hey the code has a password... bullshit you can always get the password... ...