I use the web3j maven plugin to auto generate the Smart Contract Java Proxies.
But I have the problem, that the solidity compiler version couldn't be found.
[INFO]
[INFO] --- web3j-maven-plugin:4.8.2:generate-sources (default) @ web3j-client-lib ---
[INFO] Solidity: adding to process 'DZPayments.sol'
[INFO] Solidity: adding to process 'Migrations.sol'
[INFO] Solidity: adding to process 'Proxy.sol'
[INFO] Solidity: adding to process 'Storage.sol'
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.928 s
[INFO] Finished at: 2021-06-18T10:50:37+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to get solidity version from server
Has anyone an idea?
I'm using only default config and have copied the SOL Files to src/main/resources
This is my plugin config (easiest possible!):
<plugin>
<groupId>org.web3j</groupId>
<artifactId>web3j-maven-plugin</artifactId>
<version>4.8.2</version>
<configuration>
<soliditySourceFiles/>
</configuration>
</plugin>
I used the following two dependencies with version 4.8.4 but I tested it with 5.0.0 too with the same result:
<dependency>
<groupId>org.web3j</groupId>
<artifactId>abi</artifactId>
<version>4.8.4</version>
</dependency>
<dependency>
<groupId>org.web3j</groupId>
<artifactId>core</artifactId>
<version>4.8.4</version>
</dependency>