Fork me on GitHub
#boot
<
2017-05-25
>
qqq14:05:05

boot/pom -- how do I specify the main file ?

craigy14:05:11

@qqq you specify it in the jar task, here's an example https://github.com/adzerk-oss/boot-uberjar-example

fabrao17:05:27

Hello all. I´m new with boot and I use the lein-localrepo plugin for my lein projects. How do I use the same in boot?

richiardiandrea17:05:22

@fabrao what does localrepo do?

fabrao17:05:17

look for jars from local repository of maven

fabrao17:05:24

like Oracle JDBC jars, I include it in local repository of maven, .m2 and the lein-localrepo tell lein to look at .m2 too

fabrao17:05:53

or boot look for it already?

qqq17:05:34

@craigy : it all owrks now; thanks!

pesterhazy19:05:48

@fabrao can't you just add the jar as a source path in build.boot to add it to the classpath?

fabrao19:05:13

well, IMO the repository is always external

pesterhazy19:05:31

I don't understand

fabrao19:05:04

include jdbc jar for oracle database as source path?

richiardiandrea19:05:31

@fabrao as long as you have stuff in .m2 and the dependency vector is the right one, you should be fine

pesterhazy19:05:35

yes, if I'm not mistaken

fabrao19:05:06

just including :resource-paths #{"src" "path for .m2"}?

richiardiandrea19:05:25

if the latter, you specify you dep normally in :dependencies

richiardiandrea19:05:08

if the former, you have to use some lower level boot functions for adding the jar to the classpath (that I don't remember now by heart)

pesterhazy19:05:25

@fabrao that's what I thought, but testing it it doesn't seem to work

fabrao19:05:29

oooohhh, so you said that boot already looks for local maven repository?

richiardiandrea19:05:07

or I am missing something 😉

fabrao19:05:29

in lein I have to use lein-localrepo plugin to use local maven

richiardiandrea19:05:41

at this point I am a bit confused on what is the goal here, but I hope what I said above makes sense 😄

richiardiandrea19:05:10

if your dep is in .m2 with normal maven manifest and all that, you should see it

fabrao19:05:35

the point is using local maven jar installed manualy like in https://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html

fabrao19:05:49

using it in dependencies

richiardiandrea19:05:09

ok so boot should already be ok, just by using :dependencies

fabrao19:05:26

ok, thanks that´s the information I need

richiardiandrea19:05:15

if the dependency is not producing normal .jar artifacts and you need to retrieve other files, you should play with the class maven additional tags