Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+20 votes

How do you add a new third-party library to your project?

asked in CSC305 Fall 2022 by (1 point)

1 Answer

+11 votes

I believe you have to edit your pom.xml to include another library.

<dependency>
    <groupId>your own custom group id</groupId>
    <artifactId>your own custom artifact id</artifactId>
    <version>some version number</version>
</dependency>

For example, if you wanna add ControlsFX Library to your project: https://github.com/controlsfx/controlsfx/wiki/ControlsFX-Features
you could do:

<dependency>
    <groupId>org.controlsfx</groupId>
    <artifactId>controlsfx</artifactId>
    <version>11.1.1</version>
</dependency>

Hope this helps!

answered by (1 point)
...