把Eclipse项目转换成Maven项目
把Maven項(xiàng)目轉(zhuǎn)換成Eclipse項(xiàng)目只要使用Maven的Eclipse插件就能做到
mvn eclipse:eclipse其實(shí)Maven的Eclipse插件也有把Eclipse項(xiàng)目轉(zhuǎn)換成Maven項(xiàng)目的命令,通過(guò)命令
mvn eclipse:help就能看到
.....
eclipse:to-maven
Add eclipse artifacts from an eclipse installation to the local repo. This
mojo automatically analize the eclipse directory, copy plugins jars to the
local maven repo, and generates appropriate poms. This is the official central
repository builder for Eclipse plugins, so it has the necessary default
values. For customized repositories see MakeArtifactsMojo Typical usage: mvn
eclipse:to-maven
-DdeployTo=maven.org::default::scpexe://repo1.maven.org/home/maven/repository-
staging/to-ibiblio/eclipse-staging
-DeclipseDir=.
但我一直沒(méi)能成功,無(wú)意中發(fā)現(xiàn)安裝了Maven插件的Eclipse有相應(yīng)的菜單:在Eclipse項(xiàng)目上右鍵如下圖:
”不識(shí)廬山真面目,只緣身在此山中“呀!
如果你知道如何使用“eclipse:to-maven”也請(qǐng)告知下,3KY.
轉(zhuǎn)載于:https://www.cnblogs.com/zhaiqianfeng/p/4620164.html
與50位技術(shù)專(zhuān)家面對(duì)面20年技術(shù)見(jiàn)證,附贈(zèng)技術(shù)全景圖總結(jié)
以上是生活随笔為你收集整理的把Eclipse项目转换成Maven项目的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: U盘无法拷贝超过4G的大文件
- 下一篇: 数据包接收系列 — IP协议处理流程(一