You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Shockang (Jira)" <ji...@apache.org> on 2021/10/17 14:18:00 UTC

[jira] [Created] (SPARK-37030) Maven build failed in windows!

Shockang created SPARK-37030:
--------------------------------

             Summary: Maven build failed in windows!
                 Key: SPARK-37030
                 URL: https://issues.apache.org/jira/browse/SPARK-37030
             Project: Spark
          Issue Type: Bug
          Components: Build
    Affects Versions: 3.2.0
         Environment: OS: Windows 10 Professional

OS Version: 21H1

Maven Version: 3.6.3

 
            Reporter: Shockang
             Fix For: 3.2.0


I pulled the latest Spark master code on my local windows 10 computer and executed the following command:
{code:java}
mvn -DskipTests clean install{code}
Build failed!

!image-2021-10-17-21-55-33-844.png!
{code:java}

Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (default) on project spark-core_2.12: An Ant BuildException has occured: Execute failed: java.io.IOException: Cannot run program "bash" (in directory "C:\bigdata\spark\core"): CreateProcess error=2{code}
It seems that the plugin: maven-antrun-plugin cannot run because of windows no bash. 

The following code comes from pom.xml in spark-core module.
{code:java}
<plugin>

  <groupId>org.apache.maven.plugins</groupId>

  <artifactId>maven-antrun-plugin</artifactId>

  <executions>

    <execution>

      <phase>generate-resources</phase>

      <configuration>

        <!-- Execute the shell script to generate the spark build information. -->

        <target>

          <exec executable="bash">

            <arg value="${project.basedir}/../build/spark-build-info"/>

            <arg value="${project.build.directory}/extra-resources"/>

            <arg value="${project.version}"/>

          </exec>

        </target>

      </configuration>

      <goals>

        <goal>run</goal>

      </goals>

    </execution>

  </executions>

</plugin>

{code}
 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org