The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

dakbari (34) [Avatar] Offline
#1
Hi,

I was trying to get the sources compiled but failed in step #3. I use Maven 2.0.2 (couldn't find Maven 2.0.1) and java version "1.5.0_06".

please see my screenshot for step 3:



Am I doing anything wrong?

Regards,
Darya
ceracm (113) [Avatar] Offline
#2
Re: Building the POJOs in Action examples - FAILED in step 3
My first guess is that somehow you are not using JDK 1.5
I would verify that maven (2.0.2 is fine) is really finding JDK 1.5
What does "java -version" display?

Chris
dakbari (34) [Avatar] Offline
#3
Re: Building the POJOs in Action examples - FAILED in step 3
Hi Chris,

here is my java -version output:

EsmilieROJECTSManningpia-1.0-SNAPSHOT>java -version

java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)

Regards,
Darya
ceracm (113) [Avatar] Offline
#4
Re: Building the POJOs in Action examples - FAILED in step 3
Hmmm... what is JAVA_HOME set to?
dakbari (34) [Avatar] Offline
#5
Re: Building the POJOs in Action examples - FAILED in step 3
You are right, I forgot to adapt the JAVA_HOME

Mine is JAVA_HOME=DsmilierogrammeSunJavaJ2SEj2sdk1.4.2_09

Thanks,
Darya
ceracm (113) [Avatar] Offline
#6
Re: Building the POJOs in Action examples - FAILED in step 3
Also, in the morning I will check that it builds ok against maven 2.0.2 - I just realized that I probably have only tested with 2.0.1.
dakbari (34) [Avatar] Offline
#7
Re: Building the POJOs in Action examples - FAILED in step 3
mvn install runs through.

I am off to work.

Godd Night smilie
Darya