sofastack / sofa-registry

SOFARegistry is a production-level, low-latency, high-availability service registry powered by Ant Financial.
https://www.sofastack.tech/sofa-registry/docs/Home
Apache License 2.0
653 stars 247 forks source link

add tarLongFileMode=posix configuration for maven-assembly-plugin #254

Closed liqipeng closed 2 years ago

liqipeng commented 2 years ago

Motivation:

When I build sofa-registry on Mac Pro, a error encountered:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:3.0.0:single (distribution-session) on project registry-distribution-all: Execution distribution-session of goal org.apache.maven.plugins:maven-assembly-plugin:3.0.0:single failed: group id '707420648' is too big ( > 2097151 ). Use STAR or POSIX extensions to overcome this limit -> [Help 1]

Modification:

add posix to Maven assembly plugin configuration.

Result:

Solved the error.

liqipeng commented 2 years ago

This configuration works on my Mac Pro, windows 10 and CentOS 7 server.

https://maven.apache.org/plugins/maven-assembly-plugin/faq.html#tarFileModesc

codecov[bot] commented 2 years ago

Codecov Report

Merging #254 (fb51611) into master (13028d0) will increase coverage by 0.02%. The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #254      +/-   ##
============================================
+ Coverage     76.64%   76.67%   +0.02%     
  Complexity       48       48              
============================================
  Files           439      439              
  Lines         15471    15471              
  Branches       1505     1505              
============================================
+ Hits          11858    11862       +4     
+ Misses         2954     2951       -3     
+ Partials        659      658       -1     
Impacted Files Coverage Δ
...ta/lease/impl/DefaultCrossDcMetaServerManager.java 84.61% <0.00%> (-1.54%) :arrow_down:
...erver/meta/slot/arrange/ScheduledSlotArranger.java 84.29% <0.00%> (+4.13%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 13028d0...fb51611. Read the comment docs.