Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use in maven project #15

Open
zephirus opened this issue Apr 11, 2021 · 15 comments
Open

Use in maven project #15

zephirus opened this issue Apr 11, 2021 · 15 comments
Labels

Comments

@zephirus
Copy link

How can I integrate this in my maven project?

@LysergikProductions
Copy link

^^^^^^^^^^^^^^^^^^^^^^^

@portlek
Copy link

portlek commented May 27, 2021

clone.

add my parent pom to the pom.xml.

<parent>
  <groupId>io.github.parentpom</groupId>
  <artifactId>ppom</artifactId>
  <version>3.4.6</version>
</parent>

then run mvn clean install command.

@gagangag
Copy link

Where should i clone the project ?

@portlek
Copy link

portlek commented Jun 24, 2021

image

@gagangag
Copy link

gagangag commented Jun 24, 2021

thats not what i ment haha i dont want to use this project i just want to add it as a dependency, since there is no jar file available and the instruction clone. (which does not help at all cause i could clone it into my trashcan haha)
adding the

io.github.parentpom
ppom
3.4.6

to my project also does not help.
I guess ill switch to a better documented api.

@zephirus
Copy link
Author

You have to do it like @portlek said.

@portlek
Copy link

portlek commented Jun 24, 2021

you should add this parent stuff to the pom.xml of the coingecko then run mvn clean install command, it will build the project into the local .m2 folder.

<parent>
  <groupId>io.github.parentpom</groupId>
  <artifactId>ppom</artifactId>
  <version>3.4.6</version>
</parent>

then you can use it as a dependency like that;

<dependency>
  <groupId>com.litesoftwares</groupId>
  <artifactId>coingecko-java</artifactId>
  <version>1.0-SNAPSHOT</version>
</dependency

@llva
Copy link

llva commented Sep 17, 2021

Hello @Philipinho @fabianpol, just wondering why we cannot find such dependency on https://repo.maven.apache.org posted in a released manner (without -SNAPSHOT) ???

Basically, I plugged a GitHub-Action on one of my GitHub repo which triggers a build each time I open a branch. Note it is perfectly building/compiling locally on my laptop.

But it is failing for the following reason on GitHub...

Error: Failed to execute goal on project barbuzzz: Could not resolve dependencies for project com.development.foo:barbuzzz:jar:0.0.1-SNAPSHOT: Could not find artifact com.litesoftwares:coingecko-java:jar:1.0-SNAPSHOT -> [Help 1]

Any idea would be appreciated :)

@Philipinho
Copy link
Owner

@llva I will work on adding the project to Maven soon.

@Philipinho Philipinho added the todo label Nov 3, 2021
@1Maxnet1
Copy link

Any news on this issue? I would be really interested in this and would offer to help or test as well, if you could need some help.

@Philipinho Philipinho pinned this issue Dec 15, 2021
@dehidehidehi
Copy link

My solution was:
Add this to your master pom.xml

<repositories>
	<!-- Jitpack allows GitHub Maven projects to be linked as dependencies -->
	<repository>
		<id>jitpack.io</id>
		<url>https://jitpack.io</url>
	</repository>
</repositories>

Then add this to your dependencies.

<!-- https://github.com/Philipinho/CoinGecko-Java -->
<dependency>
	<groupId>com.github.Philipinho</groupId>
	<artifactId>CoinGecko-Java</artifactId>
	<version>master-2777edc9a4-1</version>
</dependency>

Finally build (Alt+F5)

@marinkobabic
Copy link

Would be great if you could publish the library to maven repository. Many thanks in advance

@LucasDijk
Copy link

Yes please, would be great!

@anwfr
Copy link

anwfr commented Jun 23, 2022

FYI you can get it from maven by adding this to your pom.xml:

    <dependencies>
        <dependency>
            <groupId>com.github.philipinho</groupId>
            <artifactId>CoinGecko-Java</artifactId>
            <version>master-SNAPSHOT</version>
        </dependency>
    </dependency>
    <repositories>
        <repository>
            <id>jitpack.io</id>
            <url>https://jitpack.io</url>
        </repository>
    </repositories>

See https://jitpack.io/#philipinho/CoinGecko-Java for more details.

@boritopalito
Copy link

My solution was: Add this to your master pom.xml

<repositories>
	<!-- Jitpack allows GitHub Maven projects to be linked as dependencies -->
	<repository>
		<id>jitpack.io</id>
		<url>https://jitpack.io</url>
	</repository>
</repositories>

Then add this to your dependencies.

<!-- https://github.com/Philipinho/CoinGecko-Java -->
<dependency>
	<groupId>com.github.Philipinho</groupId>
	<artifactId>CoinGecko-Java</artifactId>
	<version>master-2777edc9a4-1</version>
</dependency>

Finally build (Alt+F5)

I can confirm that this is working perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests