Eclipse Juno m2ecliipse:目录结构说明 [英] Eclipse Juno m2ecliipse : directory structure explanation
问题描述
我不明白目录结构。任何人都可以解释它是如何工作的?
谢谢
我是src / main / ressources?当您创建包时,它不会显示为包但仅显示目录。
我创建一个/ src / main / java包,它是我放置我的类的地方。包装结构层次结构是确定的。
什么是图书馆资源?你在哪里放置JavaScript jquery?但是当我把jquery插件放在项目经理里面,我想要我的javascript在/ webapp / javascript ...什么是ECMAScript库?那么该怎么办?
有关部署Ressources和目标和Jax-WS Web服务的相同问题?
确定目标必须是构建项目maven时的目录,但是我看不到战争文件。当您运行构建如何在eclipse中配置它以生成构建?什么是命令?
谢谢,我知道这是很多问题,但我是初学者!
有一个美好的一天:)
当我把jquery放在webapp
- src / main / java 这是您的源代码所在的地方
- src / main /资源这是您将资源(如xml文件)放在哪里。事情不是java类,但需要在你的类路径。如果你把它们放在/ java下,它们就不会被复制到你的类路径中,所以你必须把它们放在这里。
- src / main / webapp 为webapps。你把这里的一切都直接拷贝到你的战争文件中。
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
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.
这篇关于Eclipse Juno m2ecliipse:目录结构说明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!