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

CSC309 Lecture 12

CSC309 Lecture 12

Software Engineering II
Maven
(202305)

Javier Gonzalez-Sanchez

February 07, 2023
Tweet

More Decks by Javier Gonzalez-Sanchez

Other Decks in Programming

Transcript

  1. jgs CSC 309 Software Engineering II Lecture 12: Java Libraries

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

    3 Application programming interface (API) enables two software components to communicate with each other using a set of definitions and protocols. § Bing Maps § AccuWeather § OpenAI API
  3. jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 |

    4 A collection of resources (classes) Library
  4. jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 |

    8 • 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
  5. jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 |

    12 Maven Directories A build automation tool used
  6. jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 |

    17 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
  7. jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 |

    20 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")
  8. jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 |

    26 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/
  9. jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 |

    28 Options <dependency> <groupId>org.jfree</groupId> <artifactId>jfreechart</artifactId> <version>1.5.3</version> </dependency>
  10. jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 |

    32 Issues Awesome Java Frameworks https://github.com/akullpp/awesome-java
  11. jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 |

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

  13. jgs CSC 309 Software Engineering II Lab 12: Java Libraries

    Dr. Javier Gonzalez-Sanchez [email protected] www.javiergs.com Building 14 -227 Office Hours: By appointment
  14. jgs Javier Gonzalez-Sanchez | CSC 309 | Winter 2023 |

    38 Let’s Work A. Configure Maven B. Add a Dependency C. Create a Chart D. Show me your (Java) and POM file
  15. 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.