Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7115

MavenITmng5771CoreExtensionsTest fails on maven-3.8.x branch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Core, Integration Tests
    • None

    Description

      The IT fails reliably because of:

      [INFO] --- maven-it-plugin-core-extensions-client:0.1:validate-component (validate-extensions) @ test ---
      [DEBUG] org.apache.maven.its.it-core-extensions:maven-it-plugin-core-extensions-client:jar:0.1
      [DEBUG]    org.codehaus.plexus:plexus-utils:jar:1.1:runtime
      [INFO] Downloading from repoman: http://localhost:11669/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
      75193 [qtp1198759714-300] WARN org.eclipse.jetty.server.HttpChannel - /org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
      java.io.FileNotFoundException: /var/mosipov/Projekte/maven-integration-testing/core-it-suite/target/test-classes/mng-5771-core-extensions/repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar (No such file or directory)
              at java.io.FileInputStream.open0(Native Method)
              at java.io.FileInputStream.open(FileInputStream.java:195)
              at java.io.FileInputStream.<init>(FileInputStream.java:138)
              at org.apache.maven.it.HttpServer$HttpServerBuilder$2.stream(HttpServer.java:174)
              at org.apache.maven.it.HttpServer$StreamSourceHandler.handle(HttpServer.java:210)
              at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:529)
              at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
              at org.eclipse.jetty.server.Server.handle(Server.java:445)
              at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:267)
              at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:224)
              at org.eclipse.jetty.io.AbstractConnection$ReadCallback.run(AbstractConnection.java:358)
              at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:601)
              at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:532)
              at java.lang.Thread.run(Thread.java:748)
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  0.029 s
      [INFO] Finished at: 2021-03-14T14:04:20+01:00
      [INFO] ------------------------------------------------------------------------
      

      The reason is that Maven Core constantly adds Plexus Utils 1.1 dynamically to the extension classpath. This annoyance has been fixed for Maven 4 in:

      commit c61e63032f71c32c4060c8a94ce792bf47824e3c (slawekjaranowski/master)
      Author: Sylwester Lachiewicz <slachiewicz@apache.org>
      Date:   2020-07-24T01:59:50+02:00
      
          [MNG-6965] Extensions suddenly have org.codehaus.plexus:plexus-utils:jar:1.1 on their classpath
      
          This closes #367
      

      I don't know what the best solution would be here.

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              michael-o Michael Osipov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: