gianluz
02/09/2020, 8:51 PM.main.kts
script, where i would like to use a local jar directly from my maven local without using -cp
option at compile time.. something using @file:Repository("path/to/mavenlocal")
and then @file:DependsOn("groupId:artifactId:version")
i’m using the version 1.3.61 😕 any idea??gianluz
02/09/2020, 8:51 PMilya.chernikov
02/10/2020, 2:56 PM@Repository
with directory name are supported, but treated as a base dir for the @DependsOn
with a file name instead of the maven coordinates.
And finally you may try to use file:///<home>/.m2/repository
url the the @Repository
parameter, maybe it will work as a local maven repo, I haven't tried it though.gianluz
02/11/2020, 1:19 PMUnrecognized set of arguments to ivy resolver: file///path/to/myjar.jar (java.lang.IllegalStateException ...)
gianluz
02/11/2020, 1:20 PM@file:DependsOn("file:///path/to/myjar.jar")
ilya.chernikov
02/11/2020, 1:23 PM@file:Repository("/path/to/my")
@file:DependsOn("myjar.jar")
should work. We had some tests like this.gianluz
02/11/2020, 1:23 PMgianluz
02/11/2020, 1:33 PMfile:///
like
@file:DependsOn("/absolute/path/to/myjar.jar")
but doesn’t work with relative paths.. like:
@file:DependsOn("./temp/myjar.jar)"
any idea where i’m wrong?ilya.chernikov
02/11/2020, 1:51 PM@file:Repository("/path/to/my")
before DependsOn
?ilya.chernikov
02/11/2020, 1:52 PMDependsOn
with files works only with relative paths, relative to the "repositories" added with @Repository
annotations.ilya.chernikov
02/11/2020, 1:53 PMilya.chernikov
02/11/2020, 1:54 PMgianluz
02/11/2020, 4:29 PMRepository
must be absolute??ilya.chernikov
02/11/2020, 4:32 PM@Repository
parameter.