Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Error #87

Open
lharzenetter opened this issue Dec 15, 2021 · 4 comments
Open

Build Error #87

lharzenetter opened this issue Dec 15, 2021 · 4 comments

Comments

@lharzenetter
Copy link

We are using web3j since quite some time now, but since today somewhat around noon, the build fails because your internal service that holds the solidity versions is down. How long do you expect that this will last?

@pringinacio
Copy link

Facing the same issue.

@benjaminstrasser
Copy link

Same issue here.

@jatinbhadra-vakt
Copy link

jatinbhadra-vakt commented Dec 16, 2021

Issue is with download of release.json in ~/.web3j/solc/ which is failing.

If you are using maven for build then below is a workaround.

We had a copy of that file on a developer's machine so we added it to our source code repo and update maven pom with below code to copy to above location. This has unblocked our CI build pipelines and other developers who did not have release.json file. NOTE copy the plugin before web3j-maven-plugin and release.json file should be same location as pom.xml

<plugin> <artifactId>maven-resources-plugin</artifactId> <version>3.0.2</version> <executions> <execution> <id>copy-resource-one</id> <phase>generate-sources</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${user.home}/.web3j/solc/</outputDirectory> <resources> <resource> <directory>${project.basedir}</directory> <includes> <include>releases.json</include> </includes> </resource> </resources> </configuration> </execution> </executions> </plugin>

@JoeNeu
Copy link

JoeNeu commented Dec 16, 2021

Issue is with download of release.json in ~/.web3j/solc/ which is failing.

If you are using maven for build then below is a workaround.

We had a copy of that file on a developer's machine so we added it to our source code repo and update maven pom with below code to copy to above location. This has unblocked our CI build pipelines and other developers who did not have release.json file. NOTE copy the plugin before web3j-maven-plugin and release.json file should be same location as pom.xml

<plugin> <artifactId>maven-resources-plugin</artifactId> <version>3.0.2</version> <executions> <execution> <id>copy-resource-one</id> <phase>generate-sources</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${user.home}/.web3j/solc/</outputDirectory> <resources> <resource> <directory>${project.basedir}</directory> <includes> <include>releases.json</include> </includes> </resource> </resources> </configuration> </execution> </executions> </plugin>

Works perfekt! If someone is missing the releases.json, i uploaded my version to pastebin https://pastebin.com/50QCdUNQ

@adpe adpe mentioned this issue Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants