Heroku Gradle部署。错误。找不到符号。

huangapple 未分类评论46阅读模式
英文:

Heroku Gradle Deployment. error. Cannot Find Symbol

问题

我觉得这可能是一个 .gitignore 的问题。我不断尝试从命令行将我的 Spring Boot 仓库上传到 Heroku,但我一直得到以下输出:

  symbol:   variable Access
remote:          location: class V1HitsDB
remote:        /tmp/build_baef3c14/src/main/java/com/h/db/V1HitsDB.java:72: error: cannot find symbol
remote:                String AWS_ACCESS_KEY = Access.AWSAccessKeyID;
remote:                                        ^
remote:          symbol:   variable Access
remote:          location: class V1HitsDB
remote:        Note: Some input files use or override a deprecated API.
remote:        Note: Recompile with -Xlint:deprecation for details.
remote:        31 errors
remote:        :compileJava FAILED

有任何想法是什么原因吗?在我的机器上一切都运行得很好(典型的,对吧?),我在其他仓库中从未遇到过这个问题。这发生在我使用访问密钥的所有方法中 - 这指向了 gitignore。我的仓库地址是 https://github.com/Hart87/Mephesto

英文:

I feel like this is a .gitIgnore problem. I keep trying to upload my Spring Boot repository to Heroku from the command line and I keep getting this output

  symbol:   variable Access
remote:          location: class V1HitsDB
remote:        /tmp/build_baef3c14/src/main/java/com/h/db/V1HitsDB.java:72: error: cannot find symbol
remote:                String AWS_ACCESS_KEY = Access.AWSAccessKeyID;
remote:                                        ^
remote:          symbol:   variable Access
remote:          location: class V1HitsDB
remote:        Note: Some input files use or override a deprecated API.
remote:        Note: Recompile with -Xlint:deprecation for details.
remote:        31 errors
remote:        :compileJava FAILED

Any idea what this is? Everything works perfectly fine on my machine (typical right ?) I have never had this problem with my other repositories. It's happening for all the methods where I use access keys from - which points to gitignore. my repository is https://github.com/Hart87/Mephesto

答案1

得分: 0

这不是一个 .gitignore 的问题。甚至不是一个过时问题。

这是一个Java编译错误。你的代码试图使用一个名为 Access 的类,但编译器找不到它。

我查看了你的 V1HitsDB 的源代码,它导入了一个名为 com.h.Access 的类。但是你的代码库在路径 Mephesto/src/main/java/com/h/ 下没有一个名为 "Access.java" 的文件。


> 上周我上传了相同的东西到Heroku,没有任何问题。

根据提交历史,自从上周以来,你对代码库进行了一些更改。尝试部署上次工作正常时的代码版本。

英文:

It is not a .gitignore problem. It is not even a deprecation problem.

It is a Java compilation error. Your code is trying to use a class called Access and the compiler can't find it.

I looked at the source code for your V1HitsDB and it is importing a class called com.h.Access. But your repo doesn't contain an "Access.java" file at the path "Mephesto/src/main/java/com/h/".


> I uploaded the same thing last week to Heroku without issue.

According to the commit history, you have made a few changes to your repo since last week. Try deploying the version of your codebase that was current when it last worked.

huangapple
  • 本文由 发表于 2020年7月25日 12:42:40
  • 转载请务必保留本文链接:https://java.coder-hub.com/63084428.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定