Code Monkey home page Code Monkey logo

Comments (10)

jcouyang avatar jcouyang commented on June 1, 2024 8

hi @fgarsombke , check your .gitignore file, maybe you should remove the *.jar in it
I met the same problem. I finally find the .gitignore ignore all *.jarso you're not able to submit your jar to heroku.

from heroku-buildpack-java.

fgarsombke avatar fgarsombke commented on June 1, 2024 1

Arggh...markdown. Here are the correct POM elements.

<repository>
  <id>project.local</id>
  <name>project</name>
  <url>file:${project.basedir}/repo</url>
</repository>

<dependency>
    <groupId>pubnub</groupId>
    <artifactId>pubnub-java</artifactId>
     <version>3.4</version>
 </dependency>

from heroku-buildpack-java.

ryanbrainard avatar ryanbrainard commented on June 1, 2024

Locally, can you try first deleting it from your $HOME/.m2/repository directory and then trying the build? If you already have the dependency in your $HOME/.m2/repository directory, Maven will find it from there and ignore the repo you added to your POM. It's probably easier to just manually delete the dependency from $HOME/.m2/repository, but the dependency:purge-local-repository might be helpful if you have a lot of them.

from heroku-buildpack-java.

fgarsombke avatar fgarsombke commented on June 1, 2024

I did already do that and it 'downloads' the file successfully into my local repository on my local instance. :)

from heroku-buildpack-java.

ryanbrainard avatar ryanbrainard commented on June 1, 2024

Hmm, there should be nothing special about Maven on Heroku that would cause a difference. Just to make sure, have you have added and committed the files into the Git repo? Can you paste in the snippet of your POM and what your file structure of repo looks like?

from heroku-buildpack-java.

fgarsombke avatar fgarsombke commented on June 1, 2024

Yes the repo has been committed to github. I double checked :)

It seems really straight forward doing this...but for some reason doesn't work.

Here are the repo files:

repo/pubnub/pubnub-java/3.4/pubnub-java-3.4.jar.md5
repo/pubnub/pubnub-java/3.4/pubnub-java-3.4.jar.sha1
repo/pubnub/pubnub-java/3.4/pubnub-java-3.4.pom
repo/pubnub/pubnub-java/3.4/pubnub-java-3.4.pom.md5
repo/pubnub/pubnub-java/3.4/pubnub-java-3.4.pom.sha1
repo/pubnub/pubnub-java/maven-metadata.xml
repo/pubnub/pubnub-java/maven-metadata.xml.md5
repo/pubnub/pubnub-java/maven-metadata.xml.sha1

Here is the POM:

pubnub pubnub-java 3.4

......

project.local project file:${project.basedir}/repo

I do have a workaround and I ended up adding these files to my project which is definitely not a best practice, but allowed me to move forward for now.

Thank you for taking the time to try and diagnose this issue. I have been using Maven for quite some time so hopefully I haven't made any rookie mistakes :)

Franz

from heroku-buildpack-java.

nethopper avatar nethopper commented on June 1, 2024

thanks @jcouyang! I actually had the same problem and been banging my head against the wall, never realised that the jar hasn't been sent, and that fixed it for me.

from heroku-buildpack-java.

velmuruganvelayutham avatar velmuruganvelayutham commented on June 1, 2024

Thank @jcouyang ! ,,,, finally found this ..... 👍

from heroku-buildpack-java.

franklinconzaec avatar franklinconzaec commented on June 1, 2024

hi, @jcouyang thanks for you help.

from heroku-buildpack-java.

raghavio avatar raghavio commented on June 1, 2024

Thanks @jcouyang for saving the day.

from heroku-buildpack-java.

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.