Thank you so much Andrea! I did step two as a quick and dirty check, and it 
works now!!

From: Andrea Schweer [mailto:[email protected]]
Sent: Sunday, May 3, 2015 6:39 PM
To: Margaret Vail; [email protected]
Subject: Re: [Dspace-tech] Building DSpace after bug fix (DS-2542)

Hi Margaret,
On 02/05/15 01:48, Margaret Vail wrote:
I am trying to apply the suggested bug fix for DS-2542 
(https://jira.duraspace.org/browse/DS-2542) to my DSpace 5.1 instance. However, 
the changes are not displaying. Can someone please log through my build process 
and advise on any mistakes or anything I may be missing.

Update lyncode/xoai:

git clone https://github.com/lyncode/xoai.git
git checkout 3.x
(The bug fix was already accepted in this version of the code, so I did not 
need to apply it)
cd to lyncode/xoai root directory
mvn package
(Jar file built in target directory)
(I de-compiled the jar file and was able to confirm that the bug fix was 
included in the jar)

Run
mvn package install
that will install the jar file into your local maven cache, by default 
~/.m2/repository


Apply code changes in https://github.com/DSpace/DSpace/pull/912 to source code
cd [dspace-src]/dspace
mvn clean package
cd target/dspace-installer
ant update_code

You still need to tell DSpace to use your updated jar file -- there are two 
options. You can do this "properly", by changing the XOAI version in the DSpace 
pom file. Or you can do the rebuild as always and just swap in the updated jar 
file later.

First option

In the DSpace codebase ([dspace-src]/dspace-oai/pom.xml) change the OAI version 
to 3.2.10-SNAPSHOT -- this is exactly what's in the pom.xml file in the lyncode 
xoai project you just compiled. ("SNAPSHOT" means that this isn't an officially 
released version)
Since you are changing something in a [dspace-src]/dspace-* directory, you will 
need to do the full rebuild option
cd [dspace-src]   <- not [dspace-src]/dspace
mvn clean package
ant as in your description (I always use the update ant target; I'm not sure 
whether update_code is enough, I think you'd need update_webapps too
Then you should see the xoai-3.2.10-SNAPSHOT.jar in 
[dspace]/webapps/oai/WEB-INF/lib/ and in [dspace]/lib (and you should _not_ see 
xoai-3.2.9.jar in those directories)

Second option

Don't make the pom change, just do your normal rebuild (mvn&ant)
Then delete [dspace]/webapps/oai/WEB-INF/lib/xoai-3.2.9.jar and instead copy 
over the xoai you built yourself (xoai-3.2.10-SNAPSHOT.jar)
Then delete [dspace]/lib/xoai-3.2.9.jar and instead copy over the xoai you 
built yourself

I hope this helps.

cheers,
Andrea



--

Dr Andrea Schweer

IRR Technical Specialist, ITS Information Systems

The University of Waikato, Hamilton, New Zealand
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to