Opened 5 years ago

Last modified 5 years ago

#16558 new defect

Github plugins not available on any maven repository

Reported by: anonymous Owned by: team
Priority: normal Milestone:
Component: Plugin Version:
Keywords: github maven nexus gradle-josm-plugin Cc: floscher


I'm trying to use this plugin as a dependency to another one via manifest plugin-requires = todo attribute.

I added in

plugin.requires = utilsplugin2;todoplugin

However when compiling (via gradle josm plugin ( todo plugin cannot be found on any of these URLs:

A problem occurred configuring root project 'josm-scripting-plugin'.
> Could not resolve all files for configuration ':detachedConfiguration2'.
   > Could not find org.openstreetmap.josm.plugins:todoplugin:SNAPSHOT.
     Searched in the following locations:
     Required by:
         project :

Attachments (0)

Change History (9)

comment:1 Changed 5 years ago by anonymous

Component: CorePlugin todo
Owner: changed from team to Gnonthgol

comment:2 Changed 5 years ago by Don-vip

Component: Plugin todoPlugin
Keywords: github maven nexus added
Owner: changed from Gnonthgol to team

Github plugins are not managed on Nexus.

comment:3 Changed 5 years ago by bagage

Could/Should they?

Yet, when installing a plugin from within JOSM, it is downloaded from somewhere? That somewhere location could be added as a potential source for search locations, so that all plugins are available? Or we need more than a simple jar?

comment:4 Changed 5 years ago by Don-vip

Summary: Not available on any maven repositoryGithub plugins not available on any maven repository

comment:5 Changed 5 years ago by floscher

I created to support these plugins even when they are not in the Nexus repository.

comment:6 Changed 5 years ago by floscher

Cc: floscher added
Keywords: gradle-josm-plugin added

comment:7 Changed 5 years ago by floscher

It seems the current URLs of plugins released with GitHub releases are not going to work. Gradle will send a HEAD request when resolving dependencies, GitHub will answer with 403 Forbidden if the request is HEAD and not GET:

   > Could not resolve org.openstreetmap.josm.plugins:todo:SNAPSHOT.
     Required by:
         project :
      > Could not resolve org.openstreetmap.josm.plugins:todo:SNAPSHOT.
         > Could not get resource ''.
            > Could not HEAD ''. Received status code 403 from server: Forbidden

comment:8 Changed 5 years ago by Don-vip

Can't you change this behaviour of Gradle? Through a plugin or something?

comment:9 Changed 5 years ago by floscher

I could work around that and download the dependency differently, but that would come with other drawbacks, like the dependency would not be cached. See discussion at .

Probably the best solution would be to put these plugins in the Nexus repository, instead of hacking around the problem.
I currently have a pull request that allows to publish releases to Github: . I think I'll try to modify that to also allow to publish to a Maven repo (like

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain team.
as The resolution will be set.
to The owner will be changed from team to the specified user.
The owner will change to anonymous
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.