hi all, maybe a stupid question, but I’m using `ex...
# general
c
hi all, maybe a stupid question, but I’m using
experimental_shell_command
to execute maven to build a jar, works perfectly. then, that jar needs to go inside of a
pex_binary
(because I then need my python code to upload it somewhere on demand). pants says I should use a
resource
for that. But the
resource
target only accepts source files. Is there any way I can make the outputs of a previous target into the inputs of the
resources
?
b
Not today, no (not without a plugin). IMHO this is Pants' most glaring feature deficiency (that we force clients to choose between file/resource at declaration site, and not at consumption site. Therefore for everything we make that could represent a file target ALSO needs to have a resource counterpart). It's something I have a proposal to move us away from, but other than that a plugin is your best bet
c
thank you very much!
if you’d write a plugin, what exactly would the plugin do here?
f
Also, is there any reason why you would be unable to use the Pants JVM support?
(I’d like to better understand the need to run Maven.)
c
the maven build is quite complex and given by the framework
“quite complex” is overstated. it’s just already prepared with external dependencies etc.
b
c
awesome, thank you
h
I am hoping to take a hard look at experimental_shell_command very soon, for exactly this sort of thing
👍 2
In fact, @ancient-vegetable-10556 is taking a look, so cc’ing him here for reference to this use-case