DSPACE 5.1 Could not find artifact com.sun.media:jai_imageio:jar:1.0_01 in sonatype-releases

321 views
Skip to first unread message

Michelangelo Viana

unread,
Oct 17, 2016, 12:38:24 PM10/17/16
to DSpace Technical Support
Hi friends,

We have a DSPACE 5.1 installation, at http://delfosdigital.pucrs.br
Today I made some new customizations (CSS basically) and tried to rebuild it, but unsuccessfully:
- when running the mvn, I always get this error:

[ERROR] Failed to execute goal on project additions: Could not resolve dependencies for project org.dspace.modules:additions:jar:5.1: The following artifacts could not be resolved: com.sun.media:jai_imageio:jar:1.0_01, javax.media:jai_core:jar:1.1.2_01: Could not find artifact com.sun.media:jai_imageio:jar:1.0_01 in sonatype-releases (https://oss.sonatype.org/content/repositories/releases/), try downloading from http://java.sun.com/products/java-media/jai/downloads/download-iio-1_0_01.html -> [Help 1]

As I suppose, mvn can not find anymore jai_imageio-1.0_01.jar in any of searched repositories...
Does someone of you tell me how to fix it?
Saw that this JAR is available at https://mvnrepository.com/artifact/com.sun.media/jai_imageio/1.0_01 

See all log lines related to the error bellow (and the complete rebuild log attached):

[INFO] ------------------------------------------------------------------------
[INFO] Building DSpace Kernel :: Additions and Local Customizations 5.1
[INFO] ------------------------------------------------------------------------
Downloading: https://oss.sonatype.org/content/repositories/releases/org/dspace/dspace-api-lang/maven-metadata.xml
Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/dspace/dspace-api-lang/maven-metadata.xml
Downloading: https://repo.maven.apache.org/maven2/org/dspace/dspace-api-lang/maven-metadata.xml
Downloading: http://maven.restlet.org/org/dspace/dspace-api-lang/maven-metadata.xml
Downloaded: https://repo.maven.apache.org/maven2/org/dspace/dspace-api-lang/maven-metadata.xml (2 KB at 0.9 KB/sec)
Downloaded: https://oss.sonatype.org/content/repositories/snapshots/org/dspace/dspace-api-lang/maven-metadata.xml (366 B at 0.2 KB/sec)
Downloaded: https://oss.sonatype.org/content/repositories/releases/org/dspace/dspace-api-lang/maven-metadata.xml (2 KB at 0.8 KB/sec)
Downloading: https://oss.sonatype.org/content/repositories/releases/com/sun/media/jai_imageio/1.0_01/jai_imageio-1.0_01.jar
Downloading: https://oss.sonatype.org/content/repositories/releases/javax/media/jai_core/1.1.2_01/jai_core-1.1.2_01.jar
Downloading: http://maven.restlet.org/com/sun/media/jai_imageio/1.0_01/jai_imageio-1.0_01.jar
Downloading: http://maven.restlet.org/javax/media/jai_core/1.1.2_01/jai_core-1.1.2_01.jar
Downloading: https://repo.maven.apache.org/maven2/com/sun/media/jai_imageio/1.0_01/jai_imageio-1.0_01.jar
Downloading: https://repo.maven.apache.org/maven2/javax/media/jai_core/1.1.2_01/jai_core-1.1.2_01.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] DSpace Addon Modules ............................... SUCCESS [  1.841 s]
[INFO] DSpace Kernel :: Additions and Local Customizations  FAILURE [  5.654 s]
[INFO] DSpace XML-UI (Manakin) :: Local Customizations .... SKIPPED
[INFO] DSpace JSP-UI :: Local Customizations .............. SKIPPED
[INFO] DSpace RDF :: Local Customizations ................. SKIPPED
[INFO] DSpace REST :: Local Customizations ................ SKIPPED
[INFO] DSpace SWORD :: Local Customizations ............... SKIPPED
[INFO] DSpace SWORD v2 :: Local Customizations ............ SKIPPED
[INFO] DSpace SOLR :: Local Customizations ................ SKIPPED
[INFO] DSpace OAI-PMH :: Local Customizations ............. SKIPPED
[INFO] DSpace Assembly and Configuration .................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.133 s
[INFO] Finished at: 2016-10-17T13:04:31-02:00
[INFO] Final Memory: 21M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project additions: Could not resolve dependencies for project org.dspace.modules:additions:jar:5.1: The following artifacts could not be resolved: com.sun.media:jai_imageio:jar:1.0_01, javax.media:jai_core:jar:1.1.2_01: Could not find artifact com.sun.media:jai_imageio:jar:1.0_01 in sonatype-releases (https://oss.sonatype.org/content/repositories/releases/), try downloading from http://java.sun.com/products/java-media/jai/downloads/download-iio-1_0_01.html -> [Help 1]


Thanks in advance for any instruction / clue.

Michelangelo

Michelângelo Mazzardo Marques Viana
Systems Coordinator Librarian | CRB-10/1306
Biblioteca Central Irmão José Otão
Pontifical Catholic University of Rio Grande do Sul - PUCRS
Porto Alegre, RS, Brazil


rebuild_log_dspace_51.txt

helix84

unread,
Oct 17, 2016, 12:44:04 PM10/17/16
to Michelangelo Viana, DSpace Technical Support
Please, refer to the documentation about XPDF:




Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Luiz dos Santos

unread,
Oct 17, 2016, 1:00:07 PM10/17/16
to Ivan Masár, Michelangelo Viana, DSpace Technical Support
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/

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to dspac...@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Michelangelo Viana

unread,
Oct 17, 2016, 2:21:59 PM10/17/16
to DSpace Technical Support, hel...@centrum.sk, mvia...@gmail.com
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> wrote:
Please, refer to the documentation about XPDF:




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.

Luiz dos Santos

unread,
Oct 17, 2016, 2:26:27 PM10/17/16
to Michelangelo Viana, DSpace Technical Support, Ivan Masár
All right! Good to know..

best regards

Luiz Claudio Santos
http://luizclaudiosantos.me/

Luiz Claudio Santos
http://luizclaudiosantos.me/

To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages