datomic

Ask questions on the official Q&A site at https://ask.datomic.com!
onetom 2020-12-30T10:46:53.194100Z

Does anyone have an example setup for CircleCI obtaining Datomic dev-local from the new dev-tools package? I'm wondering what's the simplest way to provide the credentials for the cognitect-dev-tools maven repo. Do I need to provide an example settings.xml which I copy to ~/.m2/settings.xml explicitly from the .circleci/config.yml job definition? That much I figured out that the settings.xml can contain references to the environment, so I can work with a static file, like:

&lt;settings xmlns="<http://maven.apache.org/SETTINGS/1.0.0>"
          xmlns:xsi="<http://www.w3.org/2001/XMLSchema-instance>"
          xsi:schemaLocation="<http://maven.apache.org/SETTINGS/1.0.0>
                      <https://maven.apache.org/xsd/settings-1.0.0.xsd>"&gt;
    &lt;servers&gt;
	&lt;server&gt;
	   &lt;id&gt;cognitect-dev-tools&lt;/id&gt;
	   &lt;username&gt;${env.COGNITECT_DEV_TOOLS_MVN_USER}&lt;/username&gt;
	   &lt;password&gt;${env.COGNITECT_DEV_TOOLS_MVN_PWD}&lt;/password&gt;
	&lt;/server&gt;
    &lt;/servers&gt;
&lt;/settings&gt;

jcf 2021-01-05T12:42:18.202900Z

@onetom this is how I've solved this issue previously. I set secret vars in CircleCI and pull those in via the XML file you've described.

👍 1
jcf 2021-01-05T12:43:13.204Z

If you're using GitHub actions there's a Maven action that will do the settings.xml dance for you based on strings in YAML rather than XML. 🤷

onetom 2021-01-06T16:19:14.211200Z

thanks for the reassurance!

🙇 1
onetom 2020-12-30T10:49:30.194200Z

according to this old ticket, it's not currently possible to point Clojure CLI tools to a different maven user settings file: https://clojure.atlassian.net/browse/TDEPS-99 which is otherwise possible to do directly with the mvn command line, using the -s / --settings option.

kenny 2020-12-30T20:34:55.195300Z

Why does qseq appear to not take :timeout?