hyperledger / web3j-maven-plugin

web3j Maven plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

webj maven plugin not found

rkomaturi2382 opened this issue · comments

Hi ,

when i am running mvn web3j:generate-resources getting below error

below is my pom.xml configuration , please note i have tried different versions

 <dependency>
           <groupId>org.web3j</groupId>
           <artifactId>core</artifactId>
           <version>4.8.4</version>
       </dependency>

       <dependency>
           <groupId>org.web3j</groupId>
           <artifactId>quorum</artifactId>
           <version>4.0.6</version>
       </dependency>

   	<dependency>
   			<groupId>com.squareup.okhttp3</groupId>
   			<artifactId>okhttp</artifactId>
   			<version>4.9.0</version>
   		</dependency>
   		<!-- https://mvnrepository.com/artifact/org.ethereum/solcJ-all -->
<!-- https://mvnrepository.com/artifact/org.web3j/web3j-maven-plugin -->
<dependency>
   <groupId>org.web3j</groupId>
   <artifactId>web3j-maven-plugin</artifactId>
   <version>4.8.2</version>
</dependency>
<plugin>
   	<groupId>org.web3j</groupId>
   	<artifactId>web3j-maven-plugin</artifactId>
   	<version>4.8.1</version>
   	<configuration>
   		<packageName>com.test.quorum.contracts</packageName>
   		<sourceDestination>src/main/java</sourceDestination>
   		<nativeJavaType>true</nativeJavaType>
   		<soliditySourceFiles>
   			<directory>src/main/resources/solidity/contracts</directory>
   			<includes>
   				<include>**/*.sol</include>
   			</includes>
   		</soliditySourceFiles>
   		<abiSourceFiles>
   			<directory>src/main/resources</directory>
   			<includes>
   				<include>**/*.json</include>
   			</includes>
   		</abiSourceFiles>
   		<outputDirectory>
   			<java>src/main/java/generated</java>
   			<bin>src/main/bin/generated</bin>
   			<abi>src/main/abi/generated</abi>
   		</outputDirectory>
   	</configuration>


   </plugin>

The POM for org.web3j:web3j-maven-plugin:jar:4.8.1 is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.web3j:web3j-maven-plugin:4.8.1: Plugin org.web3j:web3j-maven-plugin:4.8.1 or one of its dependencies could not be resolved: org.web3j:web3j-maven-plugin:jar:4.8.1 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (20 kB at 52 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (14 kB at 35 kB/s)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[ERROR] No plugin found for prefix 'web3j' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo]

its an eclipse issue