cincheo / jsweet

A Java to JavaScript transpiler.
http://www.jsweet.org
Other
1.45k stars 159 forks source link

How build candy #757

Open baobab-it opened 1 year ago

baobab-it commented 1 year ago

Hello

I've try build candy generator (with Java 17 and 11):

$ mvn generate-sources -P genparser

But got error:

Could not resolve dependencies for project org.jsweet:jsweet-candy-generator:jar:2.0.0-SNAPSHOT: Failed to collect dependencies at org.cincheo:file-visitor:jar:1.0.0: Failed to read artifact descriptor for org.cincheo:file-visitor:jar:1.0.0: Could not transfer artifact org.cincheo:file-visitor:pom:1.0.0 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [jsweet-central (http://repository.jsweet.org/artifactory/libs-release-local, default, releases+snapshots), jsweet-snapshots (http://repository.jsweet.org/artifactory/libs-snapshot-local, default, releases+snapshots), jsweet-external (http://repository.jsweet.org/artifactory/ext-release-local, default, releases+snapshots)]

Something blocking in repository http://repository.jsweet.org?

bannmann commented 10 months ago

I had the same problem. It seems that recent Maven versions block any repository that has a http:// URL. Luckily, JSweet's Artifactory serves HTTPS just fine. The main JSweet pom.xml even uses https:// URLs, but for some reason the candy generator doesn't.

So to fix the generator, all one needs to do is to edit its pom.xml and change http:// to https:// in all repository entries.

@renaudpawlak, could you please apply that fix?

lgrignon commented 10 months ago

Thanks @bannmann that's exactly what you need to do, use only https

bannmann commented 10 months ago

@lgrignon, I think this issue should stay open until candy-generator/pom.xml includes that fix.

lgrignon commented 10 months ago

Actually there was no contribution to this project for a long time now, but let's keep it open in case someone has time to contribute again in the future