0

I have a maven application where I need to make a snap for it

I knew that I need to add this piece in the snapcraft.yaml

parts:
    webapp:
        plugin: maven
        source: [add the source code directory]

but I did not knew what I need to add in the

apps:
  client:
    command: ??

will you help me solve it

Thanks in advance

1

The command section is documented at https://snapcraft.io/docs/build-snaps/metadata and essentially needs an entry for each executable your application contains.

| improve this answer | |
  • I have built the snap without the apps part. the prime folder does not have a bin folder. it contains (etc, jar, lib, meta, snap, usr and var) as well as the "command-client.wrapper". do I miss something? – Joey Mar 16 '17 at 8:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.