build fails because ruby gem is unavailable

172 views
Skip to first unread message

Chris Gray

unread,
Feb 9, 2016, 9:11:14 AM2/9/16
to DSpace Technical Support
We are getting this error when trying to rebuild DSpace:

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal on project xmlui-mirage2: Could not resolve dependencies for project org.dspace.modules:xmlui-mirage2:war:5.1: Failure to find rubygems:rb-inotify:gem:0.9.6 in http://rubygems-proxy.torquebox.org/releases was cached in the local repository, resolution will not be reattempted until the update interval of rubygems-release has elapsed or updates are forced -> [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/DependencyResolutionException

[ERROR]

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :xmlui-mirage2

 

Looking at http://stackoverflow.com/questions/35270637/rb-inotify-0-9-6-gem-missing-from-rubygems-org there is a workaround suggested but the Mirage 2 and Maven configuration is a black box I hesitate to touch.

The same message now refers to rb-inotify:0.9.7 today.

Can someone provide DSpace Mirage 2 specific instructions for fixing this problem?

Hilton Gibson

unread,
Feb 9, 2016, 9:18:24 AM2/9/16
to Chris Gray, DSpace Technical Support
It seems DSpace has reached the "external dependency" hell that used to be a problem with RPM packages for Redhat.
Perhaps all dependencies should be distributed as part of the source code??

Just my 2c ;-)



Hilton Gibson
Stellenbosch University Library


--
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.
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.

Tom Desair

unread,
Feb 9, 2016, 10:29:58 AM2/9/16
to Hilton Gibson, Chris Gray, DSpace Technical Support
Hi Chris,

I think the best solution is to first install those dependencies locally and then building Mirage 2 with: mvn package -Dmirage2.on=true -Dmirage2.deps.included=false
The short version is:
curl https://raw.githubusercontent.com/creationix/nvm/v0.30.1/install.sh | sh
nvm install 5.4.0
nvm alias default 5.4.0
npm install -g bower
npm install -g grunt
npm install -g grunt-cli


curl -L https://get.rvm.io | bash -s stable
rvm autolibs disable
rvm install ruby
gem install compass



Best regards,
Tom

 
logo 
Tom Desair
250 Lucius Gordon Drive, Suite B-3A, West Henrietta, NY 14586
Esperantolaan 4, Heverlee 3001, Belgium
www.atmire.com 

sn...@buntblock.de

unread,
Feb 22, 2016, 3:30:09 AM2/22/16
to DSpace Technical Support
Reply all
Reply to author
Forward
0 new messages