Open gstanchev opened 2 years ago
Additionally, if i pull "master" from this project and "mvn clean package", it fails to compile with
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /D:/work/ITOM/playground/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[14,23] package org.apache.http does not exist
[ERROR] /D:/work/ITOM/playground/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[70,42] cannot access org.apache.http.HttpResponse
class file for org.apache.http.HttpResponse not found
[ERROR] /D:/work/ITOM/playground/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[75,71] cannot find symbol
symbol: method getEntity()
location: variable response of type org.apache.http.client.methods.CloseableHttpResponse
[ERROR] /D:/work/ITOM/playground/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[103,64] cannot access org.apache.http.message.AbstractHttpMessage
class file for org.apache.http.message.AbstractHttpMessage not found
[ERROR] /D:/work/ITOM/playground/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[105,49] cannot access org.apache.http.HttpRequest
class file for org.apache.http.HttpRequest not found
[ERROR] /D:/work/ITOM/playground/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[119,15] cannot find symbol
symbol: class HttpHost
location: class com.github.eirslett.maven.plugins.frontend.lib.DefaultFileDownloader
[ERROR] /D:/work/ITOM/playground/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[119,44] cannot find symbol
symbol: class HttpHost
location: class com.github.eirslett.maven.plugins.frontend.lib.DefaultFileDownloader
[ERROR] /D:/work/ITOM/playground/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[148,9] cannot find symbol
symbol: class HttpHost
location: class com.github.eirslett.maven.plugins.frontend.lib.DefaultFileDownloader
[ERROR] /D:/work/ITOM/playground/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[148,31] cannot find symbol
symbol: class HttpHost
location: class com.github.eirslett.maven.plugins.frontend.lib.DefaultFileDownloader
[ERROR] /D:/work/ITOM/playground/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[155,59] cannot access org.apache.http.protocol.HttpCoreContext
class file for org.apache.http.protocol.HttpCoreContext not found
But if i add
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.4.15</version>
</dependency>
to "frontend-maven-plugin/frontend-plugin-core/pom.xml" it builds cleanly. I am not sure if the issue is on my end because obviously the project was built and released without httpcore...
Okay, so after building and installing 1.12.2-SNAPSHOT locally with added httpcore dependency, and pointing our project to use that, tests are no longer failing so I can confirm it fixes the issue for us
We use frontend-maven-plugin in a pretty straightforward matter. Recently we bumped the version of the plugin from 1.12.0 to 1.12.1 and the project started failing with the following error
running with --debug produces the following exception (cut short for brevity):
I noticed that in 1.12.1, the version of httpclient was updated to the latest (4.5.13) from 4.5.2. The pom file of the plugin also doesn't include httpcore which contains the HttpContext interface which appears to be referenced. Is it possible the Apache Http Client/Core to have refactored/moved stuff where httpcore is now required also to be included thus now the execution of the plugin fails?
I also have the following extended output
Anyways, any help/workaround is appreciated...