HyukjinKwon commented on code in PR #47402:
URL: https://github.com/apache/spark/pull/47402#discussion_r1709147187


##########
assembly/pom.xml:
##########
@@ -159,6 +169,78 @@
             </target>
           </configuration>
       </plugin>
+      <plugin>
+        <!--
+          Here we download ammonite dependency required for Spark Connect REPL 
and copy
+          Spark Connect client to target's jars/connect-repl directory. Both 
jars will
+          only be loaded when we run Spark Connect shell, see also
+          AbstractCommandBuilder.buildClassPath and SPARK-48936.
+        -->
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>exec-maven-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>get-ammonite-jar</id>
+            <phase>package</phase>
+            <goals>
+              <goal>exec</goal>
+            </goals>
+            <configuration>
+              <executable>${basedir}/../build/mvn</executable>
+              <arguments>
+                <argument>dependency:copy</argument>

Review Comment:
   `connect-client-jvm` is not the part of the default packaging so `ammonite` 
wouldn't be available. Another option is shading but it's too much .. ammonite 
is too large and unstable in my opinion, and we should actually get rid of this 
when possible.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to