Hi,
I am trying to build pdfbox 1.7.1 using maven 2 and getting some
MojoFailureException
I have followed the instruction as given in following website [
http://pdfbox.apache.org/userguide/building_pdfbox.html]


Here is how try to build and what type of information came on my
screen.---------------------------------------------

C:\Users\Prakash Kumar\Desktop\pdfbox-1.7.1>mvn clean install
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] PDFBox parent
[INFO] Apache FontBox
[INFO] Apache JempBox
[INFO] Apache PDFBox
[INFO] Apache PDFBox for Lucene
[INFO] Apache PDFBox for Ant
[INFO] Apache PDFBox webapp
[INFO] Apache PDFBox application
[INFO] Apache PDFBox examples
[INFO] PDFBox reactor
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building PDFBox parent 1.7.1
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ pdfbox-parent
---
[INFO] Deleting C:\Users\Prakash Kumar\Desktop\pdfbox-1.7.1\parent\target
[INFO]
[INFO] --- maven-remote-resources-plugin:1.2.1:process (default) @
pdfbox-parent ---
[INFO]
[INFO] --- maven-site-plugin:3.0:attach-descriptor (attach-descriptor) @
pdfbox-parent ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @
pdfbox-parent ---
[INFO] Installing C:\Users\Prakash
Kumar\Desktop\pdfbox-1.7.1\parent\pom.xml to C:\Users\Prakash
Kumar\.m2\repository\org\apache\pdfbox\pdfbox-parent\1.7.1\pdfbox-parent-
1.7.1.pom
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building Apache FontBox 1.7.1
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ fontbox ---
[INFO] Deleting C:\Users\Prakash Kumar\Desktop\pdfbox-1.7.1\fontbox\target
[INFO]
[INFO] --- maven-remote-resources-plugin:1.2.1:process (default) @ fontbox
---
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
fontbox ---
[debug] execute contextualize
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\Prakash
Kumar\Desktop\pdfbox-1.7.1\fontbox\src\main\resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ fontbox
---
[INFO] Compiling 72 source files to C:\Users\Prakash
Kumar\Desktop\pdfbox-1.7.1\fontbox\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Unable to locate the Javac Compiler in:
  C:\Program Files\Java\jre6\..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] PDFBox parent ..................................... SUCCESS [1.408s]
[INFO] Apache FontBox .................................... FAILURE [0.770s]
[INFO] Apache JempBox .................................... SKIPPED
[INFO] Apache PDFBox ..................................... SKIPPED
[INFO] Apache PDFBox for Lucene .......................... SKIPPED
[INFO] Apache PDFBox for Ant ............................. SKIPPED
[INFO] Apache PDFBox webapp .............................. SKIPPED
[INFO] Apache PDFBox application ......................... SKIPPED
[INFO] Apache PDFBox examples ............................ SKIPPED
[INFO] PDFBox reactor .................................... SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3.260s
[INFO] Finished at: Fri Jan 11 20:32:22 IST 2013
[INFO] Final Memory: 20M/184M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project fontbox: Compilation failure
[ERROR] Unable to locate the Javac Compiler in:
[ERROR] C:\Program Files\Java\jre6\..\lib\tools.jar
[ERROR] Please ensure you are using JDK 1.4 or above and
[ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
[ERROR] In most cases you can change the location of your Java
[ERROR] installation by setting the JAVA_HOME environment variable.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn <goals> -rf :fontbox

Reply via email to