首页 > 其他 > 详细

将普通工程转为mvn标准工程(main resources)

时间:2015-10-12 18:45:57      阅读:216      评论:0      收藏:0      [点我收藏+]

It is sometimes required to change the default source folder working on the java project. One best example for this could be when normalizing the project to maven.
mvn标准工程是 src/main/java src/main/resource and the like one, you might need to change it.

1、首先将你的工程src目录下建立目录main,然后分别新建目录 java 和 resource
2、刷新 right click on the project, and hit refresh, make sure the folders you created are listed there.
3、Right click on the project, select properties and select java build path
4、 Go to source tab
5、. select and remove the current source folder, by default it would be src folder
6、. Hit the Add newthen select your folder structure there.

将普通工程转为mvn标准工程(main resources)

原文:http://www.cnblogs.com/amazement/p/4872144.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!