Posts Tagged ‘maven’

AppFuse and NetBeans: part 2

Some more tips about getting an AppFuse generated application into NetBeans. Pick archetype of choice, e.g.: mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-spring -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactId=myproject Run mvn Generate full sources: mvn appfuse:full-source Install the Maven plugin in NetBeans (Tools / Plugins / Search for Maven). Open the project (located the pom.xml file) Right-click the project name [...]

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: http://localhost:8081/<app_name>/ Where <app_name> might be something like appname-1.0-SNAPSHOT depending [...]

Create table from object for AppFuse

Once mapped in hibernate.cfg.xml run: mvn test-compile hibernate3:hbm2ddl

Skip AppFuse tests

To skip tests when running/compiling using AppFuse projects, set the maven.test.skip property: mvn jetty:run-war -Dmaven.test.skip=true

AppFuse and NetBeans

Opening an AppFuse in NetBeans might be done in two ways, two ways that I managed to mix up the first time… Either install the Maven plugin Mevenide2 for NetBeans, then you may simply open the Maven project generated by AppFuse directly. Without the Maven plugin, then you need to convert to project using mvn [...]