gradle/maven/eclipse project mutual conversion

The gradle/maven/eclipse projects are converted to each other:
the premise is that the corresponding tools and plug-ins are installed.
1. Maven->eclipse

mvn eclipse:eclipse

 

2、eclipse->maven

After installing the maven plugin, right-click the project in the eclipse project: convert to maven project.

 

3. gradle->eclipse
edit the build.gradle file and add a line at the top of the file:
apply plugin: 'eclipse'

gradle eclipse

 

4、eclipse->gradle

Open eclipse, select the main project, right-click --> Ecport --> Generate Gradle build files , select the main project and related projects, Finish.


5. maven->gradle
gradle integrates a very convenient plugin: Build Init Plugin, using this plugin can easily create a new gradle project, or convert other types of projects into gradle projects.
gradle init --type pom

6, gradle->maven

gradle->eclipse->maven has not found a direct conversion method for the time being, but it can be converted into an eclipse project->with the help of maven or gradle plugin to convert

After the conversion is completed, the corresponding import jar is specifically repaired.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326617946&siteId=291194637