📗 -> 01/14/26: ECS160-D2


Lecture Slide Link

🎤 Vocab

❗ Unit and Larger Context

Agenda:

  • What is JDK?
  • Maven Build
  • Demo

✒️ -> Scratch Notes

JDK - Java Development Kit
  • Compiler, javac, runtime, java
    • javac compiles source code to binaries for JVM
JRE - Java Runtime Environment
  • Runtime env -> Contains the java launcher
  • Contains JVM and core libs to run java
JVM - Java Virtual Machine
  • VM that execs compiled files
  • This is what makes Java “write once, run anywhere”
Maven
  • Build automation and project management tool for java
    • Others like gradle too
  • Runs on top of JDK
  • Key file: pom.xml
    • Dependency management
    • Provides Project Object Model (POM)
pom.xml
  • Info about
    • Project - coordinates, metadata
    • Config details - build config, dependencies
  • Default vals:
  • Config file for project, ‘blueprint’ that Maven uses to put together project
Maven Build Cycle

Maven is built around the “build lifecycle”

  • default, clean, site
Phases in Default Lifecycle
  • validate - validate the project is correct and all necessary information is available
  • compile - compile the source code of the project
  • test - test the compiled source code using a suitable unit testing framework. These tests should not require the code be packaged or deployed
  • package - take the compiled code and package it in its distributable format, such as a JAR.
  • verify - run any checks on results of integration tests to ensure quality criteria are met
  • install - install the package into the local repository, for use as a dependency in other projects locally
  • deploy - done in the build environment, copies the final package to the remote repository for sharing with other developers and projects.

🧪 -> Refresh the Info

Did you generally find the overall content understandable or compelling or relevant or not, and why, or which aspects of the content were most novel or challenging for you and which aspects were most familiar or straightforward?)

Did a specific aspect of the content raise questions for you or relate to other ideas and findings you’ve encountered, or are there other related issues you wish had been covered?)

Resources

  • Put useful links here

Connections

  • Link all related words