2015-02-11 53 views
0

我有一个完美的动态web项目。然后我试图使用mvn eclipse:eclipse -Dwtpversion=2.0命令将其更改为mvn web项目,然后更改我的包结构。将main.java包添加到我的包中。我试图在.classpath文件中加入封装结构在eclipse中更改

<classpathentry kind="src" output="target/classes" path="src/main/java"> 
     <attributes> 
      <attribute name="optional" value="true"/> 
      <attribute name="maven.pomderived" value="true"/> 
     </attributes> 
    </classpathentry> 
    <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"> 
     <attributes> 
      <attribute name="maven.pomderived" value="true"/> 
     </attributes> 
    </classpathentry> 

但是项目包没有变化。 以下是我更改的项目结构。我怎样才能把它恢复正常(删除软件包main.java) 预先感谢

enter image description here

编辑:

当我试图编辑源文件夹它显示以下错误: enter image description here

回答

1

你必须改变的源文件夹下的Java构建路径项目配置

enter image description here