Setting up a standard directory layout using Maven -


i'm new maven , have skimmed on documentation following hibernate tutorial @ http://docs.jboss.org/hibernate/stable/core/reference/en/html_single/#tutorial-firstapp-mvn.

i have installed maven , setup web-app not contain of standard directories mentioned in tutorial. going mad?

when building maven project using maven-archetype-webapp. gives me arh-webapp\src\main\resources , arh-webapp\src\main\webapp directories i'm missing quite few directories mentioned on link http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html.

surely don't have manually add these? if not hibernate documentation not mention archetype use in order achieve directory structure used in tutorial. please can enlighten me.

what archetype need use in order have above directory plus src/main/java directory? if there no such archetype can append these using maven? , how?

not directories mentioned required standard web application. in fact, reason behind presence of src/main/java, src/main/resources , src/main/webapp directories due archetype you've used.

imho, book titled "better builds maven" serve better; sonatype books on maven might help. complete maven documentation available pdf file, future reference.

but in case, need clarity on terms used, here's some:

archetype: pattern projects. simple web applications (with no dependencies on other frameworks/libraries) have own archetypes, applications using spring, hibernate, seam, etc. archetypes result in creation of different directories, coded way. might able change directory structures in cases, although cannot vouch every archetype. instance, quite possible place sources in 'src' instead of 'src/main/java', although requires additional configuration in pom.

lifecycles, phases , goals: maven build lifecycle series of phases, each phase executing set of goals. maven can commanded execute build phase, results in execution of phases until , including specified phase.

maven plugins: maven plugins contain 1 or more goals. goals need not bound phases, bind them particular phases. plugins basis operational in maven; you're using plugins though compiling application (the maven compiler plugin core plugin present in maven distribution).

i hope above helps, suggest reference books followed.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -