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

unit tests depends on local configuration and artifacts in local repository

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Auto Closed
    • 2.6
    • None
    • None

    Description

      My local repository contans -sources.jar for junit and servlet-api.

      I then have failing tests :
      testProject13(org.apache.maven.plugin.eclipse.EclipsePluginTest)
      testProject22(org.apache.maven.plugin.eclipse.EclipsePluginTest)
      testProject28(org.apache.maven.plugin.eclipse.EclipsePluginTest)
      testProject29(org.apache.maven.plugin.eclipse.EclipsePluginTest)
      testProject30(org.apache.maven.plugin.eclipse.EclipsePluginTest)
      ...

      All of them fail beacuse the .classpath contains link to the sources archive :

      Checking .classpath, line #3 expected:<...servlet-api-2.3.jar"[]/>> but was:<...servlet-api-2.3.jar"[ sourcepath="M2_REPO/javax/servlet/servlet-api/2.3/servlet-api-2.3-sources.jar"]/>>

      An option would be to package with the plugin test resource a repository containing fake (0byte) artifacts, and use it as local repo with offline mode set, so that the available artifacts are fully under control.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ndeloof nicolas de loof
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: