Login  Register

Re: intellij compiling issue

Posted by Aniket Adnaik on Sep 29, 2016; 10:38pm
URL: http://apache-carbondata-dev-mailing-list-archive.168.s1.nabble.com/intellij-compiling-issue-tp1527p1568.html

Following is a workaround for compilation error in Intellij:

1. After  cloning the project usin git, perform a local build in "format"
directory on command line outside of intellij
  $> cd incubator-carbondata/format
  $> mvn -DskipTests clean package

2. After you import project as maven project in intellij
   Go to "Build" tab and Click "*Make Project*" .
   *Please note:* Do NOT use "Rebuild Project" , it will do a clean build,
and it will remove previously compiled "format" artifacts causing build to
fail with  error "package org....carbondata.format does not exist."

Hope it helps.

Best Regards,
Aniket




On 27 Sep 2016 4:34 p.m., "Qingqing Zhou" <[hidden email]> wrote:

> Hi,
>
> I follow the build instruction and get the lastest carbon built
> successfully:
>
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache CarbonData :: Parent ........................ SUCCESS [
> 0.846 s]
> [INFO] Apache CarbonData :: Common ........................ SUCCESS [
> 1.539 s]
> [INFO] Apache CarbonData :: Format ........................ SUCCESS [
> 1.305 s]
> [INFO] Apache CarbonData :: Core .......................... SUCCESS [
> 3.547 s]
> [INFO] Apache CarbonData :: Processing .................... SUCCESS [
> 1.557 s]
> [INFO] Apache CarbonData :: Hadoop ........................ SUCCESS [
> 0.785 s]
> [INFO] Apache CarbonData :: Spark ......................... SUCCESS [
> 34.531 s]
> [INFO] Apache CarbonData :: Assembly ...................... SUCCESS [
> 3.412 s]
> [INFO] Apache CarbonData :: Examples ...................... SUCCESS [
> 6.425 s]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 54.116 s
>
>
> Then I reopen the project with intellij, I still get the compiling error:
>
> /home/qingqing/apache-carbondata/core/src/main/java/org/
> apache/carbondata/core/util/CarbonUtil.java
> Error:(1238, 45) java: package org.apache.carbondata.format does not exist
> Error:(1273, 35) java: package org.apache.carbondata.format does not exist
>
> Do I miss something?
>
> Thanks,
> Qingqing
> <[hidden email]>
>