码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-10-12 18:48:32      阅读:171      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!