[Dspace-tech] Mirage2 build problem

89 views
Skip to first unread message

Germán Biozzoli

unread,
Aug 26, 2015, 1:38:38 PM8/26/15
to DSpace techlist techlist, dspace-...@lists.sourceforge.net
Hi everybody

I'm guessing if somebody has succesfully compiled DSpace using mirage2 from git master. I'm compiling with the option

mvn package -Dmirage2.on=true

After a lot of time the build finishes OK, the ant deployment also, and in general DSpace works OK using previous Mirage theme. When I try to use Mirage 2, appears some kind of error message in the browser

Error File to import not found or unreadeable:
../vendor/bootstrap-sass-oficial/assets/style/bootstrap

Load path:

Compass::SpriteImporter
    <paths>

and after that a blank Dspace home, without any style. The strange thing is that the paths that are shown refer to the build location. It looks like finally could not build entirely OK the theme isn't it?

Any help to solve this issue?

Regards & thanks
German

Germán Biozzoli

unread,
Aug 26, 2015, 1:38:39 PM8/26/15
to Hilton Gibson, DSpace techlist techlist, dspace-...@lists.sourceforge.net
Hi Hilton

I've tried with a fresh Ubuntu14 following your instructions, but it first has shown a problem with a GEM_HOME env setting, once solved appears again this problem:
....

