Comments (10)
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 *.jar
so you're not able to submit your jar to heroku.
from heroku-buildpack-java.
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.
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.
I did already do that and it 'downloads' the file successfully into my local repository on my local instance. :)
from heroku-buildpack-java.
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.
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}/repoI 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.
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.
Thank @jcouyang ! ,,,, finally found this ..... 👍
from heroku-buildpack-java.
hi, @jcouyang thanks for you help.
from heroku-buildpack-java.
Thanks @jcouyang for saving the day.
from heroku-buildpack-java.
Related Issues (20)
- JFX RT HOT 4
- Query:How to enable gzip compression HOT 2
- Could not detect buildpack / Error compiling buildpack HOT 3
- mvn verify HOT 3
- Cache dir not automatically created? HOT 4
- Maven wrapper not used HOT 4
- Build Pack Error when deploying dokku HOT 8
- Implement support for slices HOT 1
- Corporate Proxy HOT 2
- Install Java without Maven HOT 3
- pom.xml not in root HOT 3
- Readme Featured Image
- Cloud Foundry uploading everything? HOT 7
- No plugin found for prefix 'dependency' in the current project and in the plugin groups HOT 4
- Maven build doesn't use MAVEN_OPTS anymore. HOT 11
- Ambiguous Redirect for BUILDPACK_LOG_FILE
- Maven downloaded over HTTP
- Support Maven polyglot plugin HOT 1
- buildpack test script does not use run_mvn helper HOT 1
- Query : how to enable gzip compression? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heroku-buildpack-java.