librelist archives

« back to archive

Loading a profile by default

Loading a profile by default

From:
Frazer Irving
Date:
2013-08-23 @ 08:36
Hi there,

I have a problem with my current lein project. I have the following profiles

  :profiles :db-datomic
              {:dependencies
                [[com.datomic/datomic-free "0.8.4122"
                  :exclusions [org.slf4j/log4j-over-slf4j]]
                [clojurewerkz/elastisch "1.1.1"
                  :exclusions [org.elasticsearch/elasticsearch]]]
               :source-paths ["src-datomic"]}
              :db-es
              {:dependencies
                [[clojurewerkz/elastisch "1.1.1"]]
               :source-paths ["src-es"]}
             }

This is designed to load a specific set of dependencies and a local source
path when lein is called with a specific profile. IE

lein with-profile db-es run

This works well, but what I really want is for the db-es profile to be 
loaded by default when I run:

lein run

Is this possible?

Thanks in advance

f

______________________________________________________________________
This e-mail and any attached files are intended for the named addressee 
only. It contains information, which may be confidential and legally 
privileged and also protected by copyright. Unless you are the named 
addressee (or authorised to receive for the addressee) you may not copy or
use it, or disclose it to anyone else. If you received it in error please 
notify the sender immediately and then delete it from your system. 
Associated Newspapers Ltd. Registered Office: Northcliffe House, 2 Derry 
St, Kensington, London, W8 5TT. Registered No 84121 England.