what I have under the Appfuse folder are
Appfuse
---archetypes
---appfuse-basic-jsf
---appfuse-basic-spring
---appfuse-basic-struts
---appfuse-basic-tapestry
---appfuse-modular-jsf
---appfuse-modular-struts
---appfuse-modular-tapestry
---data
---plugins
---service
---src
---web
---www
Michael Horwitz wrote:
>
> Hi,
>
> On 2/4/07, Fan <[EMAIL PROTECTED]> wrote:
>>
>>
>> I am using struts 2 Basic Module. I have got the Appfuse 2.0 core classes
>> from the svn.
>>
>> 1) They are different folders in the projects e.g. src/main, appfuse,
>> target
>>
>> Here my question are :
>>
>> 1) how do the above mentioned folders relate to each other ?
>
>
>
> AppFuse 2.0 follows the standard Maven layout. For details as to what
> should
> go where, I would suggest you take a look at the Maven guide:
> http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
>
> As they say in the guide, keeping the directory structure the same accross
> projects means you can pick up any Maven project and immediately
> understand
> where to find anything. It does take a bit of getting used to at first!
>
>
>> 2) Whichever new class, jsp, or modification should be done in the
>> src/main
>> ?
>
>
> Any new Java classes you write should go in their respective package under
> src/main/java. But only Java source code. Any other files you want on the
> classpath once the project has been compiled must go in
> src/main/resources.
> The web application resources are placed under src/main/webapp. Here you
> should find WEB-INF and its respective sub folders, one of which is called
> pages and contains the JSP pages.
>
> 3). Everytime I have changed something in src/main, I need to run "mvn
>> clean"
>> to clear all the things in "target" folder first, then when I run "mvn
>> jetty:run-war", the changes will only take effect, is that normal ?? or
>> is
>> there any other ways ?
>
>
> Hmm. You don't necessarily need to run a full clean all the time - it
> should be sufficient to run something like mvn package (to build the war
> package). Maven should automatically pick up the files you have changed
> and
> include them in the build. When you run mvn jetty:run-war it should do the
> compile as well, so something a little strange may be happening here....
>
> 4) If I want to change something on the core classes, I should do that
> under
>> "appfuse" folder ?
>
>
> I am a little confused as to where the appfuse folder lies - once you
> have
> extracted the core classes to your project they should sit below
> src/main/java in a package starting org.appfuse. What directories do you
> have below the appfuse folder?
>
> Mike
>
>> -
>> View this message in context:
>> http://www.nabble.com/Struts-2-Basic-Module-tf3169715s2369.html#a8792731
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Struts-2-Basic-Module-tf3169715s2369.html#a8806598
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]