How to identify project type from project folder

266
March 22, 2018, at 5:35 PM

Recently i have received a project as a zip. I have unzipped and now i want to import the same in eclipse. But am unable to identify what type of project(maven, java, gradle, etc) it is. I have tried importing as existing project into work-space. But its not identifying as a project when searching in eclipse.

For maven projects, it will have a pom.xml, this one don't have one. Similarly is there any other ways to identify what type of project it is from the project folder?

Thanks in advance!

Answer 1

I have received partial answer from the commends of @Sangeeta and @carchingUp. I want to add all details to a single answer so that it will be helpful to others.

Inputs from Sangeeta: if pom.xml is present you can infer its a maven project. If build.sbt, then its an sbt project. If build.gradle, You can know its a gradle project and build.xml for ant projects

In my case i was having build.xml from which we can identify as ant project.

When you import the project as ant project to eclipse and if you have the below scenario, "package name is com.abc.xyz, present in src/main/java and when importing as ant project, main.java.com.abc.xyz becomes the project and am getting error for all the java files for package name mismatch", follow the below steps.

  1. right click the src folder >build path >remove from build path
  2. right click the java folder > build path > use as source folder.
Rent Charter Buses Company
READ ALSO
Array Converted to Stack

Array Converted to Stack

How can you take an array and put it into a stack???? I have a card array with a deck of cards that gets shuffled then I need to change it to a stack and print the first number on topAnyway anyone can help?

203
MessagePack performance seems bad over serialization time

MessagePack performance seems bad over serialization time

I am trying to figure out the best way to store my java POJO in redis to reduce memory usageRight now I am saving object directly in JSON format after stringyfy pojos to JSON using Jackson

209
Netbeans creating a loop of JOptionPanes in GUI builder

Netbeans creating a loop of JOptionPanes in GUI builder

im building a program with the GUI editor of netbeans, however, when I want to load the GUI of certain class that extends a JFrame and contains a JPanel, netbeans starts to create the JOptionPanes that are supposed to appear when some exceptions are thrown...

172
Is there wordnet 3.0 java for windows? [on hold]

Is there wordnet 3.0 java for windows? [on hold]

i have checked the https://wordnetprinceton

135