moditect / layrry

A Runner and API for Layered Java Applications
Apache License 2.0
333 stars 33 forks source link

Use MIMA #218

Open cstamas opened 1 year ago

cstamas commented 1 year ago

Solves #217

A rough draft how could it look like, but I see a big influence of shrinkwrap, hence, IMHO this could be radically simplified.

Also, unsure is "LocalRepository" layrri specific (I guess it is), but just FYI: new feature of resolver is "chained local repository", so it is able to use multiple maven local repositories as well, might be worth to factor it in.

aalmiray commented 1 year ago

FWIW local repository is just a dir with JARs with or without POMs. We need this option to resolve JARs when network is not available. There may not be POMs nor maven-metadata.xml and that's fine.

cstamas commented 1 year ago

Hm, it seems GH env gets detected and as those things are at "standard places" MIMA tries (and fails) to decrypt them?

Failed to decrypt password for server github: org.sonatype.plexus.components.sec.dispatcher.SecDispatcherException: java.io.FileNotFoundException: /home/runner/.m2/settings-security.xml (No such file or directory) @ server: github

My assumption (unverified):

@aalmiray can you confirm?

EDIT: https://github.com/maveniverse/mima/issues/2