dash-licenses icon indicating copy to clipboard operation
dash-licenses copied to clipboard

"Plugin not found in any plugin repository"

Open koppor opened this issue 1 year ago • 2 comments

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".

koppor avatar May 14 '24 10:05 koppor

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.

waynebeaton avatar May 14 '24 13:05 waynebeaton

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.

koppor avatar May 14 '24 14:05 koppor