java buildpack是什么,错误:您的buildpacks不包含heroku / jvm buildpack!将heroku / jvm添加到您的buildpack...

我有gradle和spring boot的java项目,我想部署到Heroku .

我使用 gradle war 在本地创建了myApp.war(我必须在本地部署,因为我使用的是本地lib存储库) . 战争已成功创建,但当我尝试部署到Heroku heroku war:deploy myApp.war --app appName 时,我收到了错误:

! ERROR: Your buildpacks do not contain the heroku/jvm buildpack!Add heroku/jvm to your buildpack configuration or run `heroku buildpacks:clear`.

! Re-run with HEROKU_DEBUG=1 for more info.

! There was a problem deploying to appName.

! Make sure you have permission to deploy by running: heroku apps:info -a appName

我正在使用:

Java 10

Spring 季启动

Gradle 4

我已经通过heroku应用程序设置添加了heroku / gradle构建包 .

build.gradle

plugins {id'java'id'idea'id'maven'id'war'id'application'id'org.springframework.boot'version'2.0.6.RELEASE'}

mainClassName =“com.my.app.BootApplication”

war {baseName ='my-app'version ='1.0.0'}

logger.lifecycle“war.archivePath = $ war.archivePath”

description =“”“我的应用说明”“”

sourceCompatibility = 10 targetCompatibility = 10

tasks.withType(JavaCompile)

存储库{

maven {url“http://repo.maven.apache.org/maven2”} maven {url uri('../my-locally-private-repository')}}

依赖项{compile group:'org.springframework.boot',name:'spring-boot-starter-data-jpa',version:'2.0.4.RELEASE'compiler group:'org.springframework.boot',name:' spring-boot-starter-web',版本:'2.0.4.RELEASE'编译组:'org.springframework.boot',名称:'spring-boot-starter-web-services',版本:'2.0.4 . RELEASE'编译组:'org.springframework.boot',名称:'spring-boot-starter-security',版本:'2.0.4.RELEASE'compile'com.github.jsimone:webapp-runner:8.5.11.3'编译组:'org.hamcrest',名称:'hamcrest-core',版本:'1.3'编译组:'com.my.app,名称:'private-dependency-1',版本:'1.0.0'testCompile group:'org.springframework.boot',name:'spring-boot-starter-test',version:'2.0.4.RELEASE'}

system.properties

java.runtime.version = 10

Procfile

web:java -jar build / server / webapp-runner-.jar build / libs / .war

我怎么解决这个问题?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值