we have maven parent project 2 maven modules. need new maven module, building process depends on gradle build. problem is, new module plugin third-party software , provide gradle plugin proper build. need other modules dependcies, isn't big deal, want have in same code repository. question now, possible integrate gradle in maven project. maybe maven plugin, generates pom, looks maven-module, can use gradle plugin, if need so. use maven v3 , it's java project if these informations relevant.
you can try use maven "exec-maven-plugin". plugin can run cmd commands.
so add plugin , let execute gradle build
<project> ... <build> <plugins> <plugin> <artifactid>exec-maven-plugin</artifactid> <groupid>org.codehaus.mojo</groupid> <version>1.2.1</version> <executions> <execution> <id>gradle executor</id> <phase>install</phase> <goals> <goal>exec</goal> </goals> <configuration> <executable>your gradle executable</executable> </configuration> </execution> </executions> </plugin> </plugins> </build> ... </project> this should work, give try.
Comments
Post a Comment