Reputation: 17198
I come from Gradle world and I want to generate eclipse project for my build in Gradle I wrote
gradlew cleanEclipse eclise
but how to do that in Maven >3.0
I tried
mvn -npr eclipse:eclipse
but only eclipse .project files are generated. All dependency libraries are missing. So when I try to start i throught Eclipse
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils
Upvotes: 2
Views: 2298
Reputation: 111
You don't need to generate Eclipse files (Eclipse does it for you).
Just import Maven project(s): File -> Import... -> Maven -> Existing Maven Projects
EDIT: If you don't have pom.xml in your Gradle project, then please generate one:
Upvotes: 1
Reputation: 37
You should start by reading this: http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
Generating project in maven is very easy. In the terminal just type:
mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
Only what you need to to is to change parameters to that what you require i.e. com.mycompany.app
to package that you want to create.
Upvotes: 0