Try build snap from deb

I try build a snap from source dir, but when try give a lot erros.

##################snapcraft.yaml#################
parts:
        eidmw:

          source: /SNAPBUILD/eidmw
          plugin: autotools
          stage-packages:
                  - libpcsclite-dev
                  - default-jdk
                  - qtbase5-dev
                  - qt5-qmake
                  - qt5-default
                  - libssl-dev
                  - libxerces-c-dev
                  - swig
                  - libcurl4-openssl-dev
                  - libpoppler-qt5-dev
                  - libxml-security-c-dev
build: |
                  export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"

architectures: all

############################ ERROS / INFO #######################################
Failed to load plugin: properties failed to load for eidmw: Additional properties are not allowed ('architectures' was unexpected)

Please reformat your yaml using triple backticks (these: ```) before and after the yaml so that the indentation doesn’t get screwed up. In YAML indentation is important, like in Python, so to be able to help properly we need to see the indentation you used in addition to the text content.

Sorry, Snapcraft ran into an error when trying to running through its
lifecycle that generated the following traceback:
Traceback (most recent call last):
  File "/usr/bin/snapcraft", line 11, in <module>
    load_entry_point('snapcraft==2.42.1+18.4', 'console_scripts', 'snapcraft')()
  File "/usr/lib/python3/dist-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1043, in invoke
    return Command.invoke(self, ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/lib/python3/dist-packages/snapcraft/cli/_runner.py", line 79, in run
    ctx.forward(lifecyclecli.commands['snap'])
  File "/usr/lib/python3/dist-packages/click/core.py", line 553, in forward
    return self.invoke(cmd, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py", line 135, in snap
    project_options, directory=directory, output=output)
  File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_packer.py", line 46, in snap
    execute('prime', project_options)
  File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 60, in execute
    config = project_loader.load_config(project_options)
  File "/usr/lib/python3/dist-packages/snapcraft/internal/project_loader/__init__.py", line 31, in load_config
    return Config(project_options)
  File "/usr/lib/python3/dist-packages/snapcraft/internal/project_loader/_config.py", line 209, in __init__
    snapcraft_yaml = _snapcraft_yaml_load(self.snapcraft_yaml_path)
  File "/usr/lib/python3/dist-packages/snapcraft/internal/project_loader/_config.py", line 373, in _snapcraft_yaml_load
    return yaml.safe_load(fp)
  File "/usr/lib/python3/dist-packages/yaml/__init__.py", line 94, in safe_load
    return load(stream, SafeLoader)
  File "/usr/lib/python3/dist-packages/yaml/__init__.py", line 72, in load
    return loader.get_single_data()
  File "/usr/lib/python3/dist-packages/yaml/constructor.py", line 35, in get_single_data
    node = self.get_single_node()
  File "/usr/lib/python3/dist-packages/yaml/composer.py", line 36, in get_single_node
    document = self.compose_document()
  File "/usr/lib/python3/dist-packages/yaml/composer.py", line 55, in compose_document
    node = self.compose_node(None, None)
  File "/usr/lib/python3/dist-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/lib/python3/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
    while not self.check_event(MappingEndEvent):
  File "/usr/lib/python3/dist-packages/yaml/parser.py", line 98, in check_event
    self.current_event = self.state()
  File "/usr/lib/python3/dist-packages/yaml/parser.py", line 439, in parse_block_mapping_key
    "expected <block end>, but found %r" % token.id, token.start_mark)
yaml.parser.ParserError: while parsing a block mapping
  in "snap/snapcraft.yaml", line 1, column 1
expected <block end>, but found '<scalar>'
  in "snap/snapcraft.yaml", line 6, column 2

there seem to be formatting errors in your snapcraft.yaml …

it is very hard to judge what is wrong though if you do not follow @lucyllewy’s advice above and paste your snapcraft.yaml here with a readable indendation by using backticks around it, else the forum software will just mess up the display of it.

@ogra, @lucyllewy, I have edited the posts, wrapping them in backticks.

@tiagopolicarpo please do this yourself from now on

@tiagopolicarpo according to the snippet of yaml in your first post your build: | block is incorrectly indented.