Re: [Dspace-tech] Building DSpace after bug fix (DS-2542)

2015-05-03 Thread Margaret Vail
Thank you so much Andrea! I did step two as a quick and dirty check, and it 
works now!!

From: Andrea Schweer [mailto:schw...@waikato.ac.nz]
Sent: Sunday, May 3, 2015 6:39 PM
To: Margaret Vail; dspace-tech@lists.sourceforge.net
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 (mvnant)
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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] Building DSpace after bug fix (DS-2542)

2015-05-03 Thread Andrea Schweer

  
  
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 (mvnant)
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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] Building DSpace after bug fix (DS-2542)

2015-05-01 Thread Margaret Vail
Hi,

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)

Update dspace:

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
(I don't want to run ant update, because I have made a lot of changes - but I 
have ran it as a test and it didn't seem to work either)

Other steps I have tried:
- Copying xoai-3.2.10.jar  to [dspace]/lib/xoai-3.2.9.jar
- Copying [dspace-src]/dspace-oai/target/dspace-oai-5.0-classes.jar to 
[dspace]/lib/dspace-oai-5.0.jar
- Changing the dspace maven build to use xoai version 3.2.10 - but this failed 
due to xoai 3.2.10 not being available in the repo


Any further help is needed and very appreciated!!


Margaret Vail
Systems Developer
Dalhousie University Libraries
marga...@dal.camailto:marga...@dal.ca

--
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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] Building Dspace

2014-01-17 Thread Eric Martyns
Hi,
I'v been trying to build dspace and i keep
getting an error message.
postgresql is running and in the cmd prompt
i entered C:\dspace-4.0-src-release\dspace mvn package
but get this error message
C:\dspace-4.0-src-release\dspace is not recognized as an internal
or external command
operable program or batch file.
I'll appreciate your assistance.

Thanks
B/R
Martyns Eric
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] Building Dspace

2014-01-17 Thread Bhavesh Patel
Dear Eric Martyns,

You are executing the command on wrong path

Your Path : C:\dspace-4.0-src-release\dspace mvn package

Correct Path : C:\dspace-4.0-src-release\mvn package

Please try with correct path.

Thanks,
Bhavesh

Thanks  Regards,
*Bhavesh R. Patel *
bhavesh.bece...@gmail.com (Email)

*Websites :*

   - www.bhaveshpatel.info
   - www.onlinequizportal.com
   - www.hindisuvichar.com

Never leave till tomorrow which you can do today

*Please consider the environment before printing this e-mail.*


On Fri, Jan 17, 2014 at 4:15 PM, Eric Martyns martynse...@gmail.com wrote:

 Hi,
 I'v been trying to build dspace and i keep
 getting an error message.
 postgresql is running and in the cmd prompt
 i entered C:\dspace-4.0-src-release\dspace mvn package
 but get this error message
 C:\dspace-4.0-src-release\dspace is not recognized as an internal
 or external command
 operable program or batch file.
 I'll appreciate your assistance.

 Thanks
 B/R
 Martyns Eric


 --
 CenturyLink Cloud: The Leader in Enterprise Cloud Services.
 Learn Why More Businesses Are Choosing CenturyLink Cloud For
 Critical Workloads, Development Environments  Everything In Between.
 Get a Quote or Start a Free Trial Today.

 http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech
 List Etiquette:
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] Building Dspace

2014-01-17 Thread Eric Martyns
Thanks Bhavesh,

I just tried this path C:\dspace-4.0-src-release\mvn package
and i still got the same error message.


C:\dspace-4.0-src-release\mvn package is not recognized as an internal
or external command
operable program or batch file

Please i'll appreciate all response to this issue


Thanks

B/R
Martyns Eric
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] Building Dspace

2014-01-17 Thread Kostas Stamatis
Is Maven in your System PATH so as the mvn command to be recognized from any
path like the C:\dspace-4.0-src-release one?

 

 

Kostas 

 

 

From: Eric Martyns [mailto:martynse...@gmail.com] 
Sent: Friday, January 17, 2014 1:04 PM
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] Building Dspace

 

Thanks Bhavesh,

I just tried this path C:\dspace-4.0-src-release\mvn package

and i still got the same error message.


C:\dspace-4.0-src-release\mvn package is not recognized as an internal 
or external command 
operable program or batch file

Please i'll appreciate all response to this issue



Thanks

B/R

Martyns Eric

--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette