Monthly Archives: June 2008

AppFuse and NetBeans: part 2

Some more tips about getting an AppFuse generated application into NetBeans.

  1. Pick archetype of choice, e.g.: mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-spring -DremoteRepositories= -DarchetypeVersion=2.0.2 -DartifactId=myproject
  2. Run mvn
  3. Generate full sources: mvn appfuse:full-source
  4. Install the Maven plugin in NetBeans (Tools / Plugins / Search for Maven).
  5. Open the project (located the pom.xml file)
  6. Right-click the project name and select Properties
  7. In categories, select Run. Chose a server.
  8. In categories, select Actions. Check the box for Use external Maven for build execution.
  9. In main window, select Tools / Options / Miscellaneous / Maven 2.
  10. Now Run the project, and after a while a browser should open pointing you to the login screen.

Manually run AppFuse WebTests

Sometime it may be useful to manually run the (Canoo) web tests for AppFuse applications to be able to see what goes wrong. Accomplish this by making the test web container pause upon start using:

mvn -Dcargo.wait

Then the application (using default values) is reachable at:


Where <app_name> might be something like appname-1.0-SNAPSHOT depending on your configuration.

If a test fails it might also be a good idea to take a look at how the pages retrieved actually look like, they are saved (by default) in the directory target\webtest-data.