简体   繁体   中英

How to deploy an Eclipse project referencing a sub-project on Heroku?

I'm working on a Java web project using Heroku as hosting PaaS. As IDE I'm using Eclipse and I'm trying to deploy this project.

In a previous version the project had only Maven dependencies, but now I'm referencing another project as dependency of the main web-app that doesn't reside in the main repository.

Which is the right approach to this case? Should I use a single repository?

The "right" way to do it is making the project you depend on a published artifact in a Maven repository. But that is a pain for small projects.

Here are some other options:

If you decide to do it the "right" way, I recommend deploying the artifact to bintray.com , which is a little easier to use in this kind of scenario than, say, Sonatype.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM