hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Changming Sun (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MAPREDUCE-3881) building fail under Windows
Date Sat, 18 Feb 2012 08:34:02 GMT

     [ https://issues.apache.org/jira/browse/MAPREDUCE-3881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Changming Sun updated MAPREDUCE-3881:
-------------------------------------

    Description: 
hadoop-mapreduce-project\hadoop-yarn\hadoop-yarn-common\pom.xml is not portable.

     <execution>
            <id>generate-version</id>
            <phase>generate-sources</phase>
            <configuration>
              <executable>scripts/saveVersion.sh</executable>
              <arguments>
                <argument>${project.version}</argument>
                <argument>${project.build.directory}</argument>
              </arguments>
            </configuration>
            <goals>
              <goal>exec</goal>
            </goals>
          </execution>

when I built it under windows , I got a such error:

[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:exec (gen
erate-version) on project hadoop-yarn-common: Command execution failed. Cannot r
un program "scripts\saveVersion.sh" (in directory "D:\os\hadoopcommon\hadoop-map
reduce-project\hadoop-yarn\hadoop-yarn-common"): CreateProcess error=2, ????????
? -> [Help 1]

we should modify it like this: (copied from hadoop-common-project\hadoop-common\pom.xml)
            <configuration>
              <target>
                <mkdir dir="${project.build.directory}/generated-sources/java"/>
                <exec executable="sh">
                  <arg
                      line="${basedir}/dev-support/saveVersion.sh ${project.version} ${project.build.directory}/generated-sources/java"/>
                </exec>
              </target>
            </configuration>
          </execution>

  was:
hadoop-mapreduce-project\hadoop-yarn\hadoop-yarn-common\pom.xml is not portable.

     <execution>
            <id>generate-version</id>
            <phase>generate-sources</phase>
            <configuration>
              <executable>scripts/saveVersion.sh</executable>
              <arguments>
                <argument>${project.version}</argument>
                <argument>${project.build.directory}</argument>
              </arguments>
            </configuration>
            <goals>
              <goal>exec</goal>
            </goals>
          </execution>

when I built it under windows , I got a such error:

[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:exec (gen
erate-version) on project hadoop-yarn-common: Command execution failed. Cannot r
un program "scripts\saveVersion.sh" (in directory "D:\os\hadoopcommon\hadoop-map
reduce-project\hadoop-yarn\hadoop-yarn-common"): CreateProcess error=2, ????????
? -> [Help 1]

we can modify it like this: (copied from hadoop-common-project\hadoop-common\pom.xml)
            <configuration>
              <target>
                <mkdir dir="${project.build.directory}/generated-sources/java"/>
                <exec executable="sh">
                  <arg
                      line="${basedir}/dev-support/saveVersion.sh ${project.version} ${project.build.directory}/generated-sources/java"/>
                </exec>
              </target>
            </configuration>
          </execution>

    
> building fail under Windows
> ---------------------------
>
>                 Key: MAPREDUCE-3881
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3881
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: build
>         Environment: D:\os\hadoopcommon>mvn --version
> Apache Maven 3.0.4 (r1232337; 2012-01-17 16:44:56+0800)
> Maven home: C:\portable\maven\bin\..
> Java version: 1.7.0_02, vendor: Oracle Corporation
> Java home: C:\Program Files (x86)\Java\jdk1.7.0_02\jre
> Default locale: zh_CN, platform encoding: GBK
> OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
>            Reporter: Changming Sun
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> hadoop-mapreduce-project\hadoop-yarn\hadoop-yarn-common\pom.xml is not portable.
>      <execution>
>             <id>generate-version</id>
>             <phase>generate-sources</phase>
>             <configuration>
>               <executable>scripts/saveVersion.sh</executable>
>               <arguments>
>                 <argument>${project.version}</argument>
>                 <argument>${project.build.directory}</argument>
>               </arguments>
>             </configuration>
>             <goals>
>               <goal>exec</goal>
>             </goals>
>           </execution>
> when I built it under windows , I got a such error:
> [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:exec (gen
> erate-version) on project hadoop-yarn-common: Command execution failed. Cannot r
> un program "scripts\saveVersion.sh" (in directory "D:\os\hadoopcommon\hadoop-map
> reduce-project\hadoop-yarn\hadoop-yarn-common"): CreateProcess error=2, ????????
> ? -> [Help 1]
> we should modify it like this: (copied from hadoop-common-project\hadoop-common\pom.xml)
>             <configuration>
>               <target>
>                 <mkdir dir="${project.build.directory}/generated-sources/java"/>
>                 <exec executable="sh">
>                   <arg
>                       line="${basedir}/dev-support/saveVersion.sh ${project.version}
${project.build.directory}/generated-sources/java"/>
>                 </exec>
>               </target>
>             </configuration>
>           </execution>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message