Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 1.51 KB

README.md

File metadata and controls

25 lines (19 loc) · 1.51 KB

sparkjava-01

The simplest possible SparkJava web app (Hello World)

To use

To do this Do this
run the program Type mvn exec:java. Visit the web page it indicates in the message
check that edits to the pom.xml file are valid Type mvn validate
clean up so you can recompile everything Type mvn clean
edit the source code for the app edit files in src/main/java.
Under that the directories for the package are edu/ucsb/cs56/pconrad
edit the source code for the app edit files in src/test/java.
Under that the directories for the package are edu/ucsb/cs56/pconrad
compile Type mvn compile
run junit tests Type mvn test
build the website, including javadoc Type mvn site-deploy then look in either target/site/apidocs/index.html
copy the website to /docs for publishing via github-pages Type mvn site-deploy then look for javadoc in docs/apidocs/index.html
make a jar file Type mvn package and look in target/*.jar

| run the main in the jar file | Type java -jar target/sparkjava-demo-01-1.0-jar-with-dependencies.jar | | change which main gets run by the jar | Edit the <mainClass> element in pom.xml |