putting two maven parts in a snapcraft fails

Bug #1502030 reported by maarten ectors
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Won't Fix
High
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.

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

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

    args.func(args)
  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
    self.makedirs()
  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'

Tags: plugin
Changed in snapcraft:
milestone: none → 0.4
Changed in snapcraft:
assignee: nobody → Ted Gould (ted)
importance: Undecided → Medium
importance: Medium → High
Ted Gould (ted)
Changed in snapcraft:
milestone: 0.4 → none
Revision history for this message
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)
tags: added: plugin
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.