Hi, I was wondering if anyone would be interested in sharing how they use Maven profiles in their DSpace development? We use them quite a bit in our development process, to facilitate builds to developer workspaces, and staging, and production. I'm thinking about this because I'm working on an upgrade to DSpace 1.7, as well as testing some alternate builds of DSpace, so I'm changing a few dspace.cfg files to work with our profiles... and it has me thinking that I may be "doing it wrong"... the big thing I change is, in a stock dspace.cfg file, I change all occurrences of:
{dspace To {default.dspace So that our profiles can change those values. I also change other variables... Here's an excerpt from our profiles.xml file, so you can get an idea of what I'm up to: <profiles> <!-- The Oracle profile below serves as a trigger, to force the use of Oracle info from the profiles further below. Without it, default info is included from the pom.xml and all other profiles are ignored. --> <profile> <id>oracle</id> <activation> <property> <name>db.name</name> <value>oracle</value> </property> </activation> <properties> <default.db.name>oracle</default.db.name> <default.db.driver>oracle.jdbc.OracleDriver</default.db.driver> </properties> </profile> <profile> <id>irsandbox</id> <properties> <default.dspace.dir>/dspacepath</default.dspace.dir> <default.dspace.baseUrl>https://irsandbox.example.edu</default.dspace.baseUrl> <default.dspace.url>https://irsandbox.example.edu/xmlui</default.dspace.url> <default.dspace.hostname>irsandbox.example.edu</default.dspace.hostname> <default.dspace.name>Example IRsandbox</default.dspace.name> <default.db.url>jdbc:oracle:thin:@oracledb.example.edu:1521:data</default.db.url> <default.db.username>example</default.db.username> <default.db.password>foobar!</default.db.password> <default.db.maxconnections>30</default.db.maxconnections> <default.smtp.username>example</default.smtp.username> <default.smtp.password>foobar!</default.smtp.password> <default.assetstore.dir>/path/to/assetstore</default.assetstore.dir> </properties> <activation> <property> <name>irsandbox</name> </property> </activation> </profile> Anyhow, I'm curious to hear how you're using profiles, if you are. AND, if you see something in that example above that could be simplified or is just wrong-headed, please let me know. Thanks! -- HARDY POTTINGER <pottinge...@umsystem.edu> University of Missouri Library Systems http://lso.umsystem.edu/~pottingerhj/ "No matter how far down the wrong road you've gone, turn back." --Turkish proverb ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech