You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Alejandro Abdelnur (JIRA)" <ji...@apache.org> on 2011/08/09 00:02:27 UTC

[jira] [Created] (HADOOP-7528) Maven build fails in Windows

Maven build fails in Windows
----------------------------

                 Key: HADOOP-7528
                 URL: https://issues.apache.org/jira/browse/HADOOP-7528
             Project: Hadoop Common
          Issue Type: Sub-task
          Components: build
    Affects Versions: 0.23.0
         Environment: Windows
            Reporter: Alejandro Abdelnur
            Assignee: Alejandro Abdelnur
             Fix For: 0.23.0


Maven does not run in window for the following reasons:

* Enforcer plugin restricts build to Unix
* Ant run snippets to create TAR are not cygwin friendly

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-7528) Maven build fails in Windows

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-7528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081817#comment-13081817 ] 

Hudson commented on HADOOP-7528:
--------------------------------

Integrated in Hadoop-Common-trunk-Commit #713 (See [https://builds.apache.org/job/Hadoop-Common-trunk-Commit/713/])
    HADOOP-7528. Maven build fails in Windows. Contributed by Alejandro Abdelnur.

tomwhite : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1155448
Files : 
* /hadoop/common/trunk/hadoop-assemblies/pom.xml
* /hadoop/common/trunk/pom.xml
* /hadoop/common/trunk/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common/pom.xml
* /hadoop/common/trunk/hadoop-project/pom.xml


> Maven build fails in Windows
> ----------------------------
>
>                 Key: HADOOP-7528
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7528
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: build
>    Affects Versions: 0.23.0
>         Environment: Windows
>            Reporter: Alejandro Abdelnur
>            Assignee: Alejandro Abdelnur
>             Fix For: 0.23.0
>
>         Attachments: HADOOP-7528v1.patch
>
>
> Maven does not run in window for the following reasons:
> * Enforcer plugin restricts build to Unix
> * Ant run snippets to create TAR are not cygwin friendly

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HADOOP-7528) Maven build fails in Windows

Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-7528?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alejandro Abdelnur updated HADOOP-7528:
---------------------------------------

    Status: Patch Available  (was: Open)

Tested that build works on Windows7, Centos 5.5 & OSX 10.6.8

> Maven build fails in Windows
> ----------------------------
>
>                 Key: HADOOP-7528
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7528
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: build
>    Affects Versions: 0.23.0
>         Environment: Windows
>            Reporter: Alejandro Abdelnur
>            Assignee: Alejandro Abdelnur
>             Fix For: 0.23.0
>
>         Attachments: HADOOP-7528v1.patch
>
>
> Maven does not run in window for the following reasons:
> * Enforcer plugin restricts build to Unix
> * Ant run snippets to create TAR are not cygwin friendly

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-7528) Maven build fails in Windows

Posted by "Uma Maheswara Rao G (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-7528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081535#comment-13081535 ] 

Uma Maheswara Rao G commented on HADOOP-7528:
---------------------------------------------

I applied the patch,
I could build successfully :-)

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Hadoop Project POM ......................... SUCCESS [1.111s]
[INFO] Apache Hadoop Assemblies .......................... SUCCESS [1.126s]
[INFO] Apache Hadoop Annotations ......................... SUCCESS [1.345s]
[INFO] Apache Hadoop Common .............................. SUCCESS [39.528s]
[INFO] Apache Hadoop Main ................................ SUCCESS [0.141s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 43.595s
[INFO] Finished at: Tue Aug 09 14:24:29 IST 2011
[INFO] Final Memory: 16M/53M



Thanks Alejandro!

can you give me command to  apply patch for cross projects(cross projects... hadoop-project, hadoop-assemblies, hadoop-annotations..etc).
Because this patch contains the changes from hadoop-project, hadoop-assemblies, hadoop-annotations..etc.

Other than this, changes are looks good.

> Maven build fails in Windows
> ----------------------------
>
>                 Key: HADOOP-7528
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7528
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: build
>    Affects Versions: 0.23.0
>         Environment: Windows
>            Reporter: Alejandro Abdelnur
>            Assignee: Alejandro Abdelnur
>             Fix For: 0.23.0
>
>         Attachments: HADOOP-7528v1.patch
>
>
> Maven does not run in window for the following reasons:
> * Enforcer plugin restricts build to Unix
> * Ant run snippets to create TAR are not cygwin friendly

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-7528) Maven build fails in Windows

Posted by "Uma Maheswara Rao G (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-7528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081458#comment-13081458 ] 

Uma Maheswara Rao G commented on HADOOP-7528:
---------------------------------------------

Hi Alejandro,

Looks this patch contains the changes from multiple folders (hadoop-project, hadoop-assemblies, hadoop-annotations..etc).
Befor i used to apply the patch by just right click on the root folder and apply patch from SVN options. But now it does not work for me with this patch. 
I need to apply patch manually. Any commands you have for applying the patch directly across the projects in windows?

--Thanks

