Comments (6)
Hi , please let me know how you have fixed this issue i am also getting same issue.
I solved it by using a newer version of the plugin that does not depend on the SolcJ compiler implementation. I.e., bump up the
<web3j-maven-plugin.version>4.2.0</web3j-maven-plugin.version>
to e.g., 4.6.5
from web3j-maven-plugin.
I just noticed that the Bintray repo is probably referenced only because of the solcJ dependency (which seems to be removed in recent versions). Perhaps, the reference to Bintray repo should simply be removed from the pom
file.
from web3j-maven-plugin.
Hi , please let me know how you have fixed this issue i am also getting same issue.
from web3j-maven-plugin.
Hi
i am also getting same error , This issue fixed?
[ERROR] Failed to execute goal org.web3j:web3j-maven-plugin:4.2.0:generate-sources (01-generate-sol) on project reconciliation: Execution 01-generate-sol of goal org.web3j:web3j-maven-plugin:4.2.0:generate-sources failed: Plugin org.web3j:web3j-maven-plugin:4.2.0 or one of its dependencies could not be resolved: Failed to collect dependencies at org.web3j:web3j-maven-plugin:jar:4.2.0 -> org.ethereum:solcJ-all:jar:0.4.25: Failed to read artifact descriptor for org.ethereum:solcJ-all:jar:0.4.25: Could not transfer artifact org.ethereum:solcJ-all:pom:0.4.25 from/to ethereum (https://dl.bintray.com/ethereum/maven/): authorization failed for https://dl.bintray.com/ethereum/maven/org/ethereum/solcJ-all/0.4.25/solcJ-all-0.4.25.pom, status: 403 Forbidden -> [Help 1]
<web3j-quorum.version>4.8.4</web3j-quorum.version>
<commons-lang.version>2.6</commons-lang.version>
<!-- plugins -->
<web3j-maven-plugin.version>4.2.0</web3j-maven-plugin.version>
<plugin>
<groupId>org.web3j</groupId>
<artifactId>web3j-maven-plugin</artifactId>
<version>${web3j-maven-plugin.version}</version>
<configuration>
<packageName>com.test.quorum.contracts</packageName>
<soliditySourceFiles>
<directory>src/main/resources/solidity/contracts</directory>
<includes>
<include>**/*.sol</include>
</includes>
</soliditySourceFiles>
<sourceDestination>src/main/resources/solidity/contracts</sourceDestination>
<outputFormat>java,bin,abi</outputFormat>
</configuration>
<executions>
<execution>
<id>01-generate-sol</id>
<phase>generate-sources</phase>
<goals>
<goal>generate-sources</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.web3j</groupId>
<artifactId>codegen</artifactId>
<version>4.2.0</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>02-add-source-folder</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/main/resources/solidity/contracts</source>
</sources>
</configuration>
</execution>
<execution>
<id>02-add-sol-bin</id>
<phase>generate-sources</phase>
<goals>
<goal>add-resource</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>src/main/resources/solidity/contracts</directory>
<includes>
<include>**/*.bin</include>
<include>**/*.json</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-artifact</id>
<phase>install</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<type>${project.packaging}</type>
</artifactItem>
</artifactItems>
<outputDirectory>${parent.output.directory}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
from web3j-maven-plugin.
hi , thanks , i have changed it to 4.8.2 and now its working fine .However i am facing new issue deploy method is not available
The method deploy(Class, Web3j, Credentials, ContractGasProvider, String, String, BigInteger) from the type Contract is not visible
MyContract.deploy(MyContract.class,quorumConnection.getWeb3(),
quorumConnection.getCredentials(),new
DefaultGasProvider(),MyContract.BINARY,
"first contract" ,BigInteger.valueOf(0));
i dont see any examples with latest version of web3j.
from web3j-maven-plugin.
I have the same issue, I switched to 4.8.2 version then it worked.
from web3j-maven-plugin.
Related Issues (20)
- Problem integrating web3j into maven clean install HOT 1
- Generate meta-data files as well (optional as with bin, abi)
- Why does this plugin keep using solc version 0.4.25?
- Path for ABI & BIN is wrong HOT 1
- Two-dimensional array problem???
- Execution default-cli of goal org.web3j:web3j-maven-plugin:4.10.0:generate-sources failed: ClassLoader.getSystemResource("releases.json") must not be null
- java.net.UnknownHostException: github.com when being offline
- Define solc version
- Error when running "mvn web3j:generate-sources"
- ClassLoader.getSystemResource("releases.json") must not be null HOT 1
- Please add a configuration option for SolidityFunctionWrapperGenerator :: .B, --generateBoth generate both call and send functions.
- Issues generating proxies from external Truffle proj HOT 1
- Can't generateContractWrappers for solidity 0.8.x due result json change format HOT 6
- Generation of code fails when using solidity 0.8.0 HOT 1
- Build Error HOT 4
- add support through solc 0.8.12
- org.json.simple.JSONArray cannot be cast to java.lang.String HOT 1
- web3j plugin solidity source file compile failed with assign solidity version over 0.7.1 HOT 1
- release web3j-maven-plugin for web3j 5.0.0
- Execution generate-sources-web3j of goal org.web3j:web3j-maven-plugin:4.9.4:generate-sources failed: part 'struct OfferItem' is keyword
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from web3j-maven-plugin.