Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-2948

scr-maven-plugin fails with org.maven.ide.eclipse plugin (exploded bundle)

    XMLWordPrintableJSON

Details

    Description

      scr-maven-plugin fails with org.maven.ide.eclipse plugin (exploded bundle)

      1) when you run scr-maven-plugin in the eclipse ide with m2e plugin
      then it seems at first to work fine:

      a) import this project in the eclipse with help of m2e:
      https://github.com/carrot-garden/carrot-bugger/tree/master/carrot-bug-scr-maven-plugin-001

      b) and run "eclipse -> project -> clean"; it produces this success log:
      https://github.com/carrot-garden/carrot-bugger/blob/master/carrot-bug-scr-maven-plugin-001/doc-inf/build-m2e.log

      2) but when your try

      a) a second project which depends on first:
      https://github.com/carrot-garden/carrot-bugger/tree/master/carrot-bug-scr-maven-plugin-002

      b) then "eclipse -> project -> clean" now produces the following failure log:
      https://github.com/carrot-garden/carrot-bugger/blob/master/carrot-bug-scr-maven-plugin-002/doc-inf/build-m2e.log

      3) this is because scr-maven-plugin expects dependency to be in the jar form
      but m2e instead (and appropriately) provides a path to the exploded bundle in the ./target/classes
      of the dependency project (if it is a workspace project);

      4) the workaround is to disable workspace project resolution in m2e
      but this impedes development speed considerably

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            andrei.pozolotin Andrei Pozolotin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: