Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to find the corresponding package for launch4j #444

Open
squirrel-git opened this issue Nov 5, 2024 · 8 comments
Open

Unable to find the corresponding package for launch4j #444

squirrel-git opened this issue Nov 5, 2024 · 8 comments
Labels
feedback Waiting for feedback

Comments

@squirrel-git
Copy link

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

@fvarrui
Copy link
Owner

fvarrui commented Nov 12, 2024

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

@IOvera
Copy link

IOvera commented Nov 18, 2024

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

@fvarrui
Copy link
Owner

fvarrui commented Nov 24, 2024

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
Copy link
Owner

fvarrui commented Nov 24, 2024

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

@fvarrui
Copy link
Owner

fvarrui commented Nov 24, 2024

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
Copy link
Owner

fvarrui commented Nov 24, 2024

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

@fvarrui
Copy link
Owner

fvarrui commented Nov 24, 2024

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

@fvarrui fvarrui added the feedback Waiting for feedback label Nov 24, 2024
@idontusenumbers
Copy link

This fixed it for me:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feedback Waiting for feedback
Projects
None yet
Development

No branches or pull requests

4 participants