-
-
Save alanorth/b71a458e9b83c3a8015a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install xpdf | |
# jai-imageio (32/64 bit doesn't matter because we only need the jar inside) | |
cd ~/src | |
wget http://download.java.net/media/jai-imageio/builds/release/1.1/jai_imageio-1_1-lib-linux-i586.tar.gz | |
tar zxf jai_imageio-1_1-lib-linux-i586.tar.gz | |
mvn install:install-file -Dfile=jai_imageio-1_1/lib/jai_imageio.jar -DgroupId=com.sun.media -DartifactId=jai_imageio -Dversion=1.0_01 -Dpackaging=jar -DgeneratePom=true | |
wget https://m2.duraspace.org/content/repositories/thirdparty/org/fcrepo/jai_core/1.1.2_01/jai_core-1.1.2_01.jar | |
mvn install:install-file -DgroupId=javax.media -DartifactId=jai_core -Dversion=1.1.2_01 -Dpackaging=jar -Dfile=jai_core-1.1.2_01.jar | |
cd ~/src/git/DSpace | |
mvn -U -Pxpdf-mediafilter-support clean package | |
cd dspace/target/dspace-3.1-build | |
ant update clean_backups | |
# Force a new thumbnail for something which has a PDF bitstream | |
/home/dspace/bin/dspace filter-media -v -i 123456789/29097 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment