Uploaded image for project: 'Maven Remote Resources Plugin'
  1. Maven Remote Resources Plugin
  2. MRRESOURCES-72

Process mojo ignores offline mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.5
    • None
    • None

    Description

      Building Maven 3.1.1 with -o still tries to retrieve a remote resource and fails with:

      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO]
      [INFO] Apache Maven ...................................... SUCCESS [00:04.666]
      [INFO] Maven Model ....................................... SUCCESS [00:09.662]
      [INFO] Maven Artifact .................................... SUCCESS [00:08.064]
      [INFO] Maven Plugin API .................................. SUCCESS [00:04.378]
      [INFO] Maven Model Builder ............................... SUCCESS [00:09.794]
      [INFO] Maven Settings .................................... SUCCESS [00:07.018]
      [INFO] Maven Settings Builder ............................ SUCCESS [00:03.158]
      [INFO] Maven Repository Metadata Model ................... SUCCESS [00:06.664]
      [INFO] Maven Aether Provider ............................. SUCCESS [00:07.652]
      [INFO] Maven Core ........................................ SUCCESS [00:41.676]
      [INFO] Maven Compat ...................................... SUCCESS [00:25.343]
      [INFO] Maven Embedder .................................... SUCCESS [00:04.635]
      [INFO] Apache Maven Distribution ......................... FAILURE [02:31.770]
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 04:15.916 (Wall Clock)
      [INFO] Finished at: 2013-11-14 09:15:00
      [INFO] Final Memory: 46M/346M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process (default) on project apache-maven: Error rendering velocity resource. Invocation of method 'getResourceAsFile' in  class org.codehaus.plexus.resource.DefaultResourceManager threw exception org.codehaus.plexus.resource.loader.ResourceNotFoundException: Could not find resource 'https://glassfish.java.net/public/CDDLv1.0.html'. at remote-resources[line 40, column 26] -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      [ERROR]
      [ERROR] After correcting the problems, you can resume the build with the command
      [ERROR]   mvn <goals> -rf :apache-maven
      

      Offline mode shall be passed to every plugin execution.

      In my case, I am behind a corporate firewall and did not configure it in my settings.xml because we have a local Nexus instance for that.

      Attachments

        1. offline.log
          80 kB
          Michael Osipov
        2. build.log
          4 kB
          Laurent Malvert

        Issue Links

          Activity

            People

              hboutemy Herve Boutemy
              michael-o Michael Osipov
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: