You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a multi-module maven project where I want to generate java wrappers from .sol files, to achieve this I'm using web3j's maven plugin. Here are the (relevant sections of the) poms:
I'm build the project with maven with the following command: call mvn clean -U install.
The files do generate, and in the correct location, but when maven begins the compile phase of install it runs into the following error:
Compilation failure
[ERROR] /C:/source/project/project-name/src/main/java/org/example/child/TestFile.java:[4,51]
package org.example.project-name.wrappers does not exist
TestFile is an empty file that tries to import one of the generated files.
I also have an openapi code generator plugin, it does generate files properly, and I run into no issues when importing those.
I didn't find any configuration options in the web3j plugin that I missed and I also didn't find any way to help mvn install or mvn compile consider the directory in which the wrappers are generated.
I tried manually extracting the bundled calls that install makes and manually interjecting the web3j:generate-sources:
But this too fails at compile. I'm assuming that the web3j plugin doesn't update a variable storing all generated sources, but that's just a guess and I don't know how I would fix that.
The text was updated successfully, but these errors were encountered:
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.
I have a multi-module maven project where I want to generate java wrappers from .sol files, to achieve this I'm using web3j's maven plugin. Here are the (relevant sections of the) poms:
main
pom.xml
:child
pom.xml
:I'm build the project with maven with the following command:
call mvn clean -U install
.The files do generate, and in the correct location, but when maven begins the compile phase of install it runs into the following error:
TestFile
is an empty file that tries to import one of the generated files.I also have an
openapi
code generator plugin, it does generate files properly, and I run into no issues when importing those.I didn't find any configuration options in the web3j plugin that I missed and I also didn't find any way to help
mvn install
ormvn compile
consider the directory in which the wrappers are generated.I tried manually extracting the bundled calls that install makes and manually interjecting the web3j:generate-sources:
But this too fails at compile. I'm assuming that the web3j plugin doesn't update a variable storing all generated sources, but that's just a guess and I don't know how I would fix that.
The text was updated successfully, but these errors were encountered: