Hi, Adam, I bet Helix will beat me to this reply, but I thought I'd just
point out that the most important part of the command that Helix
suggested, and you didn't mention in your reply, so I'm pointing it out,
is the -U option. "clean package" tells Maven to first "clean" out the
build target folder, and then "package" tells Maven to re-package the ant
installer for DSpace. The -U command line tells Maven to update all
"snapshots"--think of those as dependencies. Taking the extra step of
first deleting your .m2 folder just ensures that "nothing strange" happens
with the dependency update. BTW, deleting your ~/.m2 folder deletes a lot
more than your cache repository... in the future, you may want to remove
just the ~.m2/repository folder, especially if you've been storing
settings or profiles in .m2/settings.xml. Also, if you're an Oracle DB
user like me, you'll need to re-install the Oracle driver, since it's
stored in your ~/.m2/repository folder. Sorry to be pedantic, but these
details are important. :-)

Oh, also, you may want to try tinkering with Vagrant-DSpace if you want a
quick way to get up and running with DSpace:

https://github.com/DSpace/vagrant-DSpace


--
HARDY POTTINGER <pottinge...@umsystem.edu>
University of Missouri Library Systems
http://lso.umsystem.edu/~pottingerhj/
https://MOspace.umsystem.edu/
"It is a well-known fact in any organization that, if you want a job done,
you should give it to someone who is already very busy." --Terry
Pratchett, Unseen Academicals





On 10/25/13 4:55 AM, "Adam Rousell" <adam.rous...@nottingham.ac.uk> wrote:

>Hey, think I may have spoken too soon...
>
>It worked once and now I'm having the same issue again, and running the
>clean package and deleting the .m2 folder are having no effect. Any other
>thoughts? It's a 3.2-src-release one that I am trying to build...
>
>Adam
>
>
>-----Original Message-----
>From: Rousell Adam
>Sent: 23 October 2013 14:41
>To: 'heli...@centrum.sk'
>Cc: dspace-tech@lists.sourceforge.net
>Subject: RE: [Dspace-tech] Maven Package in 3.x
>
>Hey, the clean package thing seemed to do the trick. It's on a new Linux
>setup so maybe something to do with Maven being freshly downloaded from
>the repository or something...
>
>Anyway, thanks for your help :)
>
>Adam
>
>-----Original Message-----
>From: ivan.ma...@gmail.com [mailto:ivan.ma...@gmail.com] On Behalf Of
>helix84
>Sent: 23 October 2013 13:34
>To: Adam Rousell
>Cc: dspace-tech@lists.sourceforge.net
>Subject: Re: [Dspace-tech] Maven Package in 3.x
>
>On Wed, Oct 23, 2013 at 12:36 PM, Adam Rousell
><adam.rous...@nottingham.ac.uk> wrote:
>> I seem to be having issues with running the maven package on a newly
>> downloaded instance of DSpace 3.x. During the package process the
>> system hangs when trying to download files. A number of the links
>> provided result in a 404 error when trying to access through a browser
>>(i.e.
>> 
>>http://oss.sonatype.org/content/repositories/releases/commons-digester/co
>>mmons-digester/1.6/commons-digester-1.6.jar).
>> Is this a problem with the host that holds these files as at the
>> minute I cannot build any instances that use these.
>
>Hi Adam,
>
>I'm not sure how Maven got that broken link, because
>commons-digester-1.6.jar *is* available on Maven Central [1]. We think
>this might be a Maven caching issue. Try building again with:
>mvn -U clean package
>
>If that doesn't help, try deleting the ~/.m2 directory. Maven will
>re-fetch every dependency and recreate it on its next run.
>
>Which exact 3.x version are you building? We were able to build 3.2
>successfully.
>
>[1] 
>http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22commons-digester%22%20A
>ND%20a%3A%22commons-digester%22
>
>
>Regards,
>~~helix84
>
>Compulsory reading: DSpace Mailing List Etiquette
>https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>--------------------------------------------------------------------------
>----
>October Webinars: Code for Performance
>Free Intel webinars can help you accelerate application performance.
>Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
>from 
>the latest Intel processors and coprocessors. See abstracts and register >
>http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktr
>k
>_______________________________________________
>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


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/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

Reply via email to