Modify

Opened 4 years ago

Closed 4 years ago

#19562 closed defect (fixed)

[PATCH] Move `apache-http` to the `ivy` dependency system

Reported by: taylor.smock Owned by: Don-vip
Priority: normal Milestone:
Component: Plugin apache-commons Version:
Keywords: ivy dependency Cc: simon04

Description

The first attached patch adds apache-logging as well. I feel that this should be in apache-commons, and that will be in two (separately labeled) patches.

apache-logging is required since apache-http makes calls to apache-logging. This issue has been encountered during Mapillary and MapWithAI development.

IMO, it makes more sense to put apache-logging in apache-commons instead of apache-http. Alternatively, another plugin could be made (probably not the best idea).

Attachments (3)

19562.apache_http_with_logging.patch (5.7 KB ) - added by taylor.smock 4 years ago.
Apache HTTP with logging (and IVY)
19562.apache_http_without_logging.patch (5.6 KB ) - added by taylor.smock 4 years ago.
Apache HTTP without logging (but still with IVY)
19562.apache_commons_logging.patch (909 bytes ) - added by taylor.smock 4 years ago.
Add Apache Commons Logging to apache-commons

Download all attachments as: .zip

Change History (16)

by taylor.smock, 4 years ago

Apache HTTP with logging (and IVY)

by taylor.smock, 4 years ago

Apache HTTP without logging (but still with IVY)

by taylor.smock, 4 years ago

Add Apache Commons Logging to apache-commons

comment:1 by stoecker, 4 years ago

Ah sorry, Vincent isn't active ATM. If I understand right the second and third patch should be applied?

comment:2 by taylor.smock, 4 years ago

I kind of figured that Vincent was not active (I haven't seen anything from him in the general changelog for quite some time). I was kind of figuring that I would probably have to go back through patches on components that he is responsible for when he becomes active again, and just pinging it or something.

As far as the patches go, attachment:19562.apache_http_without_logging.patch and attachment:19562.apache_commons_logging.patch are the ones that I felt would make the most sense, yes.

comment:3 by stoecker, 4 years ago

In 35520/osm:

see #19562 - add logging to apache commons

comment:4 by stoecker, 4 years ago

Cc: simon04 added

Hmm, that ivy stuff is still broken for me in plugins:

download-ivy:
      [get] Getting: https://josm.openstreetmap.de/nexus/content/repositories/public/org/apache/ivy/ivy/2.4.0-local-19691228075642/ivy-2.4.0-local-19691228075642.jar
      [get] To: /home/stoecker/.ant/lib/ivy.jar
      [get] Error opening connection java.io.FileNotFoundException: https://josm.openstreetmap.de/nexus/content/repositories/public/org/apache/ivy/ivy/2.4.0-local-19691228075642/ivy-2.4.0-local-19691228075642.jar
      [get] Error opening connection java.io.FileNotFoundException: https://josm.openstreetmap.de/nexus/content/repositories/public/org/apache/ivy/ivy/2.4.0-local-19691228075642/ivy-2.4.0-local-19691228075642.jar
      [get] Error opening connection java.io.FileNotFoundException: https://josm.openstreetmap.de/nexus/content/repositories/public/org/apache/ivy/ivy/2.4.0-local-19691228075642/ivy-2.4.0-local-19691228075642.jar
      [get] Can't get https://josm.openstreetmap.de/nexus/content/repositories/public/org/apache/ivy/ivy/2.4.0-local-19691228075642/ivy-2.4.0-local-19691228075642.jar to /home/stoecker/.ant/lib/ivy.jar

BUILD FAILED
/home/stoecker/sources/josm/plugins/build-common.xml:709: Can't get https://josm.openstreetmap.de/nexus/content/repositories/public/org/apache/ivy/ivy/2.4.0-local-19691228075642/ivy-2.4.0-local-19691228075642.jar to /home/stoecker/.ant/lib/ivy.jar

I was kind of figuring that I would probably have to go back through patches on components that he is responsible for when he becomes active again, and just pinging it or something.

No, if somebody isn't available we'll go on and hope he/she comes back :-)

comment:5 by taylor.smock, 4 years ago

@stoecker: As far as broken ivy stuff goes, have you made any modifications to any build.xml files (including the build-common.xml) where the ivy version is specified? I don't know why else it would be trying to get 2.4.0-local-19691228075642 (we only have 2.4.0 and 2.5.0 on the JOSM nexus).

No, if somebody isn't available we'll go on and hope he/she comes back :-)

It is a little more difficult if you don't know who else to ping. :)

in reply to:  5 comment:6 by stoecker, 4 years ago

Replying to taylor.smock:

@stoecker: As far as broken ivy stuff goes, have you made any modifications to any build.xml files (including the build-common.xml) where the ivy version is specified? I don't know why else it would be trying to get 2.4.0-local-19691228075642 (we only have 2.4.0 and 2.5.0 on the JOSM nexus).

Probably this comes from the system installation?:

apache-ivy-2.4.0-6.3.noarch
ivy-local-5.3.0-3.1.noarch

I don't have any modifications. That's a plain fresh checkout.

comment:7 by simon04, 4 years ago

Did you override the ivy.version property? What about running…

$ ant -Divy.version=2.5.0 clean dist

in reply to:  7 comment:8 by stoecker, 4 years ago

Replying to simon04:

Did you override the ivy.version property? What about running…

No.

$ ant -Divy.version=2.5.0 clean dist

That works. Can we adapt the SVN so that it works from scratch?

comment:9 by stoecker, 4 years ago

In 35523/osm:

improve ivy support, see #19562

comment:10 by simon04, 4 years ago

@stoecker: In plugins/build-common.xml we have the task fetch_dependencies. Can we make use of that
one instead of resolve task from plugins/apache-http?

comment:11 by stoecker, 4 years ago

I have no idea. I don't know any details of that ivy stuff.

comment:13 by simon04, 4 years ago

Keywords: ivy dependency added
Resolution: fixed
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Don-vip.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.