gpt4 book ai didi

java - EGit - 从 github 导入项目(仅 src)作为 java 项目

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:56:14 25 4
gpt4 key购买 nike

我最近尝试导入项目,它只有 src ( *.java) 文件。我总是收到这样的错误

Connecting Git team provider failed. See log for details.
Connecting Git team provider failed. See log for details.
Error connecting project Navigator, no Git repositories found

.gitignore 看起来像这样:

/bin/
# Intellij
.idea/
*.iml
*.iws

# Eclipse
.classpath
.project
.settings/

# Package Files #
*.jar
*.war
*.ear

*.class

我可以导入项目(作为裸 src 文件 - 无法执行它,不支持 java 名称等)但是当我尝试将它转换为 java 项目时,我收到类似问题开头的错误

@edit1正如所问的.log:

!SESSION 2015-12-19 22:37:01.406 -----------------------------------------------
eclipse.buildId=4.5.1.M20150904-0015
java.version=1.8.0_65
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=pl_PL
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.egit.ui 2 0 2015-12-19 22:37:11.004
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Jakub'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.

!ENTRY org.eclipse.egit.ui 4 0 2015-12-19 22:38:31.914
!MESSAGE Connecting Git team provider failed. See log for details.
!STACK 1
org.eclipse.core.runtime.CoreException: Connecting Git team provider failed. See log for details.
at org.eclipse.egit.core.op.ConnectProviderOperation.execute(ConnectProviderOperation.java:111)
at org.eclipse.egit.ui.internal.clone.GitImportWizard$8.run(GitImportWizard.java:286)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2241)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2225)
at org.eclipse.egit.ui.internal.clone.GitImportWizard.importProjects(GitImportWizard.java:291)
at org.eclipse.egit.ui.internal.clone.GitImportWizard.access$2(GitImportWizard.java:235)
at org.eclipse.egit.ui.internal.clone.GitImportWizard$4.run(GitImportWizard.java:205)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Contains: Error connecting project Navigator, no Git repositories found
!SUBENTRY 1 org.eclipse.egit.core 4 0 2015-12-19 22:38:31.916
!MESSAGE Connecting Git team provider failed. See log for details.
!SUBENTRY 2 org.eclipse.egit.core 4 0 2015-12-19 22:38:31.916
!MESSAGE Error connecting project Navigator, no Git repositories found

最佳答案

我在 eclipse 中导入自己的 PHP 项目时遇到了类似的问题。我不知道如何修复它,但是在导入时将项目更改为通用的 eclipse 项目而不是 java 项目对我有用。然后,如果需要,您可以将一般的 eclipse 项目更改为 java 项目。

关于java - EGit - 从 github 导入项目(仅 src)作为 java 项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34374815/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com