• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

vashishthask/eclipse-to-maven

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

vashishthask/eclipse-to-maven

开源软件地址(OpenSource Url):

https://github.com/vashishthask/eclipse-to-maven

开源编程语言(OpenSource Language):

Java 100.0%

开源软件介绍(OpenSource Introduction):

eclipse-to-maven

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=<file path>

  • 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: eclipse-to-maven args
  • 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="<eclipse workspace path>"

Blog posts on eclipse-to-maven




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap