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 "Chris Nauroth (JIRA)" <ji...@apache.org> on 2012/09/26 09:00:07 UTC

[jira] [Created] (HADOOP-8848) hadoop-mapreduce-client-core fails compilation in Eclipse due to missing Avro-generated classes

Chris Nauroth created HADOOP-8848:
-------------------------------------

             Summary: hadoop-mapreduce-client-core fails compilation in Eclipse due to missing Avro-generated classes
                 Key: HADOOP-8848
                 URL: https://issues.apache.org/jira/browse/HADOOP-8848
             Project: Hadoop Common
          Issue Type: Improvement
          Components: build
    Affects Versions: 3.0.0
            Reporter: Chris Nauroth
            Assignee: Chris Nauroth


After importing all of hadoop-common trunk into Eclipse with the m2e plugin, the Avro-generated classes in hadoop-mapreduce-client-core don't show up on Eclipse's classpath.  This causes compilation errors for anything that depends on those classes.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HADOOP-8848) hadoop-mapreduce-client-core fails compilation in Eclipse due to missing Avro-generated classes

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

Chris Nauroth commented on HADOOP-8848:
---------------------------------------

The attached patch fixes the problem in the module's pom.xml by adding the Avro-generated source folder using build-helper-maven-plugin.  Other modules have used a similar strategy.  (See hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/pom.xml.)  With this patch in place, it's possible to do a fresh import of all of hadoop-common trunk into Eclipse and see it compile successfully immediately.

Note that this problem did not harm the typical Maven build.  It was just a problem for fresh project imports into Eclipse.

                
> hadoop-mapreduce-client-core fails compilation in Eclipse due to missing Avro-generated classes
> -----------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-8848
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8848
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: build
>    Affects Versions: 3.0.0
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>         Attachments: HADOOP-8848.patch
>
>
> After importing all of hadoop-common trunk into Eclipse with the m2e plugin, the Avro-generated classes in hadoop-mapreduce-client-core don't show up on Eclipse's classpath.  This causes compilation errors for anything that depends on those classes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HADOOP-8848) hadoop-mapreduce-client-core fails compilation in Eclipse due to missing Avro-generated classes

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

Chris Nauroth updated HADOOP-8848:
----------------------------------

    Status: Patch Available  (was: Open)
    
> hadoop-mapreduce-client-core fails compilation in Eclipse due to missing Avro-generated classes
> -----------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-8848
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8848
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: build
>    Affects Versions: 3.0.0
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>         Attachments: HADOOP-8848.patch
>
>
> After importing all of hadoop-common trunk into Eclipse with the m2e plugin, the Avro-generated classes in hadoop-mapreduce-client-core don't show up on Eclipse's classpath.  This causes compilation errors for anything that depends on those classes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HADOOP-8848) hadoop-mapreduce-client-core fails compilation in Eclipse due to missing Avro-generated classes

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

Hadoop QA commented on HADOOP-8848:
-----------------------------------

{color:red}-1 overall{color}.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12546648/HADOOP-8848.patch
  against trunk revision .

    {color:green}+1 @author{color}.  The patch does not contain any @author tags.

    {color:red}-1 tests included{color}.  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.

    {color:green}+1 javac{color}.  The applied patch does not increase the total number of javac compiler warnings.

    {color:green}+1 javadoc{color}.  The javadoc tool did not generate any warning messages.

    {color:green}+1 eclipse:eclipse{color}.  The patch built with eclipse:eclipse.

    {color:green}+1 findbugs{color}.  The patch does not introduce any new Findbugs (version 1.3.9) warnings.

    {color:green}+1 release audit{color}.  The applied patch does not increase the total number of release audit warnings.

    {color:green}+1 core tests{color}.  The patch passed unit tests in hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core.

    {color:green}+1 contrib tests{color}.  The patch passed contrib unit tests.

Test results: https://builds.apache.org/job/PreCommit-HADOOP-Build/1525//testReport/
Console output: https://builds.apache.org/job/PreCommit-HADOOP-Build/1525//console

This message is automatically generated.
                
> hadoop-mapreduce-client-core fails compilation in Eclipse due to missing Avro-generated classes
> -----------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-8848
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8848
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: build
>    Affects Versions: 3.0.0
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>         Attachments: HADOOP-8848.patch
>
>
> After importing all of hadoop-common trunk into Eclipse with the m2e plugin, the Avro-generated classes in hadoop-mapreduce-client-core don't show up on Eclipse's classpath.  This causes compilation errors for anything that depends on those classes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HADOOP-8848) hadoop-mapreduce-client-core fails compilation in Eclipse due to missing Avro-generated classes

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

Chris Nauroth updated HADOOP-8848:
----------------------------------

    Attachment: HADOOP-8848.patch
    
> hadoop-mapreduce-client-core fails compilation in Eclipse due to missing Avro-generated classes
> -----------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-8848
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8848
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: build
>    Affects Versions: 3.0.0
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>         Attachments: HADOOP-8848.patch
>
>
> After importing all of hadoop-common trunk into Eclipse with the m2e plugin, the Avro-generated classes in hadoop-mapreduce-client-core don't show up on Eclipse's classpath.  This causes compilation errors for anything that depends on those classes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira