On May 27, 2008, at 1:14 AM, Robert Roggenbuck wrote: > Hi Mark, > > did I get it right that in DSpace 1.5 "mvn clean package" replaces the > commands "mvn package" and "ant -Dconfig=blah/dspace.cfg update"? > I just have similar problems to get changes in dspace.cfg take effect. >
Robert, no, it does not "replace" ant. mvn clean == remove target directories on maven projects mvn package == build maven project and assemble dspace distribution then either of the following depending on your need ant update == update a installation of dspace with your distribution ant fresh_install == do a fresh installation of dspace ant init_configs == copy over all the configuration [dspace]/config --- So to modify the dspace.cfg I do the following 1.) edit [dspace-source]/configs/dspace.cfg 2.) mvn clean package (in [dspace-source/dspace) 3) ant init_configs (in [dspace-source]/dspace/target/dspace...) This will update all the configuration files in [dspace]/configs Cheers, Mark > Best regards > > Robert > > Mark Diggory schrieb: >> Gary, >> >> There is a Maven command 'mvn clean package' which does this for >> you, >> it removes all target directories, forcing everything to be >> reconstructed. >> >> Again, I highly suggest maintaining your dspace.cfg changes in >> [dspace-source]/dspace/config/dspace.cfg and not using ant - >> Dconfig=... >> This is because in dspace 1.5.0 the dspace.cfg designated by - >> Dconfig is >> not properly copied in palce, the reason it works in this (and most >> cases) is that your referencing the already installed dspace.cfg. I >> have a fix for this planned for dspace 1.5.1 >> >> -Mark >> >> On May 26, 2008, at 6:38 PM, Gary Browne wrote: >> >>> Hi Hamish >>> >>> A solution of sorts...I first tried deleting the >>> [dspace-source]/dspace/target directory. Then after running mvn >>> package, my customised jsp pages WERE copied to >>> [dspace-source]/dspace/target/dspace-[version].dir/webapps/dspace- >>> jspui-webapp/. >>> However, after doing an ant -Dconfig=/yadda/yadda update, I had app >>> runtime errors which were unresolvable without some hard >>> thinking, for >>> which I was not in the mood. So, ... reinstall. I removed the >>> [dspace-source]/dspace/target directory again, dropped and >>> reinstalled >>> the dspace db, re-ran mvn package and did an ant fresh_install. Et >>> voila! One DSpace 1.5 instance complete with customised jsp >>> pages. Now >>> let's see if everything else works. >>> >>> Don't ask me what you do if this is a production instance - dropping >>> production dbs ain't fun. >>> >>> I hope this information is useful to yourself or anyone else >>> struggling with this. >>> >>> Kind regards >>> G >>> >>> > > [snip] > >>> From: [EMAIL PROTECTED] >>> [mailto:[EMAIL PROTECTED] On Behalf Of >>> Brett, >>> Hamish >>> Sent: Monday, 26 May 2008 12:11 PM >>> To: Gary Browne; [email protected] >>> Subject: Re: [Dspace-tech] Customised jsp pages not loading (1.5) >>> >>> I am having the exact same problem, I thought having a break over >>> the >>> weekend might fix it but it didnt >>> >>> hamish >>> >>> From: [EMAIL PROTECTED] >>> [mailto:[EMAIL PROTECTED] On Behalf Of Gary >>> Browne >>> Sent: Monday, 26 May 2008 11:36 AM >>> To: [email protected] >>> Subject: [Dspace-tech] Customised jsp pages not loading (1.5) >>> >>> Hi all >>> >>> After installing 1.5, I put my customised jsp pages in: >>> >>> [dspace-source]/dspace/modules/jspui/src/main/webapp/ >>> >>> I then ran mvn package from the [dspace-source]/dspace/ directory, >>> followed by ant -Dconfig=[dspace]/config/dspace.cfg update. >>> >>> The customised jsp pages are not copied over to [dspace]/webapps, >>> why >>> would that be? >>> >>> Thanks >>> Gary >>> > > -- > > =================================== > Robert Roggenbuck > Universitaetsbibliothek Osnabrueck > Germany > =================================== > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > DSpace-tech mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/dspace-tech ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

