[ 
https://issues.apache.org/jira/browse/HADOOP-19790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18055321#comment-18055321
 ] 

ASF GitHub Bot commented on HADOOP-19790:
-----------------------------------------

pan3793 commented on code in PR #8214:
URL: https://github.com/apache/hadoop/pull/8214#discussion_r2744342730


##########
BUILDING.txt:
##########
@@ -63,7 +63,11 @@ Refer to  dev-support/docker/Dockerfile):
   $ sudo apt-get update
   $ sudo apt-get -y install openjdk-17-jdk
 * Maven
-  $ sudo apt-get -y install maven
+  Most package managers do not install required version of Maven i.e. 3.9.11 
or later.
+  Following commands download and install Maven manually
+  $ curl -L 
https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.11/apache-maven-3.9.11-bin.tar.gz
 > apache-maven-3.9.11-bin.tar.gz
+  $ tar -zxvf apache-maven-3.9.11-bin.tar.gz -C /opt

Review Comment:
   @steveloughran, if you look at the context, no installation does such 
verification. can we make the guide simple to match the context for now?
   
   later we can consider Maven Wrapper https://maven.apache.org/tools/wrapper/, 
then `./mvnw` would automatically trigger the requested version of Maven 
downloading, which is a much simpler way. (my previous try was abandoned 
because I didn't figure out how to let Yetus invoke `./mvnw` instead of `mvn` 
under `$PATH`, but it's simple if we keep `mvn` for `Yetus` and add a `./mvnw` 
as an alternative for developers)





> Build Failing on Trunk
> ----------------------
>
>                 Key: HADOOP-19790
>                 URL: https://issues.apache.org/jira/browse/HADOOP-19790
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 3.5.0
>            Reporter: Anuj Modi
>            Assignee: Anuj Modi
>            Priority: Blocker
>              Labels: pull-request-available
>
> While trying to build at hadoop level, build is failing on trunk.
> Commit: 
> [https://github.com/apache/hadoop/commit/b3ce394e5aba3cdaf326b87e7cfb6be898ddd48d]
> Error:
> [ERROR] Failed to execute goal 
> io.github.ascopes:protobuf-maven-plugin:1.2.0:generate (default) on project 
> hadoop-yarn-csi: Execution default of goal 
> io.github.ascopes:protobuf-maven-plugin:1.2.0:generate failed: Unable to load 
> the mojo 'generate' (or one of its required components) from the plugin 
> 'io.github.ascopes:protobuf-maven-plugin:1.2.0': 
> com.google.inject.ProvisionException: Unable to provision, see the following 
> errors:
> [ERROR] 
> [ERROR] 1) No implementation for 
> io.github.ascopes.protobufmavenplugin.generate.SourceCodeGenerator was bound.
> [ERROR]   while locating 
> io.github.ascopes.protobufmavenplugin.MainGenerateMojo
> [ERROR]   at ClassRealm[plugin>io.github.ascopes:protobuf-maven-plugin:1.2.0, 
> parent: jdk.internal.loader.ClassLoaders$AppClassLoader@30946e09] (via 
> modules: org.eclipse.sisu.wire.WireModule -> 
> org.eclipse.sisu.plexus.PlexusBindingModule)
> [ERROR]   while locating org.apache.maven.plugin.Mojo annotated with 
> @com.google.inject.name.Named(value="io.github.ascopes:protobuf-maven-plugin:1.2.0:generate")
> [ERROR] 
> [ERROR] 1 error
> [ERROR]       role: org.apache.maven.plugin.Mojo
> [ERROR]   roleHint: io.github.ascopes:protobuf-maven-plugin:1.2.0:generate



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to