Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CSC308B Lecture 16

CSC308B Lecture 16

Software Engineering I
Maven
(202401) - two-days per week version

Javier Gonzalez-Sanchez

March 06, 2024
Tweet

More Decks by Javier Gonzalez-Sanchez

Other Decks in Programming

Transcript

  1. jgs CSC 308 Software Engineering I Lecture 16: Java Libraries

    & Maven Dr. Javier Gonzalez-Sanchez [email protected] www.javiergs.com Building 14 -227 Office Hours: By appointment
  2. jgs Javier Gonzalez-Sanchez | CSC 308 | Winter 2024 |

    2 A collection of resources (classes) Library
  3. jgs Javier Gonzalez-Sanchez | CSC 308 | Winter 2024 |

    6 • The project object model (POM) which describes a project and its dependencies. • A standardized directory format. • Repositories where third-party software is stored and discovered. Apache Maven - Build management tool
  4. jgs Javier Gonzalez-Sanchez | CSC 308 | Winter 2024 |

    10 Maven Directories A build automation tool used
  5. jgs Javier Gonzalez-Sanchez | CSC 308 | Winter 2024 |

    15 Options 1. Maria DB Community Server Open-Source and created by MySQL’s original developers https://mariadb.com/downloads/ For mac you can use the Homebrew package manager: > brew install mariadb > mysql.server start
  6. jgs Javier Gonzalez-Sanchez | CSC 308 | Winter 2024 |

    18 Issues CREATE TABLE database.students ( ID INT NOT NULL, user VARCHAR(8) NOT NULL , password VARCHAR(8) NOT NULL ) INSERT INTO students (ID, user, password) VALUES (1, "javiergs", "qwerty")
  7. jgs Javier Gonzalez-Sanchez | CSC 308 | Winter 2024 |

    24 Options 1. JfreeChart https://www.jfree.org/jfreechart/ JFreeChart is a free Java chart library that makes it easy for developers to display professional- quality charts in their applications. Samples: https://zetcode.com/java/jfreechart/
  8. jgs Javier Gonzalez-Sanchez | CSC 308 | Winter 2024 |

    26 Options <dependency> <groupId>org.jfree</groupId> <artifactId>jfreechart</artifactId> <version>1.5.3</version> </dependency>
  9. jgs Javier Gonzalez-Sanchez | CSC 308 | Winter 2024 |

    30 Project – User selects Cluster and clicks Run ✅
  10. jgs Javier Gonzalez-Sanchez | CSC 308 | Winter 2024 |

    31 Issues <dependency> <groupId>nz.ac.waikato.cms.weka</groupId> <artifactId>weka-stable</artifactId> <version>3.8.0</version> </dependency>
  11. jgs Javier Gonzalez-Sanchez | CSC 308 | Winter 2024 |

    36 Issues Awesome Java Frameworks https://github.com/akullpp/awesome-java
  12. jgs Javier Gonzalez-Sanchez | CSC 308 | Winter 2024 |

    38 Office Hours Tuesday and Thursday 3 - 5 pm But an appointment required Sent me an email – [email protected]
  13. jgs

  14. jgs CSC 308 Software Engineering I Lab 16: Java Libraries

    & Maven Dr. Javier Gonzalez-Sanchez [email protected] www.javiergs.com Building 14 -227 Office Hours: By appointment
  15. jgs Javier Gonzalez-Sanchez | CSC 308 | Winter 2024 |

    43 Let’s Work A. Configure Maven B. Add a Dependency C. Create a Chart D. Show me your (Java) and POM file
  16. jgs CSC 309 Software Engineering II Javier Gonzalez-Sanchez, Ph.D. [email protected]

    Winter 2023 Copyright. These slides can only be used as study material for the class CSC308 at Cal Poly. They cannot be distributed or used for another purpose.