JavaPackager icon indicating copy to clipboard operation
JavaPackager copied to clipboard

Unable to find the corresponding package for launch4j

Open squirrel-git opened this issue 1 year ago • 8 comments

Execution default of goal io.github.fvarrui:javapackager:1.7.6:package failed: Pl ugin io.github.fvarrui:javapackager:1.7.6 or one of its dependencies could not be resolved: Could not find artifact edu.sc.seis.launch4j:launch4j:jar:3.0.5

squirrel-git avatar Nov 05 '24 09:11 squirrel-git

Hi @squirrel-git I guess you are using Gradle. Could you share your JP config, please?

fvarrui avatar Nov 12 '24 18:11 fvarrui

Hi @squirrel-git I guess you are using Gradle. Could you share your JP config, please?

I also encountered this problem with my Maven, I searched all the image repositories but couldn't find this package or its corresponding version。

I really don't know what to do. Could you please take a look at the reason? Thank you very much

image

wakaka-i avatar Nov 18 '24 03:11 wakaka-i

Hi @IOvera and @squirrel-git! I've just tested it removing edu.sc.seis.launch4j from my local Maven repo, and worked as expected: image As you can see here, this library is downloaded from https://plugin.gradle.org, instead of https://repo.maven.apache.org. Not sure if I have something different on my laptop setup.

fvarrui avatar Nov 24 '24 10:11 fvarrui

I've just also checked $HOME/.m2/settings.xml but there's nothing related to this.

fvarrui avatar Nov 24 '24 10:11 fvarrui

Maybe is caused because you are trying to download dependencies from Maven a mirror (mirror.cloud.tencent.com)? edu.sc.seis.launch4j is only available on Gradle plugins repo.

fvarrui avatar Nov 24 '24 10:11 fvarrui

If you can't config another repo, maybe you can manually download and copy edu/sc/seis/launch4j/* into .m2/repository?

fvarrui avatar Nov 24 '24 10:11 fvarrui

edu.sc.seis.launch4j.zip 🤷‍♂️

fvarrui avatar Nov 24 '24 10:11 fvarrui

This fixed it for me:

buildscript {
    repositories {
        mavenCentral()
        gradlePluginPortal() //  <------ Add this
    }
    dependencies {
        classpath 'io.github.fvarrui:javapackager:1.7.6'
    }
}

idontusenumbers avatar Dec 04 '24 23:12 idontusenumbers