Search code examples
mavendirectorypackagem2eclipseeclipse-juno

Eclipse Juno m2ecliipse : directory structure explanation


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

enter image description here

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 enter image description here


Solution

  • 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.