-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not run on "mvn compile" #14
Comments
I've found it works as expected if running PS. Parent module:
|
I think you should specify the plugin in the pluginManagement section of the multi-module root pom. <modules>
...
<module>ethereum</module>
...
</modules>
<build>
<!-- In the multi-module root pom, use the pluginManagement to define the version of the maven-plugin -->
<pluginManagement>
<plugins>
<plugin>
<groupId>org.web3j</groupId>
<artifactId>web3j-maven-plugin</artifactId>
<version>0.1.5-SNAPSHOT</version>
</plugin>
</plugins>
</pluginManagement>
</build> And in the specific module ethereum, clear the version of the plugin, since it is already defined in the multi-module root pom (the parent). <parent>
<groupId>name.antonsmirnov.apptogether</groupId>
<artifactId>parent</artifactId>
<version>1.0</version>
<relativePath>../</relativePath>
</parent>
<build>
<plugins>
<plugin>
<groupId>org.web3j</groupId>
<artifactId>web3j-maven-plugin</artifactId>
<!-- No version needed here, it is already defined in the multi-module root pom -->
<configuration>
<!-- This is where our specific configuration goes -->
</configuration>
</plugin>
</plugins>
</build> |
I did what you've suggested - it still does not work. Neither
It works only if i run in the module:
|
To make it working and behaving like other code generating plugins (jaxws for example), I had to add the following:
The above should be the default behavior of the web3j-maven-plugin plugin I guess... |
That's strange but it still does not work for me. The only thing that i've found is that you've added Here is my
|
You need the build-helper-maven-plugin configuration too, else maven-compiler-plugin won't pick up the generated Java sources. |
You were right @fcorneli. Thanks a lot! |
I have added plugin to generate wrapper for smart contract:
I'm running
mvn generate-sources
in parent maven module using the plugin.However i can't see any generating output:
I can see output directory is not even created:
I've tried to call
$mvn web3j:generate-sources
in parent project too:Of coarse i have .sol file(s):
The text was updated successfully, but these errors were encountered: