question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add project as maven dependency?

See original GitHub issue

Perhaps I’m asking a stupid question, but I want to add this project as a maven dependency, and I don’t know how to do that.

I tried adding a local dependency on the jar, but then maven won’t build it properly. I want it to be a maven dependency because then it updates automatically without having to download a new jar for every release.

I also tried adding it like this:

<dependency>
            <groupId>io.github.jorelali</groupId>
            <artifactId>commandapi</artifactId>
            <version>1.3</version>
</dependency>

But that just tells me: Dependency 'io.github.jorelali:commandapi:1.3' not found.

Any help please?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JorelAlicommented, Oct 15, 2018

Created a Maven Repository here on Github:

<repository>
    <id>commandapi</id>
    <url>https://raw.githubusercontent.com/JorelAli/1.13-Command-API/mvn-repo/</url>
</repository>
<dependency>
    <groupId>io.github.jorelali</groupId>
    <artifactId>commandapi</artifactId>
    <version>1.4</version>
</dependency>
0reactions
Combustiblecommented, Oct 15, 2018

Weirdly - if I give the repository the id commandapi it doesn’t work. If I call it anything else (jorelali) it works fine. ???

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I add a project as a dependency of another project?
Hi Simon, Yes, as you said we can create the parent project with "pom" and move the other two under the parent project....
Read more >
How do I add a project as a dependency of another ... - Medium
I was helping somebody recently that is learning to code Java, he said if is possible to add a maven project as a...
Read more >
Java Maven Dependency Project Tutorial - Genuitec
Right-click the utility project, and select Maven>Add Dependency. · Type a dependency name in the Enter groupID… · Select the dependency, and click...
Read more >
How do I add a project as a dependency of another project?
This tutorial describes how to add a project as a dependency of another project. ... A key concept in mavenSW is the idea...
Read more >
Add Maven support to an existing project - JetBrains
Open an existing project, for example, a Java project. · In the Project tool window, right-click your project and select Add Framework Support....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found