1. 程式人生 > >myeclipse web專案轉maven maven專案轉web 修改檔案方式

myeclipse web專案轉maven maven專案轉web 修改檔案方式

1.配置好pom.xml 安裝maven(前提) 2.如果是web 專案 .classpath檔案下新增 <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> <attributes> <attribute name="org.eclipse.jst.component.nondependency" value=""/> </attributes> </classpathentry> .project 檔案新增 <buildCommand> <name>org.eclipse.m2e.core.maven2Builder</name> <arguments> </arguments> </buildCommand> <natures> <nature>org.eclipse.m2e.core.maven2Nature</nature> </natures> 3.如果是maven專案 去除上面的相關資訊即可 並且配置相應的輸出檔案路徑 4.最後myeclipse重新整理專案即可;