Hi,
I prepared a (hopefully) small change to contribute and want to test it. So of couse I need to build it first, but I think I should use "mvn package" to build it for my local testing.
Unfortunately the build fails in test goal (via package goal) of org.jsonschema2pojo.gradle.JsonSchemaPluginSpec (from jsonschema2pojo-gradle-plugin) with error:
[...]
I get the same HTTP error when I try to retrieve the file without proxy (in my company proxy usage is required). I set "http_proxy" environment variable and use a maven global settings file with <proxy> (since Maven seems to ignore the environment variable).
Do I need to set something else to specify my proxy?
Can the file be provided elsewhere? I'd prefer the possibility to build w/o internet.
I tried using a file, but I couldn't get it working. I downloaded the ZIP file and configured a file:/// URL. I noticed that for the test the example properties is used, so I changed it:
--- a/jsonschema2pojo-gradle-plugin/example/java/gradle/wrapper/gradle-wrapper.properties
+++ b/jsonschema2pojo-gradle-plugin/example/java/gradle/wrapper/gradle-wrapper.properties
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
+distributionUrl=file\:///local/users/sdettmer/work/jsonschema2pojo/gradle-2.3-bin.zip
then I get a java.util.zip.ZipException: error in opening zip file, unfortunately without further details:
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
The file is OK according to "unzip -t":
$ unzip -t /local/users/sdettmer/work/jsonschema2pojo/gradle-2.3-bin.zip
Archive: /local/users/sdettmer/work/jsonschema2pojo/gradle-2.3-bin.zip
testing: gradle-2.3/ OK
[...]
testing: gradle-2.3/lib/plugins/hamcrest-core-1.3.jar OK
No errors detected in compressed data of /local/users/sdettmer/work/jsonschema2pojo/gradle-2.3-bin.zip.
I also checked that it tries the correct file: if I append "xxx" to the value of distributionUrl, I get
java.io.FileNotFoundException: /local/users/sdettmer/work/jsonschema2pojo/gradle-2.3-bin.zip.xxx (No such file or directory)
as expected, so I think by distributionUrl is correct.
What do I do wrongly?
Steffen