Eclipse Juno m2ecliipse : directory structure explanation

大城市里の小女人 提交于 2019-12-02 17:13:00

问题


I'm working under Eclipse Juno on a maven-archetype-webapp project done with m2eclipse.

I don't understand directory structure. Anyone could explain how it's working?

Thanks

What i src/main/ressources for ? When you create package, it's not showed as package but only directory. I create a /src/main/java package and it's where i put my classes. The package structure hierarchy is ok.

What is librairies ressources? Is it where you put javascript jquery? but when i put jquery plugin it does a lot of effor in the project manager. And i want my javascript under /webapp/javascript... What is ECMAScript Library ? What to do with that, what is for?

Same question about Deployed Ressources and target and Jax-WS Web Services ?

Ok target must be the directory when you build the project maven, but i can't see the war file. When you run build how to configure it in eclipse to generate the build? What is the command ?

Thanks , i know it's a lot of questions but i'm beginner !

Have a great day :)

I just add the example when you put jquery in webapp


回答1:


All of this is explained here.

  • src/main/java This is where your source code goes
  • src/main/resources This is where you put your resources like your xml files. Things that aren't java classes but need to be in your classpath. If you put them under /java, they won't be copied into your classpath so you have to put them here.
  • src/main/webapp This is for webapps. Everything you put in here will be copied over to your war file, directly.


来源:https://stackoverflow.com/questions/16988162/eclipse-juno-m2ecliipse-directory-structure-explanation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!