Unable to find the corresponding package for launch4j
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
Hi @squirrel-git I guess you are using Gradle. Could you share your JP config, please?
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
Hi @IOvera and @squirrel-git!
I've just tested it removing edu.sc.seis.launch4j from my local Maven repo, and worked as expected:
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.
I've just also checked $HOME/.m2/settings.xml but there's nothing related to this.
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.
If you can't config another repo, maybe you can manually download and copy edu/sc/seis/launch4j/* into .m2/repository?
This fixed it for me:
buildscript {
repositories {
mavenCentral()
gradlePluginPortal() // <------ Add this
}
dependencies {
classpath 'io.github.fvarrui:javapackager:1.7.6'
}
}