eclipse-dash / dash-licenses

Extract license information from content.
http://projects.eclipse.org/projects/technology.dash
Eclipse Public License 2.0
47 stars 33 forks source link

"Plugin not found in any plugin repository" #343

Open koppor opened 4 months ago

koppor commented 4 months ago

I am trying to invoke the plugin using following command line:

mvn org.eclipse.dash:license-tool-maven:license-check -Ddash.summary=DEPENDENCIES

(Source: https://blog.waynebeaton.ca/posts/ip/dash-license-tool-maven-plugin/)

Then, I get:

[ERROR] Error resolving version for plugin 'org.eclipse.dash:license-tool-maven' from the repositories [local (C:\Users\olive\.m2\repository), google-maven-central (https://maven-central.storage-download.googleapis.com/maven2/)]: Plugin not found in any plugin repository -> [Help 1]

I executed the plugin the root of https://github.com/eclipse/winery/. I checked pom.xml and don't see anything "special".

waynebeaton commented 4 months ago

The Dash License Tool is not in Maven Central. Either you need to install it locally, or you must include the pluginRepository as described in the documentation.

<pluginRepositories>
    <pluginRepository>
        <id>dash-licenses-snapshots</id>
        <url>https://repo.eclipse.org/content/repositories/dash-licenses-snapshots/</url>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </pluginRepository>
    ...
</pluginRepositories>

I'll update the blog post.

koppor commented 4 months ago

I think, I need to use some other repo.

In the directory https://repo.eclipse.org/content/repositories/dash-licenses-snapshots/org/eclipse/dash/license-tool-plugin/, there is no version 1.0.2

[ERROR] Plugin org.eclipse.dash:license-tool-plugin:1.0.2 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.eclipse.dash:license-tool-plugin:jar:1.0.2 (absent): org.eclipse.dash:license-tool-plugin:jar:1.0.2 was not found in https://repo.eclipse.org/content/repositories/dash-licenses-snapshots/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of dash-licenses-snapshots has elapsed or updates are forced -> [Help 1]

OK, this is OK, since copy and paste from old blog posts mostly doesn't work. <version>1.1.1-SNAPSHOT</version> works though.