Uploaded image for project: 'Maven Eclipse Plugin (RETIRED)'
  1. Maven Eclipse Plugin (RETIRED)
  2. MECLIPSE-524

Cannot use "Run As Java Application/JUnit Test" (classpath problem) with ejb-client dependecy and "Resolve dependencies from Workspace projects"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • WTP support
    • None
    • M2Eclipse with WTP Support 0.9.7.200811301806

    Description

      With 2 module mod1 mod2 and mod2 refering mod1 ejb-client, classpath is wrong when running unit test or Java Application : ClassNotFoundException for mod1 classes.
      This does not happen with ejb dependecy and does not happen with no workspace project dependencies.

      Test case attached.

      Import attached "m2bug" and try to run unit test in module2/src/test/java/m2bug/M1Test
      You'll get ClassNotFoundException if "Resolve dependencies from Workspace projects" is checked on module2.

      Attachments

        1. m2bug.tgz
          2 kB

        Activity

          People

            Unassigned Unassigned
            dcausse David Causse
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: