https://github.com/vashishthask/eclipse-to-maven
eclipse-to-maven mavenises the existing Eclipse based workspace.
https://github.com/vashishthask/eclipse-to-maven
eclipse java maven
Last synced: 3 months ago
JSON representation
eclipse-to-maven mavenises the existing Eclipse based workspace.
- Host: GitHub
- URL: https://github.com/vashishthask/eclipse-to-maven
- Owner: vashishthask
- Created: 2012-03-29T12:40:24.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2022-09-22T17:04:10.000Z (almost 4 years ago)
- Last Synced: 2023-03-22T15:02:39.925Z (over 3 years ago)
- Topics: eclipse, java, maven
- Language: Java
- Homepage:
- Size: 239 KB
- Stars: 28
- Watchers: 7
- Forks: 14
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eclipse-to-maven
[eclipse-to-maven](https://github.com/vashishthask/eclipse-to-maven/) mavenises the existing Eclipse based workspace.
# Features
* Converts .classpath files into pom.xml
* If required, prints the depdency graph of eclipse projects.
* Moves source folders according to Maven convention. So for instance Java sources go to src/main/java folder.
* Removes spaces in the names of the folders. So "Calculator Component" becomes "CalculatorComponent"
* Right now Mavenisation is limited to generating dependencies in the pom. However this is a good first step in moving forward. With small changes you should be able to run the build for your projects.
# Getting Started
## Preparation
* As eclipse-to-maven uses java.nio features, you need to have JDK 1.7+
* Create the build of eclipse-to-maven using Maven "mvn clean install"
* Copy existing workspace into a separate directory.
## Setup
Please follow following `src/main/java/resources/application.properties` setup before running the application
* For converting existing eclipse workspace to maven, set 'convert.to.maven' property as 'true'. This switch is useful if you just want to print the dependency tree (read-only operation) for instance.
`convert.to.maven=true`
* For removing spaces in folder names, use following switch:
`workspace.projectname.remove.space=true`
* For printing the dependency tree of eclipse projects set following properties
`print.dependency.graph=true`
`print.dependency.graph.iotype=file`
`print.dependency.graph.filepath=`
* For internal dependencies groupId and project groupId , you may want to setup default as follows:
`maven.dependency.groupId.default=...`
`maven.pom.groupId.default=...`
## Running eclipse-to-maven from Eclipse
* Import eclipse-to-maven in any eclipse workspace.
* Right click EclipseToMaven --> Run As --> Run Configurations -->
* Pass the Eclipse workspace location with application Arguments as follows:

* Run the application
## Running eclipse-to-maven from Command Prompt
Make sure JAVA_HOME is pointing to JDK-1.7+.
Run the following from command prompt:
$ mvn clean install exec:java -Dexec.args=""
# Blog posts on eclipse-to-maven
* [Converting Eclipse Projects to Maven : eclipse-to-maven Intro](https://github.com/vashishthask/eclipse-to-maven/wiki/Introducing-eclipse-to-maven)
* [Converting Eclipse Workspace to Maven – Why eclipse-to-maven?](https://github.com/vashishthask/eclipse-to-maven/wiki/Why-eclipse-to-maven%3F)