How to execute maven plugins from gradle without having maven and java installed

后端 未结 3 1058
感动是毒
感动是毒 2021-01-20 20:11

I need to execute a maven plugin on a system that does not have both maven and java installed and installing both of them on the syste

3条回答
  •  清歌不尽
    2021-01-20 20:34

    Java is required for Maven and for Gradle too.

    You can use Maven Wrapper exactly like with Gradle.

    Execute this command in project directory (this creates executable script like in gradle)

    mvn -N io.takari:maven:wrapper
    

    To invoke this project without maven installed use:

    ./mvnw GOAL
    

提交回复
热议问题