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

Ran Tao updated HUDI-6111:
--------------------------
    Description: 
when i build hudi source from root dir, it's ok.
but when i build a certain module such as hudi-cli, it cause

 

```

[INFO] — maven-checkstyle-plugin:3.0.0:check (default) @ hudi-cli —
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:46 min
[INFO] Finished at: 2023-04-20T15:19:25+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:check (default) on 
project hudi-cli: Failed during checkstyle configuration: cannot initialize 
module TreeWalker - cannot initialize module ImportControl - illegal value 
'/Users/xxx/GitHub/hudi/hudi-cli/style/import-control.xml' for property 'file': 
com.puppycrawl.tools.checkstyle.api.CheckstyleException: Unable to find: 
/Users/xxx/GitHub/hudi/hudi-cli/style/import-control.xml -> [Help 1]

```

The problem seems clear that import-control.xml is not found. because 
import-control.xml belongs to root style dir. 

I have tried many submodules, they also have this problem. I wonder whether 
hudi design build like this or my individual error.

My env is:

mac os m1 pro. 13.2.1 

jdk 8

mvn 3.6.3

 

  was:
when i build hudi source from root dir, it's ok.
but when i build a certain module such as hudi-cli, it cause

 

```

[INFO] --- maven-checkstyle-plugin:3.0.0:check (default) @ hudi-cli ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:46 min
[INFO] Finished at: 2023-04-20T15:19:25+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:check (default) on 
project hudi-cli: Failed during checkstyle configuration: cannot initialize 
module TreeWalker - cannot initialize module ImportControl - illegal value 
'/Users/chucheng/GitHub/hudi/hudi-cli/style/import-control.xml' for property 
'file': com.puppycrawl.tools.checkstyle.api.CheckstyleException: Unable to 
find: /Users/xxx/GitHub/hudi/hudi-cli/style/import-control.xml -> [Help 1]

```

The problem seems clear that import-control.xml is not found. because 
import-control.xml belongs to root style dir. 

I have tried many submodules, they also have this problem. I wonder whether 
hudi design build like this or my individual error.

My env is:

mac os m1 pro. 13.2.1 

jdk 8

mvn 3.6.3

 


> Build hudi submodule cause checkstyle not found error
> -----------------------------------------------------
>
>                 Key: HUDI-6111
>                 URL: https://issues.apache.org/jira/browse/HUDI-6111
>             Project: Apache Hudi
>          Issue Type: Bug
>          Components: compile
>            Reporter: Ran Tao
>            Priority: Major
>
> when i build hudi source from root dir, it's ok.
> but when i build a certain module such as hudi-cli, it cause
>  
> ```
> [INFO] — maven-checkstyle-plugin:3.0.0:check (default) @ hudi-cli —
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time:  01:46 min
> [INFO] Finished at: 2023-04-20T15:19:25+08:00
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:check (default) on 
> project hudi-cli: Failed during checkstyle configuration: cannot initialize 
> module TreeWalker - cannot initialize module ImportControl - illegal value 
> '/Users/xxx/GitHub/hudi/hudi-cli/style/import-control.xml' for property 
> 'file': com.puppycrawl.tools.checkstyle.api.CheckstyleException: Unable to 
> find: /Users/xxx/GitHub/hudi/hudi-cli/style/import-control.xml -> [Help 1]
> ```
> The problem seems clear that import-control.xml is not found. because 
> import-control.xml belongs to root style dir. 
> I have tried many submodules, they also have this problem. I wonder whether 
> hudi design build like this or my individual error.
> My env is:
> mac os m1 pro. 13.2.1 
> jdk 8
> mvn 3.6.3
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to