Problem compiling JOSM using ant behind a proxy

Möller, Matthias mmoeller at psi.de
Thu Mar 12 15:10:22 UTC 2020


Hello,

I'am running into a little bit of trouble tying to compile JOSM with ant behind an proxy.

After checking out the repo:
svn co https://josm.openstreetmap.de/svn/trunk josm

I tried to compile the josm .jar by running ant .

But ivy is giving me trouble because it can't load it's dependencies.

[ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]           ::          UNRESOLVED DEPENDENCIES         ::
[ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]           :: org.glassfish#javax.json;1.1.4: not found
[ivy:resolve]           :: commons-logging#commons-logging;1.2: not found
[ivy:resolve]           :: org.apache.commons#commons-compress;1.20: not found
[ivy:resolve]           :: org.tukaani#xz;1.8: not found
[ivy:resolve]           :: com.drewnoakes#metadata-extractor;2.13.0: not found
[ivy:resolve]           :: ch.poole#OpeningHoursParser;0.21.1: not found
[ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
[ivy:resolve] :::: ERRORS
[ivy:resolve]   Server access error at url https://josm.openstreetmap.de/nexus/content/repositories/public/org/glassfish/javax.json/1.1.4/javax.json-1.1.4.pom (java.net.ConnectException: Connection refused: connect)


I can resolve this by adding the setproxy task to the build.xml.


<setproxy proxyhost="${proxy.host}"

          proxyport="${proxy.port}"

          nonproxyhosts="xyz.svn.com"/>

But this does not seem right.
The question is how can I change my call to ant or my environment so that I can compile JOSM without having to change the build.xml?

Did anyone else run into this kind of problem?


BTW: I'am building on Windows and have the default proxy set.


Matthias M.



More information about the josm-dev mailing list