关于 IText{pdf}的 mvn building Q&A

office readme.txt

To build iText, maven must be installed. ( http://maven.apache.org/ )

Running install without a profile will generate the itextpdf jar. (mvn install)

When using the profile 'all' also the source and javadoc jars will be generated

( mvn install -P all )

If you are in need of the asian font jars. You can run one of the following com

ands:

    mvn clean install -f itext-asian.pom

    mvn clean install -f itext-asiancmaps.pom

If you need the hyphenation jar, execute:

    mvn clean install -f itext-hyph-xml.pom

~

but ……

if yo

mvn -e -X install # itext source path

 

u do like those advice step, there will be 7 failures:like

 

how to slove it:

when i analysis those information, i execute those statements belowe:

yum search surefire



yum install surefire-*-*



yum search ghostscript



yum install ghostscript

 but ahter i hava executed, the error's num can't be decrease!

so analysis, i execute this statement:

[developer@centos7 itext]$ whereis gs

gs: /usr/bin/gs /usr/share/man/man1/gs.1.gz



mvn -X -e install -DgsExec=/usr/bin/gs

你可能感兴趣的:(Build)