New User looking for good tutorial or help

I am coming to IntelliJ from both Eclipse and NetBeans, and am having some trouble finding basic tutorials explaining the different concepts.  In particular, I am having a hard time getting modules, facets and artifacts to work correctly for a basic web application...for example, I can't understand whether an artifact is specific to a given module, or whether it is a more general configuration that you can re-use across multiple modules.  Can someone point me at some resources (print, online, whatever) that explains these concepts.  For purposes of this discussion, let's assume I am a skilled Java EE developer that doesn't know ANYTHING about IntelliJ.

Thanks.  I want to learn this, and learn it well, for a particular client's needs.

4 comments
Comment actions Permalink

Thanks, Alexander.  I already went through the FAQ and the two links regarding Eclipse.  Sadly, the problems I am having are not addressed by any of that.

I have seen a number of questions posted on the web (and one on your forums) concerning artifacts, and still can't understand what they are or how they are used.  Specifically, I can't figure out if I need to configure an artifact for every module "target" (meaning a deployable unit, such as a compressed WAR), or whether I am supposed to configure one general WAR-type artifact and simply point at it from my various modules, in a similar fashion to facets.  In addition, I can't seem to figure out how to specify that the pages (in my case, xhtml pages) from the web root folder get copied into the WAR.  Mine don't, consequently the application doesn't run, and there doesn't seem to be any way to specify this.

Again, I'd like to reiterate: I am very motivated to learn how to do this.  But honestly, I am getting a bit frustrated trying to figure this out.

0
Comment actions Permalink

Hi, Thomas

Specifically, I can't figure out if I need to configure an artifact for every module "target" (meaning a deployable unit, such as a compressed WAR)

Yes, you, do for deployable artifacts. But if you don't need to deploy it separately (say war depends on jar) you don't need artifact, idea will put compiled classes in the artifact without that intermediate phase.

supposed to configure one general WAR-type artifact and simply point at it from my various modules, in a similar fashion to facets.

It's reasonable in most caces and you have to follow this approach, if it is sufficient for you. For example, in most cases you will just put "Exploded" artifact in a corresponding "War" artifact. Regarding the facets - didn't understand what you assumed.

how to specify that the pages (in my case, xhtml pages) from the web root folder get copied into the WAR.  

Most probable reason - you didn't configure web facet properly. If configured properly, idea will suggest you to create artifact from the facet content.

Mine don't, consequently the 
application doesn't run, and there doesn't seem to be any way to specify
 this.

You have to open project settings, module, web facet settings > web content roots. (don't sure it's 100% correct, but direction is right)

regards, Alex

0
Comment actions Permalink

Thanks, Alexander.  With your help, I was able to get past the basic problem I was having.  Part of my trouble was that I was attempting to create a new artifact, rather than use the exploded one that is (apparently) provided when you add the web facet.  If I just create a project from scratch, specify the Web/JSF facets and let the tool create the artifact, I have something that will deploy and run.  I still don't really know how to create an artifact from scratch (such as a compressed deployment for production), but I can deal with that later.  At least this gets me past my original problem.

Also,  your explanation of the relationship between the modules and the artifacts was helpful.

Thanks!

0

Please sign in to leave a comment.