Comments (1)
I managed to solve the issue using org.codehaus:build-helper-maven-plugin.
I added the plugin to the dependencies of my main pom and the relevant child (I use dependency management), then added the plugin to the child's pom:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${project.build.directory}/generated-sources/web3j</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
I also figured out that my assumption was correct: web3j's plugin does not update the project's sources directory.
I still think that such a basic feature should either be added or its absence should be documented and solutions/workarounds to it mentioned.
from web3j-maven-plugin.
Related Issues (20)
- 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.