Steps to achieve this stage:
mkdir -p src/main/java/hello
pom.xml
next to your src
folder
src/main/java/hello/HelloController.java
src/main/java/hello/Application.java
maven package
java -jar target/gs-spring-boot-0.1.0.jar --server.port=31415
http://silo.cs.indiana.edu:31415
You can also explore my hierarchy of folders at your convenience.
Or look at this:
Careful how you run-bash-4.2$ pwd /u/dgerman/mon-c322-0413 -bash-4.2$ ls pom.xml src -bash-4.2$ tree . . +-- pom.xml +-- src +-- main +-- java +-- hello +-- Application.java +-- HelloController.java 4 directories, 3 files -bash-4.2$
maven
: which mvn; man mvn
The result is:
Then start the-bash-4.2$ tree . . +-- pom.xml +-- src | +-- main | +-- java | +-- hello | +-- Application.java | +-- HelloController.java +-- target +-- classes | +-- hello | +-- Application.class | +-- HelloController.class +-- generated-sources | +-- annotations +-- gs-spring-boot-0.1.0.jar +-- gs-spring-boot-0.1.0.jar.original +-- maven-archiver | +-- pom.properties +-- maven-status +-- maven-compiler-plugin +-- compile +-- default-compile +-- createdFiles.lst +-- inputFiles.lst 14 directories, 10 files -bash-4.2$
.jar
file using your port (see Students and Ports or let me know).