putting two maven parts in a snapcraft fails

Bug #1502030 reported by maarten ectors on 2015-10-02
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sergio Schvezov

Bug Description

Put two maven projects in one snapcraft.yaml and the second fails with a directory already exists. Probably the JDK but the directory mentioned in the error is not the real directory.

        plugin: maven-project
        source: git://git.eclipse.org/gitroot/paho/org.eclipse.paho.mqtt.java.git

        plugin: maven-project
        source: git clone http://git.eclipse.org/gitroot/paho/org.eclipse.paho.mqtt.javascript.git

  File "/home/maarten/icebreaker/snapcraft/snapcraft/cmds.py", line 331, in cmd
    if not getattr(part, cmd)(force=force):
  File "/home/maarten/icebreaker/snapcraft/snapcraft/plugin.py", line 205, in build
  File "/home/maarten/icebreaker/snapcraft/snapcraft/plugin.py", line 148, in makedirs
    os.makedirs(d, exist_ok=True)
  File "/usr/lib/python3.4/os.py", line 237, in makedirs
    mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/maarten/icebreaker/snapcraft/examples/aws-iot/parts/javascriptmqtt/build'

Changed in snapcraft:
milestone: none → 0.4
Changed in snapcraft:
assignee: nobody → Ted Gould (ted)
importance: Undecided → Medium
importance: Medium → High
Ted Gould (ted) on 2015-10-29
Changed in snapcraft:
milestone: 0.4 → none
Leo Arias (elopio) wrote :
Changed in snapcraft:
status: New → Invalid
Changed in snapcraft:
status: Invalid → Triaged
Changed in snapcraft:
assignee: Ted Gould (ted) → Sergio Schvezov (sergiusens)
milestone: none → 2.11
Changed in snapcraft:
milestone: 2.12 → 2.13
Changed in snapcraft:
milestone: 2.13 → 2.14
Changed in snapcraft:
milestone: 2.13 → none
Leo Arias (elopio) on 2016-09-08
tags: added: plugin
Sergio Schvezov (sergiusens) wrote :

filesets are the best way around this.

Changed in snapcraft:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers