ancient-stone-50795
10/17/2016, 12:19 PMancient-stone-50795
10/17/2016, 12:19 PMcuddly-garage-87447
10/17/2016, 12:19 PMcuddly-garage-87447
10/17/2016, 12:24 PMcuddly-garage-87447
10/17/2016, 12:26 PMcuddly-garage-87447
10/17/2016, 12:30 PMthankful-library-32113
10/17/2016, 4:54 PMjvm_app
, bundle it all as a jar with other jars inside it, and deploy that to my servers?thankful-library-32113
10/17/2016, 4:55 PMdeployjar
, correct?thankful-library-32113
10/17/2016, 4:56 PMancient-stone-50795
10/17/2016, 5:14 PMancient-stone-50795
10/17/2016, 5:14 PM./pants idea src:: tests:: examples:: testprojects:: --exclude-target-regexp=testprojects/src/java/org/pantsbuild/testproject/targetlevels/unspecified
I'm getting:
Exception message: Already defined module IvyModuleRef(jersey:jersey:latest.integration:sources:jar), as rev 0.7-ea!
trying to debug it now.fast-megabyte-33579
10/17/2016, 5:17 PMancient-stone-50795
10/17/2016, 5:18 PMwide-energy-11069
10/17/2016, 5:26 PMdefault_platform=java8
, it seems fine tho https://rbcommons.com/s/twitter/r/4320/file/14139/ancient-stone-50795
10/17/2016, 5:51 PMlimited-country-20626
10/17/2016, 6:00 PMlibs
.
If you prefer a "fatjar" you can set an 'archive' in the jvm_app BUILD file and it will create one for you (grep Archive.TYPE_NAMES
for allowable archives)witty-crayon-22786
10/17/2016, 6:01 PMjvm_app(.., deployjar=True)
witty-crayon-22786
10/17/2016, 6:01 PMarchive
is an outer wrapper around the resultlimited-country-20626
10/17/2016, 6:03 PMwitty-crayon-22786
10/17/2016, 6:03 PMdist
witty-crayon-22786
10/17/2016, 6:04 PMarchive
takes the result (be it a fatjar because deployjar=True
, or a series of jars because deployjar=False
) and wraps it up in a zip/tar/etc under dist
thankful-library-32113
10/17/2016, 6:06 PMdeployjars
runnable via java -jar
, or do i also have to do special things to mess with a classpath?limited-country-20626
10/17/2016, 6:06 PMwitty-crayon-22786
10/17/2016, 6:06 PMjava -jar
witty-crayon-22786
10/17/2016, 6:06 PMwitty-crayon-22786
10/17/2016, 6:07 PMjava -jar
runnable, because there is only onethankful-library-32113
10/17/2016, 6:07 PMjava -jar
know about the lib folder, and will put it on the classpath automatically? in the case where i don't make it a deployjarwitty-crayon-22786
10/17/2016, 6:07 PMthankful-library-32113
10/17/2016, 6:07 PMthankful-library-32113
10/17/2016, 6:07 PM