简体   繁体   English

在eclipse中导出项目仅导出.classpath和.project

[英]Exporting project in eclipse only exporting .classpath and .project

I imported a git folder https://github.com/TeamLapen/Vampirism.git ((If you were wondering)). 我导入了一个git文件夹https://github.com/TeamLapen/Vampirism.git ((如果您想知道的话))。 And so now I have it within my eclipse workspace, but not "really". 所以现在我将其保存在我的Eclipse工作区中,但不是“真正”。 Here's what I mean: The project shows up in the tree on the left of the eclipse window, but the folder itsself is NOT located in the /workspace/ like the other projects. 这就是我的意思:该项目显示在eclipse窗口左侧的树中,但是文件夹本身不像其他项目一样位于/ workspace /中。

All I did in the code was change a few lines to fix a bug, as is highlighted below. 我在代码中所做的只是更改了几行以修正错误,如下所示。 在此处输入图片说明

Anyways, when I go to export the file (File > Export > Jar), a few things happen: 无论如何,当我导出文件(“文件”>“导出”>“ Jar”)时,会发生一些事情: 在此处输入图片说明

In the box on the left, you see the project name is "Vampirismx". 在左侧的框中,您将看到项目名称为“ Vampirismx”。 In the middle box, you see that the project is NOT AVAILABLE FOR EXPORT. 在中间的框中,您将看到该项目不可用于导出。 In the right box, you see the only files "available" for export are the classpath and project files. 在右边的框中,您可以看到只有“可用于导出”的文件是类路径和项目文件。

Can someone help me? 有人能帮我吗?

Tl;dr I imported an eclipse project from git. 文艺青年最爱的我从进口的git的Eclipse项目。 When trying to export it, the project isn't showing up. 尝试导出时,没有显示该项目。

looking at the git repository, it does not provide eclipse project settings, and indicates only step by step instructions for intelliJ. 查看git存储库,它不提供eclipse项目设置,并且仅指示有关intelliJ的分步说明。

So when you imported it into eclipse, you have it on your workspace like a plain project, not a java one and that is why trying to export it as JAR does not shows up. 因此,当您将其导入eclipse时,您会将其像普通项目一样放在工作区中,而不是java项目中,这就是为什么未显示将其导出为JAR的原因。

You must indicates that the project is a java project and it should work. 您必须指出该项目是一个Java项目,并且它应该可以工作。 also, i'm not familiar with gradle, but seams there is a goal for settings things in eclipse : https://github.com/TeamLapen/Vampirism#setting-up-vampirism-in-another-environment 另外,我不熟悉gradle,但是接缝有一个目标是在eclipse中设置东西: https : //github.com/TeamLapen/Vampirism#setting-up-vampirism-in-another-environment

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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