Giter Club home page Giter Club logo

Comments (7)

deathbeam avatar deathbeam commented on July 19, 2024 1

Ooh, thank you, didn't knew about JitPack. That thing is awesome :o Anyway, got the dependency working now, so closing this issue. Ty for fast reply.

from java-discord-rpc.

m-sterling avatar m-sterling commented on July 19, 2024

Hey there,

Obviously I'm not Minn, so I can't answer if it'll be on the "official" Maven repo, but just because it's not there doesn't mean you can't use Maven. The repo and all of its code is accessible via the JitPack Maven repository.

This link will have more info on how to add the JitPack repository to your pom.xml file: JitPack

If you have further questions, don't hesitate to ask!

from java-discord-rpc.

MinnDevelopment avatar MinnDevelopment commented on July 19, 2024

Since jitpack does everything that is needed I don't feel like moving it onto maven central/jcenter.
You can use the jitpack resolver as mentioned by @kkirigaya

from java-discord-rpc.

deathbeam avatar deathbeam commented on July 19, 2024

Reopening this because I can't get any dependency files. It looks like that jitpack current cannot build the project?

Build starting...
Start: Sat Feb 3 19:38:25 UTC 2018
Git:
v2.0.1-31-g49b2304
commit 49b23040c60fb5819d8f03ccf4bbd4b6785daf12
Author: Chris Marsh 
Date:   Wed Nov 22 16:12:37 2017 -0800

    wip updating build script



ERROR:
No build file found. Looking for Gradle/Maven/Sbt/Lein build file in the root of the project
See the documentation at https://jitpack.io/docs/
Files: 
CMakeLists.txt
LICENSE
README.md
appveyor.yml
build.py
documentation
examples
include
src
2018-02-03T19:38:25.586295388Z
Exit code: 1
No build artifacts found

from java-discord-rpc.

m-sterling avatar m-sterling commented on July 19, 2024

Sorry to hear that! Mind posting your pom.xml file here so I can take a look at it? Thanks!

from java-discord-rpc.

deathbeam avatar deathbeam commented on July 19, 2024

So, here is the parent pom.

What I added there is:

		<repository>
			<id>jcentral</id>
			<url>https://jcenter.bintray.com</url>
			<name>jcenter</name>
		</repository>
		<repository>
			<id>jitpack.io</id>
			<url>https://jitpack.io</url>
			<name>jitpack</name>
		</repository>

Before </repositories>

Here is the child project pom

Where I actually want to use the Discord RPC.

I added

		<dependency>
			<groupId>com.github.MinnDevelopment</groupId>
			<artifactId>discord-rpc</artifactId>
			<version>v1.3.1</version>
		</dependency>

under

		<dependency>
			<groupId>org.projectlombok</groupId>
			<artifactId>lombok</artifactId>
			<scope>provided</scope>
		</dependency>

It looks like it should be working, but Maven cannot resolve the discord-rpc dependency. Tree output from the ~/.m2

MinnDevelopment
└── discord-rpc
    └── v1.3.1
        ├── discord-rpc-v1.3.1.jar.lastUpdated
        └── discord-rpc-v1.3.1.pom.lastUpdated

2 directories, 2 files

I tried other versions/commits/branches but deleted the MinnDevelopment directory in order to try re-fetch it, but no success as you can see above.

from java-discord-rpc.

deathbeam avatar deathbeam commented on July 19, 2024

Oh, oops, my fault java-discord-rpc not discord-rpc 🤦‍♂️

from java-discord-rpc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.