> Maven build fails in Windows
> ----------------------------
>
>                 Key: HADOOP-7528
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7528
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: build
>    Affects Versions: 0.23.0
>         Environment: Windows
>            Reporter: Alejandro Abdelnur
>            Assignee: Alejandro Abdelnur
>             Fix For: 0.23.0
>
>         Attachments: HADOOP-7528v1.patch
>
>
> Maven does not run in window for the following reasons:
> * Enforcer plugin restricts build to Unix
> * Ant run snippets to create TAR are not cygwin friendly

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-7528) Maven build fails in Windows

Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-7528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081625#comment-13081625 ] 

Alejandro Abdelnur commented on HADOOP-7528:
--------------------------------------------

Uma, from trunk dir run

{code}
trunk > patch -p0 < HADOOP-7528v1.patch
{code}

Thxs


> Maven build fails in Windows
> ----------------------------
>
>                 Key: HADOOP-7528
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7528
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: build
>    Affects Versions: 0.23.0
>         Environment: Windows
>            Reporter: Alejandro Abdelnur
>            Assignee: Alejandro Abdelnur
>             Fix For: 0.23.0
>
>         Attachments: HADOOP-7528v1.patch
>
>
> Maven does not run in window for the following reasons:
> * Enforcer plugin restricts build to Unix
> * Ant run snippets to create TAR are not cygwin friendly

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-7528) Maven build fails in Windows

Posted by "Tom White (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-7528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081786#comment-13081786 ] 

Tom White commented on HADOOP-7528:
-----------------------------------

+1

Tests pass and test-patch gives the following (no new tests since this is a build change):

{noformat}
-1 overall.  

    +1 @author.  The patch does not contain any @author tags.

    -1 tests included.  The patch doesn't appear to include any new or modified tests.
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 findbugs.  The patch does not introduce any new Findbugs (version 1.3.9) warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

    +1 system test framework.  The patch passed system test framework compile.
{noformat}

> Maven build fails in Windows
> ----------------------------
>
>                 Key: HADOOP-7528
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7528
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: build
>    Affects Versions: 0.23.0
>         Environment: Windows
>            Reporter: Alejandro Abdelnur
>            Assignee: Alejandro Abdelnur
>             Fix For: 0.23.0
>
>         Attachments: HADOOP-7528v1.patch
>
>
> Maven does not run in window for the following reasons:
> * Enforcer plugin restricts build to Unix
> * Ant run snippets to create TAR are not cygwin friendly

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-7528) Maven build fails in Windows

Posted by "Uma Maheswara Rao G (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-7528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081634#comment-13081634 ] 

Uma Maheswara Rao G commented on HADOOP-7528:
---------------------------------------------

Thanks Alejandro, it works for me :-)

Patch looks good.
+1 from my side.

> Maven build fails in Windows
> ----------------------------
>
>                 Key: HADOOP-7528
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7528
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: build
>    Affects Versions: 0.23.0
>         Environment: Windows
>            Reporter: Alejandro Abdelnur
>            Assignee: Alejandro Abdelnur
>             Fix For: 0.23.0
>
>         Attachments: HADOOP-7528v1.patch
>
>
> Maven does not run in window for the following reasons:
> * Enforcer plugin restricts build to Unix
> * Ant run snippets to create TAR are not cygwin friendly

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HADOOP-7528) Maven build fails in Windows

Posted by "Tom White (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-7528?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom White updated HADOOP-7528:
------------------------------

      Resolution: Fixed
    Hadoop Flags: [Reviewed]
          Status: Resolved  (was: Patch Available)

I've just committed this. Thanks Alejandro!

> Maven build fails in Windows
> ----------------------------
>
>                 Key: HADOOP-7528
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7528
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: build
>    Affects Versions: 0.23.0
>         Environment: Windows
>            Reporter: Alejandro Abdelnur
>            Assignee: Alejandro Abdelnur
>             Fix For: 0.23.0
>
>         Attachments: HADOOP-7528v1.patch
>
>
> Maven does not run in window for the following reasons:
> * Enforcer plugin restricts build to Unix
> * Ant run snippets to create TAR are not cygwin friendly

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HADOOP-7528) Maven build fails in Windows

Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-7528?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alejandro Abdelnur updated HADOOP-7528:
---------------------------------------

    Attachment: HADOOP-7528v1.patch

Patch removes Unix restriction and makes TAR scripts cygwin friendly. In addition handles JDK tools.jar in the same way it is done for Linux (Mac JDK is the green dog).

> Maven build fails in Windows
> ----------------------------
>
>                 Key: HADOOP-7528
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7528
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: build
>    Affects Versions: 0.23.0
>         Environment: Windows
>            Reporter: Alejandro Abdelnur
>            Assignee: Alejandro Abdelnur
>             Fix For: 0.23.0
>
>         Attachments: HADOOP-7528v1.patch
>
>
> Maven does not run in window for the following reasons:
> * Enforcer plugin restricts build to Unix
> * Ant run snippets to create TAR are not cygwin friendly

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira