Deploy large releases in Maven Central

  • Are there artifacts in the Maven Central repository?
  • Is there a size limit on how large each artifact is?

I ask because some artifacts can become very large, and I am worried that this may cause problems in the line.

I will give you a simple example. My library depends on the Boost C ++ library. Boost starts with 241 MB of sources (75 MB compression). When you compile it, you get 2.78 GB of binaries (200 MB compression) for a combination of compilers / platforms (i.e. Visual Studio 2010, Windows, 32-bit). Then you need to multiply this number by the number of platforms you want to support.

On the one hand, I do not want users to build Boost, because it is a very painful and lengthy process. On the other hand, I feel that downloading GB artifacts for release is not the right way;)

My library depends on a very small subset of Boost, so technically speaking, I can only download this subset (costing about 10 MB per platform). I am worried about what will happen in the long run. What happens if more people start using Boost and each of them downloads a subset of which they depend ...?

See http://sourceforge.net/projects/boost/files/boost-binaries/1.44.0/ for an example of how Boost modules can be split. As you can see, the individual modules are quite small.

: http://maven.40175.n5.nabble.com/Best-practice-re-releasing-large-assembly-artifacts-td3250739.html, . , .

, .

+3
2

. .

+2

, , . , Central, , .

, , , .

+1

Source: https://habr.com/ru/post/1788221/


All Articles