Maven is a software project management and comprehension tool.

Steps to achieve this stage:

  1. create directory structure
    mkdir -p src/main/java/hello
  2. set up a pom.xml next to your src folder

  3. create a simple web app
    src/main/java/hello/HelloController.java
  4. create an application class
    src/main/java/hello/Application.java
  5. build with
    maven package
  6. run with
    java -jar target/gs-spring-boot-0.1.0.jar --server.port=31415
  7. use your own port number (instead of mine, shown here) then go online and check your service
    http://silo.cs.indiana.edu:31415

You can also explore my hierarchy of folders at your convenience.

Or look at this:

-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$
Careful how you run maven: which mvn; man mvn

The result is:

-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$
Then start the .jar file using your port (see Students and Ports or let me know).