SimpleApp
This application was generated by the Apache Isis simpleapp archetype. It is intended as a starting point for developing your own applications.
Quick start
Build using:
mvn clean install
Run using:
mvn -pl webapp jetty:run
Login using:
-
username:
sven
-
password:
pass
The app runs with HSQLDB running in-memory, with sample data set up using fixture scripts.
Application Structure
The following table explains the contents of each of the directories:
Directory | Description | ||
---|---|---|---|
|
Defines application-level classes such as menus and the |
||
|
Holds the "simple" module, consisting of the
|
||
|
Assembles the application into a webapp (comprising both the Wicket viewer and Restful Objects viewer) and runs the |
||
|
Checkstyle and PMD rule sets for static analysis.
|
More advanced use cases
-
To enhance all JDO entities prior to running:
mvn -f pom-jdo-enhance-all.xml datanucleus:enhance
-
To also generate the Jetty console, allowing the application to run as a standalone JAR:
mvn package -Dmavenmixin-jettyconsole
This can then be run using:
cd webapp/target && java -jar simpleapp-webapp-xxx-jetty-console.war
Add additional flags, eg
--headless
or--port 9999
, if required. -
To also generate source and javadoc JARs:
mvn clean package -Dmavenmixin-sourceandjavadoc
NoteThis is configured only for the
module-simple
module. -
To create the website (for the
module-simple
module) with source/javadoc and static analysis:mvn -pl module-simple site -Dmavenmixin-sourceandjavadoc -Dmavenmixin-staticanalysis
NoteThis is intended to run only for the
module-simple
module, and will generate a website under`target/site/index.html`. -
To disable the running of unit tests:
mvn -DskipUTs
TipBy default, output of unit tests are in
target/surefire-unittest-reports
(in themodule-simple
modules). -
To disable the running of integration tests:
mvn -DskipITs
TipBy default, output of integration tests are in
target/surefire-integtest-reports
(in theapplication
andmodule-simple
modules). -
To disable the running of BDD specs:
mvn -DskipBSs
TipBy default, output of integration tests are in
target/surefire-integbddspecs-reports
(in theapplication
module). -
To disable the running of all tests and BDD specs:
mvn -DskipTests
-
To disable the running of the `isis:validate goal:
mvn -Dskip.danhaywood-mavenmixin-isisvalidate
-
To disable the generation of cucumber reports:
mvn -Dskip.danhaywood-mavenmixin-cucumberreporting
TipBy default, cucumber reports are generated at
target/cucumber-html-reports/overview-features.html
(in theapplication
module). -
To disable the running of the
isis:swagger
goal:mvn -Dskip.danhaywood-mavenmixin-isisswagger
TipBy default, Swagger spec files are generated at
target/generated-resources/isis-swagger
(in thewebapp
module).