Hi helix!
Thanks to guide me to the right point! 
Problem fixed!

Java Advanced Imaging Image I/O Tools already was installed on DSPACE 5.1 
server, in: /usr/local/jai_imageio-1_1/lib/jai_imageio.jar
I installed it in the past (2015) and made manual settings in dspace.cfg to 
enable XPDF, by copying these settings from another DSPACE 4.2 that used it 
before.
Thus, to correct the lack of JAR files during the mvn build on DSPACE 5.1, 
was enough following these steps:
1) Install jai_imageio-1_1/lib/jai_imageio.jar in server's local Maven 
repository;
2) Install jai_core.jar library in server's local Maven repository; 
After this, the DSPACE rebuild was successful.

Luiz,

I think that in the past mvn was able to download the libraries from 
sonatype, but not anymore now (maybe since last quarter of 2015).
See this comment from Joel Orlina on 09/24/15 11:08 PM 
(https://issues.sonatype.org/browse/MVNCENTRAL-839):
"The is no formal relationship between Maven Central and mvnrepository.com, 
so I can't speak to the accuracy of their contents. That being said, I 
don't believe jars for these artifacts are supposed to be available on 
Maven Central. There are no jars for the other artifacts under the 
com.sun.media groupId. And, if you inspect the POMs, you'll see a 
distributionManagement element specifying the download URL for the 
binaries. This is the case for many older Sun artifacts, which had 
licensing prohibiting their distribution anywhere other than an official 
Sun website."

----

Commands executed to loccally install the libraries, for the record:

[root@poa01rdd01 dspace]#ls -altr 
/usr/local/jai_imageio-1_1/lib/jai_imageio.jar
-rw-r--r-- 1 root root 1140632 Oct 13  2006 
/usr/local/jai_imageio-1_1/lib/jai_imageio.jar
[root@poa01rdd01 dspace]# cd /usr/local/
[root@poa01rdd01 local]# 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
[INFO] Scanning for projects...
[INFO]
[INFO] 
------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] 
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ 
standalone-pom ---
[INFO] Installing /usr/local/jai_imageio-1_1/lib/jai_imageio.jar to 
/root/.m2/repository/com/sun/media/jai_imageio/1.0_01/jai_imageio-1.0_01.jar
[INFO] Installing /tmp/mvninstall8544413325966891323.pom to 
/root/.m2/repository/com/sun/media/jai_imageio/1.0_01/jai_imageio-1.0_01.pom
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 0.828 s
[INFO] Finished at: 2016-10-17T15:02:22-02:00
[INFO] Final Memory: 8M/309M
[INFO] 
------------------------------------------------------------------------
[root@poa01rdd01 local]#
[root@poa01rdd01 dspace]# ls -altr /usr/local/jai_core-1.1.2_01.jar
-rwxrwxr-x 1 root root 1576549 Mar 14  2013 /usr/local/jai_core-1.1.2_01.jar
[root@poa01rdd01 dspace]# cd /usr/local/
[root@poa01rdd01 local]# mvn install:install-file 
-Dfile=jai_core-1.1.2_01.jar  \
>     -DgroupId=javax.media -DartifactId=jai_core -Dversion=1.1.2_01 
-Dpackaging=jar -DgeneratePom=true
[INFO] Scanning for projects...
[INFO]
[INFO] 
------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] 
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ 
standalone-pom ---
[INFO] Installing /usr/local/jai_core-1.1.2_01.jar to 
/root/.m2/repository/javax/media/jai_core/1.1.2_01/jai_core-1.1.2_01.jar
[INFO] Installing /tmp/mvninstall2463166783100324244.pom to 
/root/.m2/repository/javax/media/jai_core/1.1.2_01/jai_core-1.1.2_01.pom
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 0.696 s
[INFO] Finished at: 2016-10-17T15:02:45-02:00
[INFO] Final Memory: 7M/245M
[INFO] 
------------------------------------------------------------------------

Best Regards!
Michelangelo


Em segunda-feira, 17 de outubro de 2016 15:00:07 UTC-2, Luiz dos Santos 
escreveu:
>
> Hi Michelangelo
>
>     I didn't understand why you was able to build it before and now he 
> have to put the jar manually in the repository again, as it is in the page 
> that Ivan shared with us. Did you manually delete the .m2 directory? Did 
> you change the configuration file to use xpdf now, it was something that 
> you did not setup before?
>
> Best regards
> Luiz
>
> Luiz Claudio Santos
> http://luizclaudiosantos.me/
>
> On Mon, Oct 17, 2016 at 12:43 PM, helix84 <hel...@centrum.sk <javascript:>
> > wrote:
>
>> Please, refer to the documentation about XPDF:
>>
>>
>> https://wiki.duraspace.org/display/DSDOC5x/Configuration+Reference#ConfigurationReference-XPDFFilter
>>
>>
>>
>> Regards,
>> ~~helix84
>>
>> Compulsory reading: DSpace Mailing List Etiquette
>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "DSpace Technical Support" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to dspace-tech...@googlegroups.com <javascript:>.
>> To post to this group, send email to dspac...@googlegroups.com 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/dspace-tech.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to