hangc0276 opened a new pull request #5617: update Maven version to 3.3.9+ in 
README.md
URL: https://github.com/apache/pulsar/pull/5617
 
 
   When compiled with maven version 3.0.4, it failed and report error message 
as follow: 
   ```
   [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test (default-test) on 
project pulsar-client-api: Execution default-test of goal 
org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test failed: Unable to 
load the mojo 'test' (or one of its required components) from the plugin 
'org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3': 
com.google.inject.ProvisionException: Guice provision errors:
   [ERROR] 
   [ERROR] 1) No implementation for 
org.codehaus.plexus.languages.java.jpms.LocationManager was bound.
   [ERROR] while locating org.apache.maven.plugin.surefire.SurefirePlugin
   [ERROR] at 
ClassRealm[plugin>org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3, 
parent: sun.misc.Launcher$AppClassLoader@5c647e05]
   [ERROR] while locating org.apache.maven.plugin.Mojo annotated with 
@com.google.inject.name.Named(value=org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test)
   [ERROR] 
   [ERROR] 1 error
   [ERROR] role: org.apache.maven.plugin.Mojo
   [ERROR] roleHint: 
org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test
   [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/PluginContainerException
   [ERROR] 
   [ERROR] After correcting the problems, you can resume the build with the 
command
   [ERROR]   mvn <goals> -rf :pulsar-client-api
   
   ```
   
   Error reference: 
   
`https://stackoverflow.com/questions/53211941/unable-to-load-the-mojo-test-org-apache-maven-pluginsmaven-surefire-plugin`
   
   When compiled with maven 3.3.3, it failed and report error message as 
follow: 
   ```
   [ERROR] Failed to execute goal 
net.alchim31.maven:scala-maven-plugin:4.0.1:add-source (default) on project 
flink: The plugin net.alchim31.maven:scala-maven-plugin:4.0.1 requires Maven 
version 3.3.9 -> [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/PluginIncompatibleException
   [ERROR] 
   [ERROR] After correcting the problems, you can resume the build with the 
command
   [ERROR]   mvn <goals> -rf :flink
   
   ```
   
   
   Only Maven 3.3.9+, the project can build success.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to