Issues building Mirage2 on DSpace 5.10

96 views
Skip to first unread message

Agustina Martinez

unread,
Sep 28, 2021, 11:23:50 AM9/28/21
to DSpace Technical Support
Dear all,

Since today (that I have noticed since my last successful rebuild a couple of weeks back) I am experiencing issues in my local environment (Mac based) to build DSpace. Nothing has changed in terms of upgrades to packages that I am aware of.

This is the mvn command that I normally run, and I install dependencies manually so I use the deps,included flag to false.

mvn -U clean package -Dmirage2.on=true -Dmirage2.deps.included=false -Pdspace-510 -P \!dspace-jspui,\!rdf,\!sword

 

And this is the error I get:

 

[INFO] ------ (Cambridge) org.codehaus.mojo:exec-maven-plugin:1.3.1:exec

(node:31933) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.

Running "copy:classic_mirage_color_scheme" (copy) task

Copied 1 files

 

Running "compass:prod" (compass) task

    error styles/main.scss (Line 16: File to import not found or unreadable: ../vendor/bootstrap-sass-official/assets/stylesheets/bootstrap.

Load paths:

  Compass::SpriteImporter

  /Users/am857/IdeaProjects/apollo/dspace/modules/xmlui-mirage2/target/themes/Cambridge/styles

  /Users/am857/.rvm/gems/ruby-2.7.0/gems/compass-core-1.0.3/stylesheets)

    write styles/shared/recommended-custom-styles.css (0.026s)

Compilation failed in 1 files.

Warning: ↑ Use --force to continue.

 

Aborted due to warnings.

 

 

And the versions of dependencies that I have installed are as follows:

 

nvm --version

0.38.0

npm -v

5.6.0

node -v

v8.10.0

ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-darwin20]

bower -v

1.8.12

sass -v

Sass 3.3.14 (Maptastic Maple)

compass -v

Compass 1.0.1 (Polaris)

grunt --version

grunt-cli v1.4.3

 

Your help is much appreciated and many thanks,

Agustina

Agustina Martinez

unread,
Sep 29, 2021, 8:58:56 AM9/29/21
to DSpace Technical Support
Hi all,

I have managed to resolve the issue by overriding the bower version in the package.json file within the dspace-xmlui-mirage2 module (https://github.com/DSpace/DSpace/blob/dspace-5.10/dspace-xmlui-mirage2/src/main/webapp/package.json). This previous post was useful in resolving this issue even though it refers to DSpace 6: https://groups.google.com/g/dspace-tech/c/x-m6DjNqx1A/m/rUl3NUrZCwAJ.

Best,
Agustina
Reply all
Reply to author
Forward
0 new messages