On 3/5/07, wnqq <[EMAIL PROTECTED]> wrote:

The following lists my steps (summary only) on the Quick Start Guide
(http://appfuse.org/display/APF/AppFuse+QuickStart).

The steps in bold are missing from the guide. I am not sure if they are the
best solutions, however, It took me a while to figure them (the steps in
bold) out.

I don't see any bold in this e-mail.


* Use Archetype "Struts2 Modular": \\
  mvn archetype:create -DarchetypeGroupId=org.appfuse
-DarchetypeArtifactId=appfuse-modular-struts
-DremoteRepositories=http://static.appfuse.org/repository
-DarchetypeVersion=1.0-m4-SNAPSHOT -DgroupId=com.mycompany
-DartifactId=myproject

* To change mysql root's password in appfuse, modify the <jdbc.username> and
<jdbc.password> properties in your project's pom.xml (at the bottom).

* Run mvn integration-test in your project's directory to download JARs,
Tomcat and run the integration tests in your project.

* Install the missing artifact com.mycompany:myproject-core:jar:1.0-SNAPSHOT
** In ......\AppFuse2\myproject\core: \\
   mvn install:install-file -DgroupId=com.mycompany
-DartifactId=myproject-core -Dversion=1.0-SNAPSHOT -Dpackaging=jar
-Dfile=target/myproject-core-1.0-SNAPSHOT.jar

You shouldn't need to do this - when you run "mvn install" or "mvn
integration-test" from the top-level directory, it should install the
"core" module.  Or maybe "integration-test" doesn't install it, so web
doesn't find it?


* cd web/ and execute "mvn jetty:run-war":
** Maven will start Jetty and you should be able to view your application in
your browser at http://localhost:8080.
** to stop jetty: Ctrl+c

* Eclipse:
** [http://appfuse.org/display/APF/Eclipse]


* To override files from AppFuse:
** cd web
** mvn war:inplace
** This will extract the dependent WARs into web/src/main/webapp/*
** No need to execute "mvn war:inplace" under myproject/ nor myproject/core/
** rm -r web/src/main/webapp/WEB-INF/lib
** rm web/src/main/webapp/WEB-INF/classes/struts.xml
** mvn jetty:run
** At this moment, I am not sure if we still need the dependencies of
appfuse-struts as described in myproject/web/pom.xml

You need it for the Struts (and other library) dependencies, as well
as AppFuse core classes.  Of course, if you don't want AppFuse's
functionality, you could build your own pom.xml with its own
dependencies. However, you will need to modify web.xml to remove the
listeners and filters that are no longer merged into your project by
AppFuse.

Hope this helps,

Matt

--
View this message in context: 
http://www.nabble.com/Comments-on-Quick-Start-Guide-of-AppFuse2-tf3347079s2369.html#a9307019
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to