rameshmani
rameshmani

Reputation: 825

spring-boot gradle thin jar 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

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/)

Upvotes: 1

Views: 958

Answers (2)

rameshmani
rameshmani

Reputation: 825

Alternative : https://github.com/dsyer/spring-boot-thin-launcher

Works fine for sample project, will update after using in real/big project.

Upvotes: 1

Awi
Awi

Reputation: 295

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

Upvotes: 0

Related Questions