Interface Downloader

    • Method Detail

      • downloadUrlToFile

        void downloadUrlToFile​(java.lang.String url,
                               java.io.File file)
                        throws java.lang.Exception
        Download the content at the URL given and save it locally. This interface is used to switch between HTTP connector. In the context of Maven, the connection need to pass through Maven API in order to benefit from its proxy configuration. The Maven plugin would otherwise not work on enterprise network.
        Parameters:
        url - URL to request
        file - File where the content will be saved.
        Throws:
        java.lang.Exception - Connection error most likely