Re: Need to run a jar from a folder on cloud!


Lee Porte
 

Is the thinking to include your dependencies for running the jar? If so I'd
recommend using the Apache Maven Shade plugin
https://maven.apache.org/plugins/maven-shade-plugin/ this will pack all of
of your deps into a fat jar, this can then be uploaded and run.

On 26 June 2017 at 05:42, Johannes Hiemer <jvhiemer(a)gmail.com> wrote:

Hi Pranith,
what is the reason you need to upload a complete folder and not just the
jar itself?

On Mon, Jun 26, 2017 at 6:26 AM, Pranith Pola <upwardfeast(a)gmail.com>
wrote:

Hi Team,

Can any one let me know how to run a jar file after pushing entire folder
to cloud foundry.

I have all the files in cloud foundry now. All i need to do is to run a
jar which is located in that folder.

I tried below process but no luck :(

cf run-task app-name "java -jar" --name jar.

Can some one please help me to run the jar on high priority or any
process to package the folders,jar into one jar!

Thank you.

Pranith


--
Mit freundlichen Grüßen

Johannes Hiemer

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.