Got this to work with the hack of replace the original code in pom.xml
with the following lines:
                <echo file="${project.build.directory}/copynativelibs.sh">
                                        pp=`echo 
"/cygdrive/${project.build.directory}"|sed -e
's/://g'|sed -e 's/\\\\/\\//g'`
                                        echo "pp is $pp"
                    if [ `ls $pp/nativelib | wc -l` -ne 0 ]; then
                      cp -PR $pp/nativelib/lib*
$pp/${project.artifactId}-${project.version}/${project.artifactId}-${project.version}/lib/native/${build.platform}
                    fi
                </echo>

Is this something we should fix, to take care of building on all platforms?

On Wed, Oct 5, 2011 at 4:51 PM, Mayuresh <[email protected]> wrote:
> Hi,
>
> I am trying to build cygwin on windos on cygwin and the build fails
> with the following error:
> [INFO] [antrun:run {execution: package}]
> [INFO] Executing tasks
>
> main:
>    [mkdir] Created dir: 
> D:\workspace\mkshirsa\hbase-trunk\target\hbase-0.93-SNA
> PSHOT\hbase-0.93-SNAPSHOT\lib\native\${build.platform}
>     [exec] ls: cannot access D:workspacemkshirsahbase-trunktarget/nativelib: 
> No
>  such file or directory
>     [exec] tar (child): Cannot connect to D: resolve failed
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] An Ant BuildException has occured: exec returned: 3328
>
> Apparently the buildmail.xml file which is generated has the following 
> contents:
>  <echo file="D:\workspace\mkshirsa\hbase-trunk\target/copynativelibs.sh">if
> [ `ls D:\workspace\mkshirsa\hbase-trunk\target/nativelib | wc -l` -ne
> 0 ]; then
>                      cp -PR
> D:\workspace\mkshirsa\hbase-trunk\target/nativelib/lib*
> D:\workspace\mkshirsa\hbase-trunk\target/hbase-0.93-SNAPSHOT/hbase-0.93-SNAPSHOT/lib/native/${build.platform}
>                    fi</echo>
>
> Has anyone faced this before?
>
> --
> -Mayuresh
>



-- 
-Mayuresh

Reply via email to