mmoitems/README.md

26 lines
1.1 KiB
Markdown
Raw Normal View History

2020-09-11 04:27:58 +02:00
Private repository for MMOItems Premium.
2020-09-11 04:29:31 +02:00
Issues: https://git.lumine.io/mythiccraft/mmoitems/-/issues
2020-09-11 04:27:58 +02:00
Wiki: https://git.lumine.io/mythiccraft/mmoitems/-/wikis/home
2021-06-12 15:22:19 +02:00
**How to add or update a dependency to the local repository**
1. Get the jar file you want to add as a dependency and place it on your desktop
2. You'll need to deploy your jar as a maven artifact for Maven to recognize the jar as a potential dependency. For that you can use the command in your command prompt:
```
mvn deploy:deploy-file -Durl=file:///C:\Users\cympe\Desktop -DgroupId=net.Indyuce.mmoitems.lib -Dpackaging=jar -Dfile=<JarFileName>.jar -DartifactId=<ArtifactName> -Dversion=<ArtifactVersion>
```
2021-06-12 15:22:58 +02:00
This will generate a folder on your desktop that you can place in the MI local repo.
2021-06-12 15:22:19 +02:00
3. Head to the MMOItems pom.xml config file and add a dependency:
```
<dependency>
<groupId>net.Indyuce.mmoitems.lib</groupId>
<artifactId>ArtifactName</artifactId>
<version>ArtifactVersion</version>
</dependency>
2021-06-12 15:22:44 +02:00
```
2021-06-12 15:22:19 +02:00
The artifact names and versions must match in order for the dependency to be recognized.