This application was generated by the Apache Isis simpleapp archetype. It is intended as a starting point for developing your own applications.
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.
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 also as a docker image, and runs the |
||
|
Checkstyle and PMD rule sets for static analysis.
|
-
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 install -Dmavenmixin-jettyconsole
This can then be run using:
cd webapp/target && java -jar simpleapp-webapp-xxx-jetty-console.war
Add additional arguments
--headless
or--port 9999
, if required.It can also be run using:
mvn -pl webapp && mvn antrun:run -Dmavenmixin-jettyconsole
or to specify arguments:
mvn -pl webapp && mvn antrun:run -Dmavenmixin-jettyconsole \ -Dmaven-antrun-plugin.jettyconsole.args="--headless --port 9090"
-
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). -
To package up the application as a docker image:
mvn package -Dmavenmixin-docker
This assumes that the
${docker-plugin.imageName}
property has been defined in thewebapp
module. Alternatively it can be specified on the command line using a system property, eg:mvn package -Dmavenmixin-docker -Ddocker-plugin.imageName=mycompany/myapp
The packaged image can be viewed using
docker images
. -
To run a docker image previously packaged:
docker run -d -p 8080:8080 mycompany/myapp
See mavenmixin-docker for further details on how to run docker images.
-
To upload the application as a docker image to docker hub (or some other docker registry):
mvn deploy -Dmavenmixin-docker
This assumes that the
${docker-plugin.imageName}
property has been defined, and also that docker registry credentials have been specified in~/.m2/settings.xml
. See mavenmixin-docker for further details.