jitpack / jitpack.io

Documentation and issues of https://jitpack.io
MIT License
2.51k stars 183 forks source link

Unable to resolve artifact from Apache Snapshots repository. #4932

Closed TheFlagCourier closed 2 years ago

TheFlagCourier commented 2 years ago

Currently, unable to resolve artifacts from the Apache Snapshots Repository, which is needed to download snapshot versions of maven plugins (in our case, the maven-shade-plugin).

Please provide:

Pom File: https://github.com/TownyAdvanced/Towny/blob/b2258fe01a2471005c5b23444b70d0b6330e92e4/pom.xml

Thank you!

jitpack-io commented 2 years ago

Hi

It appears we are being rate limited. Perhaps one way to work around this is to download from JitPack https://jitpack.io/#apache/maven-shade-plugin

TheFlagCourier commented 2 years ago

Thanks for the response, that kind of sucks the life out of it.

Unfortunately, I don't think recursing back to Jitpack to retrieve the maven-shade-plugin is a viable solution, unless there's a workaround for bypassing the InvalidPluginDescriptorException from the DefaultMavenPluginManager. With the following maven configuration, locally I am running into the exception on the package phase.

Configuration
<pluginRepositories>
    <pluginRepository>
        <id>jitpack.io</id>
        <url>https://jitpack.io/</url>
    </pluginRepository>
</pluginRepositories>
<build>
    <plugins>
        <plugin>
            <groupId>com.github.apache</groupId>
            <artifactId>maven-shade-plugin</artifactId>
            <version>d2bdd60a11</version> <!-- Current latest commit on master branch -->
        </plugin>
    </plugins>
</build>
Excpetion
[ERROR] Invalid plugin descriptor for com.github.apache:maven-shade-plugin:d2bdd60a11
    (%USERPROFILE%\.m2\repository\com\github\apache\maven-shade-plugin\d2bdd60a11\maven-shade-plugin-d2bdd60a11.jar),
    Plugin's descriptor contains the wrong group ID: org.apache.maven.plugins,
    Plugin's descriptor contains the wrong version: 3.3.1-SNAPSHOT -> [Help 1]

<stack trace snipped>

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/InvalidPluginDescriptorException
github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 2 years ago

This issue was closed because it has been inactive for 14 days since being marked as stale.