lamber-ken commented on issue #9104: [HOTFIX][mvn] upgrade 
frontend-maven-plugin version to 1.7.5
URL: https://github.com/apache/flink/pull/9104#issuecomment-514569039
 
 
   Hi, @Myasuka, the main cause is `org.apache.httpcomponents` version 
conflicts. Just need to clean 
`${mvn_repository}/repos/org/apache/httpcomponents/*`, things will ok.
   
   btw, if compile 
[frontend-maven-plugin-1.6](https://github.com/eirslett/frontend-maven-plugin/tree/frontend-plugins-1.6),
 will meet same error.
   
   ```
   dcadmin-imac:frontend-maven-plugin dcadmin$ mvn clean package install 
-DskipTests
   [INFO] Scanning for projects...
   [INFO] 
------------------------------------------------------------------------
   [INFO] Reactor Build Order:
   [INFO] 
   [INFO] Frontend Plugins
   [INFO] frontend-plugin-core
   [INFO] Maven Frontend Plugin
   [INFO]                                                                       
  
   [INFO] 
------------------------------------------------------------------------
   [INFO] Building Frontend Plugins 1.6
   [INFO] 
------------------------------------------------------------------------
   [INFO] 
   [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ frontend-plugins 
---
   [INFO] 
   [INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ 
frontend-plugins ---
   [INFO] 
   [INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ 
frontend-plugins ---
   [INFO] 
   [INFO] --- maven-install-plugin:2.4:install (default-install) @ 
frontend-plugins ---
   [INFO] Installing 
/work/projects/BigDataArtisans/frontend-maven-plugin/pom.xml to 
/work/JAVA_WORK/mvn_repo/repos/com/github/eirslett/frontend-plugins/1.6/frontend-plugins-1.6.pom
   [INFO]                                                                       
  
   [INFO] 
------------------------------------------------------------------------
   [INFO] Building frontend-plugin-core 1.6
   [INFO] 
------------------------------------------------------------------------
   [INFO] 
   [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ 
frontend-plugin-core ---
   [INFO] 
   [INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ 
frontend-plugin-core ---
   [INFO] 
   [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
frontend-plugin-core ---
   [INFO] Using 'UTF-8' encoding to copy filtered resources.
   [INFO] skip non existing resourceDirectory 
/work/projects/BigDataArtisans/frontend-maven-plugin/frontend-plugin-core/src/main/resources
   [INFO] 
   [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ 
frontend-plugin-core ---
   [INFO] Changes detected - recompiling the module!
   [INFO] Compiling 33 source files to 
/work/projects/BigDataArtisans/frontend-maven-plugin/frontend-plugin-core/target/classes
   [INFO] -------------------------------------------------------------
   [WARNING] COMPILATION WARNING : 
   [INFO] -------------------------------------------------------------
   [WARNING] 
/work/projects/BigDataArtisans/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/NPMInstaller.java:
 
/work/projects/BigDataArtisans/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/NPMInstaller.java使用了未经检查或不安全的操作。
   [WARNING] 
/work/projects/BigDataArtisans/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/NPMInstaller.java:
 有关详细信息, 请使用nchecked 重新编译。
   [INFO] 2 warnings 
   [INFO] -------------------------------------------------------------
   [INFO] -------------------------------------------------------------
   [ERROR] COMPILATION ERROR : 
   [INFO] -------------------------------------------------------------
   [ERROR] 
/work/projects/BigDataArtisans/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[14,23]
 程序包org.apa.http不存在
   [ERROR] 
/work/projects/BigDataArtisans/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[66,42]
 无法访问org.ae.http.HttpResponse
     找不到org.apache.http.HttpResponse的类文件
   [ERROR] 
/work/projects/BigDataArtisans/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[71,71]
 找不到符号
     符号:   方法 getEntity()
     位置: 类型为org.apache.http.client.methods.CloseableHttpResponse的变量 response
   [ERROR] 
/work/projects/BigDataArtisans/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[102,64]
 无法访问org.he.http.message.AbstractHttpMessage
     找不到org.apache.http.message.AbstractHttpMessage的类文件
   [ERROR] 
/work/projects/BigDataArtisans/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[104,49]
 无法访问org.he.http.HttpRequest
     找不到org.apache.http.HttpRequest的类文件
   [ERROR] 
/work/projects/BigDataArtisans/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[118,15]
 找不到符号
     符号:   类 HttpHost
     位置: 类 com.github.eirslett.maven.plugins.frontend.lib.DefaultFileDownloader
   [ERROR] 
/work/projects/BigDataArtisans/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[118,44]
 找不到符号
     符号:   类 HttpHost
     位置: 类 com.github.eirslett.maven.plugins.frontend.lib.DefaultFileDownloader
   [ERROR] 
/work/projects/BigDataArtisans/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[147,9]
 找不到符号
     符号:   类 HttpHost
     位置: 类 com.github.eirslett.maven.plugins.frontend.lib.DefaultFileDownloader
   [ERROR] 
/work/projects/BigDataArtisans/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[147,31]
 找不到符号
     符号:   类 HttpHost
     位置: 类 com.github.eirslett.maven.plugins.frontend.lib.DefaultFileDownloader
   [ERROR] 
/work/projects/BigDataArtisans/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[154,59]
 无法访问org.he.http.protocol.HttpCoreContext
     找不到org.apache.http.protocol.HttpCoreContext的类文件
   [INFO] 10 errors 
   [INFO] -------------------------------------------------------------
   [INFO] 
------------------------------------------------------------------------
   [INFO] Reactor Summary:
   [INFO] 
   [INFO] Frontend Plugins ................................... SUCCESS [  0.445 
s]
   [INFO] frontend-plugin-core ............................... FAILURE [  1.089 
s]
   [INFO] Maven Frontend Plugin .............................. SKIPPED
   [INFO] 
------------------------------------------------------------------------
   [INFO] BUILD FAILURE
   [INFO] 
------------------------------------------------------------------------
   [INFO] Total time: 1.658 s
   [INFO] Finished at: 2019-07-24T17:28:47+08:00
   [INFO] Final Memory: 31M/3402M
   [INFO] 
------------------------------------------------------------------------
   [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on 
project frontend-plugin-core: Compilation failure: Compilation failure:
   [ERROR] 
/work/projects/BigDataArtisans/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[14,23]
 程序包org.apa.http不存在
   [ERROR] 
/work/projects/BigDataArtisans/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[66,42]
 无法访问org.ae.http.HttpResponse
   [ERROR] 找不到org.apache.http.HttpResponse的类文件
   [ERROR] 
/work/projects/BigDataArtisans/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[71,71]
 找不到符号
   [ERROR] 符号:   方法 getEntity()
   [ERROR] 位置: 类型为org.apache.http.client.methods.CloseableHttpResponse的变量 
response
   [ERROR] 
/work/projects/BigDataArtisans/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[102,64]
 无法访问org.he.http.message.AbstractHttpMessage
   [ERROR] 找不到org.apache.http.message.AbstractHttpMessage的类文件
   [ERROR] 
/work/projects/BigDataArtisans/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[104,49]
 无法访问org.he.http.HttpRequest
   [ERROR] 找不到org.apache.http.HttpRequest的类文件
   [ERROR] 
/work/projects/BigDataArtisans/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[118,15]
 找不到符号
   [ERROR] 符号:   类 HttpHost
   [ERROR] 位置: 类 
com.github.eirslett.maven.plugins.frontend.lib.DefaultFileDownloader
   [ERROR] 
/work/projects/BigDataArtisans/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[118,44]
 找不到符号
   [ERROR] 符号:   类 HttpHost
   [ERROR] 位置: 类 
com.github.eirslett.maven.plugins.frontend.lib.DefaultFileDownloader
   [ERROR] 
/work/projects/BigDataArtisans/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[147,9]
 找不到符号
   [ERROR] 符号:   类 HttpHost
   [ERROR] 位置: 类 
com.github.eirslett.maven.plugins.frontend.lib.DefaultFileDownloader
   [ERROR] 
/work/projects/BigDataArtisans/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[147,31]
 找不到符号
   [ERROR] 符号:   类 HttpHost
   [ERROR] 位置: 类 
com.github.eirslett.maven.plugins.frontend.lib.DefaultFileDownloader
   [ERROR] 
/work/projects/BigDataArtisans/frontend-maven-plugin/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/FileDownloader.java:[154,59]
 无法访问org.he.http.protocol.HttpCoreContext
   [ERROR] 找不到org.apache.http.protocol.HttpCoreContext的类文件
   [ERROR] -> [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/MojoFailureException
   [ERROR] 
   [ERROR] After correcting the problems, you can resume the build with the 
command
   [ERROR]   mvn <goals> -rf :frontend-plugin-core
   ```
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to