segunda-feira, 25 de agosto de 2014

Pivot4J , Part II , the IDE

Hi,
as as continuation part of older post on Pivot4J, here is the path to put it working with a IDE:

1.  Java

First thing first, make sure that Java is version 8.
  sudo update-alternatives --config java
  sudo update-alternatives --config javac

2. Eclipse

I prefer eclipse personally, maybe lazyness.

Install eclipse from  http://www.eclipse.org/downloads/,  choose version 4.4 for EE developers. This version shall have  M2E version 1.5.

Than to start eclipse goto path (your installation path ) like ~/eclipse, than start ecplise:
     ./eclipse 

3. Import project to eclipse

Choose  File- > import -> existing mvn projects , than choose the path /pivot4j
 It will appear 1x pom that will import 3x child projects.

4. Issues on m2e

Like reported by Xavier  goto  ‘Problems’ view, and right click to choose ‘Quick Fix’ menu. It will show alternative methods to resolve the problem,  choose ‘Mark goal XXX as ignored in Eclipse build in Eclipse preferences (experimental)’.

5. How to change resources language

 Resource language for eclipse is a help.

Goto eclipse -> help -> install new sw
than choose add button and fill:

   name: ResourceBundle Editor
   link    : https://raw.githubusercontent.com/essiembre/eclipse-rbe/master/eclipse-rbe-update-site/site.xml
Wait AND CLICK ResourceBundle Editor -> next -> next -> accept license -> restart eclipse

That's it,
tecbea








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... ...