[INFO] Processing as HTML - scripts-dist.xml
[INFO] Update the HTML to reference our concat/min/revved script files
[INFO] Update the HTML with the new css filenames
[INFO] Update the HTML with the new img filenames
[INFO] Update the HTML with data-main tags
[INFO] Update the HTML with data-* tags
[INFO] Update the HTML with background imgs, case there is some inline style
[INFO] Update the HTML with anchors images
[INFO] Update the HTML with reference in input
[INFO] 
[INFO] Done, without errors.
[INFO] ------ (Mirage2) de.saumya.mojo:gem-maven-plugin:1.0.6:exec
[INFO] [31m    error [0m styles/main.scss (Line 16: File to import not found or unreadable: ../vendor/bootstrap-sass-official/assets/stylesheets/bootstrap.
[INFO] Load paths:
[INFO]   Compass::SpriteImporter
[INFO]   /home/germanb/Dspace/dspace/modules/xmlui-mirage2/target/themes/Mirage2/styles
[INFO]   /home/germanb/Dspace/dspace/modules/xmlui-mirage2/target/rubygems/gems/compass-core-1.0.1/stylesheets)
[INFO] [31mCompilation failed in 1 files.
[WARNING] [31m [0m
[INFO] [0m
[ERROR] PluginManagerException:
org.apache.maven.plugin.PluginExecutionException: Execution null of goal de.saumya.mojo:gem-maven-plugin:1.0.6:exec failed: Java returned: 1
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
at com.soebes.maven.plugins.iterator.ExecutorMojo.executeMojo(ExecutorMojo.java:302)
at com.soebes.maven.plugins.iterator.ExecutorMojo.execute(ExecutorMojo.java:235)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org

....

Any hint?

Thanks a lot
German


2014-11-01 6:57 GMT-03:00 Hilton Gibson <hilton...@gmail.com>:

Hilton Gibson
Ubuntu Linux Systems Administrator
JS Gericke Library
Room 1025C
Stellenbosch University
Private Bag X5036
Stellenbosch
7599
South Africa


------------------------------------------------------------------------------

_______________________________________________
DSpace-tech mailing list
DSpac...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


TAYLOR Robin

unread,
Aug 26, 2015, 1:38:48 PM8/26/15
to Germán Biozzoli, Hilton Gibson, DSpace techlist techlist, dspace-...@lists.sourceforge.net

Hi German,


I think your problem might lie in the file ../dspace-xmlui-mirage2/src/main/webapp/styles/bootstrap_color_scheme/_main.scss. If you compare yours with the one in the current DSpace master branch

https://github.com/DSpace/DSpace/blob/master/dspace-xmlui-mirage2/src/main/webapp/styles/bootstrap_color_scheme/_main.scss I think you might see that the path to 'bootstrap' has changed. Unfortunately this was beyond our control, the Bootstrap maintainers moved it.


Cheers, Robin.

 

DSpace/_main.scss at master · DSpace/DSpace · GitHub
(Official) The DSpace digital asset management system that powers your Institutional Repository


Robin Taylor
Main Library
University of Edinburgh

From: Germán Biozzoli <germanb...@gmail.com>
Sent: 01 November 2014 20:21
To: Hilton Gibson; DSpace techlist techlist; dspace-...@lists.sourceforge.net
Subject: Re: [Dspace-tech] Mirage2 build problem
 

Germán Biozzoli

unread,
Aug 26, 2015, 1:38:50 PM8/26/15
to TAYLOR Robin, DSpace techlist techlist, dspace-...@lists.sourceforge.net
Thank you very much Robin, but as far as I can see the paths included in this file are the same.
In fact I've tried with a completely new install and checking out from git master few days ago. 

To be precise, the output of maven is the following:

 concat:
[INFO]   { generated: 
[INFO]    { files: 
[INFO]       [ { dest: '.tmp/concat/scripts/theme.js',
[INFO]           src: 
[INFO]            [ 'vendor/jquery/jquery.min.js',
[INFO]              'vendor/jquery-ui/ui/jquery.ui.core.js',
[INFO]              'vendor/jquery-ui/ui/jquery.ui.datepicker.js',
[INFO]              'vendor/handlebars/handlebars.js',
[INFO]              'vendor/holderjs/holder.js',
[INFO]              'vendor/bootstrap-sass-official/assets/javascripts/bootstrap/affix.js',
[INFO]              'vendor/bootstrap-sass-official/assets/javascripts/bootstrap/alert.js',
[INFO]              'vendor/bootstrap-sass-official/assets/javascripts/bootstrap/button.js',
[INFO]              'vendor/bootstrap-sass-official/assets/javascripts/bootstrap/carousel.js',
[INFO]              'vendor/bootstrap-sass-official/assets/javascripts/bootstrap/collapse.js',
[INFO]              'vendor/bootstrap-sass-official/assets/javascripts/bootstrap/dropdown.js',
[INFO]              'vendor/bootstrap-sass-official/assets/javascripts/bootstrap/modal.js',
[INFO]              'vendor/bootstrap-sass-official/assets/javascripts/bootstrap/scrollspy.js',
[INFO]              'vendor/bootstrap-sass-official/assets/javascripts/bootstrap/tab.js',
[INFO]              'vendor/bootstrap-sass-official/assets/javascripts/bootstrap/tooltip.js',
[INFO]              'vendor/bootstrap-sass-official/assets/javascripts/bootstrap/popover.js',
[INFO]              'vendor/bootstrap-sass-official/assets/javascripts/bootstrap/transition.js',
[INFO]              'scripts/utils.js',
[INFO]              'scripts/search-controls.js',
[INFO]              'scripts/sidebar.js',
[INFO]              'scripts/community-list.js',
[INFO]              'scripts/browse.js',
[INFO]              'scripts/choice-support.js',
[INFO]              'scripts/vocabulary-support.js',
[INFO]              'scripts/access-form-util.js',
[INFO]              'scripts/forms.js',
[INFO]              'scripts/vendor-extensions.js',
[INFO]              'scripts/google-stats-dates.js',
[INFO]              'scripts/templates.js',
[INFO]              'vendor/datatables/media/js/jquery.dataTables.js',
[INFO]              'scripts/person-lookup.js' ] } ] } }
[INFO] 
[INFO]   uglify:
[INFO]   { generated: 
[INFO]    { files: 
[INFO]       [ { dest: 'scripts/theme.js',
[INFO]           src: [ '.tmp/concat/scripts/theme.js' ] } ] } }
[INFO] 
[INFO]   cssmin:
[INFO]   {}
[INFO] 
[INFO] Running "concat:generated" (concat) task
[INFO] File ".tmp/concat/scripts/theme.js" created.
[INFO] 
[INFO] Running "uglify:generated" (uglify) task
[INFO] File scripts/theme.js created: 80.14 kB → 33.36 kB
[INFO] 
[INFO] Running "usemin:html" (usemin) task
[INFO] 
[INFO] Processing as HTML - scripts-dist.xml
[INFO] Update the HTML to reference our concat/min/revved script files
[INFO] Update the HTML with the new css filenames
[INFO] Update the HTML with the new img filenames
[INFO] Update the HTML with data-main tags
[INFO] Update the HTML with data-* tags
[INFO] Update the HTML with background imgs, case there is some inline style
[INFO] Update the HTML with anchors images
[INFO] Update the HTML with reference in input
[INFO] 
[INFO] Done, without errors.
[INFO] ------ (Mirage2) de.saumya.mojo:gem-maven-plugin:1.0.6:exec
INFO] [31m    error [0m styles/main.scss (Line 16: File to import not found or unreadable: ../vendor/bootstrap-sass-official/assets/stylesheets/bootstrap.
[INFO] Load paths:
[INFO]   Compass::SpriteImporter
[INFO]   /home/germanb/Dspace/dspace/modules/xmlui-mirage2/target/themes/Mirage2/styles
[INFO]   /home/germanb/Dspace/dspace/modules/xmlui-mirage2/target/rubygems/gems/compass-core-1.0.1/stylesheets)
[INFO] [31mCompilation failed in 1 files.

I don't know of anyone else could succesfull compile Mirage2

Regards
German



The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


euler

unread,
Aug 26, 2015, 1:39:31 PM8/26/15
to dspac...@lists.sourceforge.net
Hello German,

Have you resolved your issue regarding Mirage2? I'm having the same problem,
and I never have a successful Mirage2 installation. The mvn and ant update
was ok, but the resulting theme if I enabled Mirage2 in xmlui.xconf have no
style and Failed to load resource error (modernizr.js). I also tried Hiltons
method but same result.

Hope someone from the list could share their tips on how to enable Mirage2
successfully. The last time I have successfully installed Mirage2 was when I
used the alpha version from atmire.

Thanks in advance.



--
View this message in context: http://dspace.2283337.n4.nabble.com/Mirage2-build-problem-tp4675383p4675458.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

Germán Biozzoli

unread,
Aug 26, 2015, 1:39:32 PM8/26/15
to euler, DSpace techlist techlist, dspace-...@lists.sourceforge.net
Hi Euler

Unfortunately nope. 
I can't build Mirage 2 again and I'm expecting that 5.0 version arrives to production to test it again. In the meantime perhaps could be good if somebody else test a fresh build of DSpace/Mirage 2 to confirm the problem and/or I could open a new JIRA bug.

Regards
Germán

Reply all
Reply to author
Forward
0 new messages