综合编程

MavenCapsule MavenCapsule

微信扫一扫,分享到朋友圈

MavenCapsule MavenCapsule

Is there any alternative to MavenCapsule
gradle plugin

My spring-boot project is generating a >100MB executable fat jar and is inconvenient to transfer to QA and Production.

Based on this
I created a test/sample spring-boot+ mavenCapsule project and able to generate thin jar which downloads(and cache) dependencies during execution

But it doesn’t work for below cases

  • dependency without version

    with compile(‘mysql:mysql-connector-java’) I get below error during execution

CAPSULE: Transfer failed: capsule.org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact mysql:mysql-connector-java:pom:null in central (https://repo1.maven.org/maven2/)
  • project dependency not packaged

    with compile project(‘:projects:common-project’)

Check your maven version, I had a similar problem with maven 3.0.x. It has to do with the aether version with maven previos to 3.1.x.

Upgrading to 3.3.x solved the issue.

More information here: https://github.com/chrisdchristo/capsule-maven-plugin/issues/4

基于Docker搭建Nginx图片服务器

上一篇

罕见的苹果运动鞋拍卖价超过16000美元

下一篇

你也可能喜欢

评论已经被关闭。

插入图片

热门栏目

MavenCapsule MavenCapsule

长按储存图像,分享给朋友