User related files in IntelliJ IDEA project [duplicate] - java

This question already has answers here:
IntelliJ IDEA 9/10, what folders to check into (or not check into) source control?
(7 answers)
Closed 10 years ago.
We have a small team using IntelliJ IDEA as Java IDE and manage our source code with git. The IDEA project was created as directory based format. I found some files under .idea are user related.
Is there a complete list of user-related files that I can filter out with .gitignore?

Please check the FAQ.
I also recommend checking other files you are going to share for the sensitive information. For example, new Android artifacts in IntelliJ IDEA 12 can contain keystore passwords (in encrypted form, but could be decrypted).
Your question is also a duplicate of these:
What to gitignore from the .idea folder?
Intellij Idea 9/10, what folders to check into (or not check into) source control?
How to deal with IntelliJ IDEA project files under Git source control constantly changing?

Related

Difference between make and build in the Intellij idea [duplicate]

This question already has answers here:
Difference between make and build in Android Studio
(3 answers)
Closed 6 years ago.
The Intellij idea in the build menu has Make Project and Build Project. what is difference between them?
You can get it on the Intelij site:
Make Project: All the source files in the entire project that have been modified since the last compilation are compiled. Dependent source files, if appropriate, are also compiled. Additionally, the tasks tied to the compilation or make process on modified sources are performed. For example, EJB validation is performed if the corresponding option is enabled on the Validation page.
Rebuild Project: All the source files in the project are recompiled. This may be necessary when the classpath entries have changed, for example, SDKs or libraries being used added, removed or altered.

IntellijIDEA: synchronization of updatings in the pom-file and external libraries [duplicate]

This question already has answers here:
Force Intellij IDEA to reread all maven dependencies
(17 answers)
Closed 7 years ago.
I updated the version of library through the pom-file. During compilation all necessary jar for the new version were downloaded from a repository. But in IntellijIDEA the corresponding external libraries weren't updated. I removed in IDE these libraries manually, in hope that on their place will appear new, but occurred nothing (simply the project ceased to see library).
How to update external libraries?
Thanks in advance.
UPD:
The third-party library which is used from Maven means. Its use is adjusted through the pom-file. When it was declared, after the first compilation it was downloaded from a repository, and the corresponding external libraries were automatically added to IDE. The problem described above appeared after attempt of updating of library.
Just a right Click on the project: Maven->Reimport.

How to import nested java projects to eclipse [duplicate]

This question already has answers here:
Importing multiple projects into eclipse
(2 answers)
Closed 8 years ago.
I have a folder called "MyProject" and inside it I have 10 folders that each of them is a Java project (contains .classpath and .project). I don't want to import them one by one. Is there a way to import folder "MyProject" and all nested ones?
I tried import>general>Existing project into workspace but it didn't work.
Also I checked the option search for nested projects but it didn't work as well. I checked this question but that is different from mine. In my case there is no parent project.
Even though I use the Eclipse, I haven't ever tried doing what you asked. So I'm just going to redirect you to this link and hopefully it will help you: Importing multiple projects into eclipse It's basically what you tried. Worked for me. When you choose a directory, you get a view of all the available projects and you just need to have checked those you want to import.

Newly Created Android Application Project missing R.java file [duplicate]

This question already has answers here:
Another R.Java file missing [duplicate]
(5 answers)
Closed 9 years ago.
I opened an android application project called Test Canvas and later cleaned it by
Project > Clean ...
'Bulid Automatically' option was ticked.
Then the R.java file was deleted and it did not regenerated.I tried all the other options mentioned in the questions of stackexchange.But the R.java file remained missing.
One answer said that R.java generation fails because of errors in .xml files.But there were no errors.I'm 100% sure.
Then i created a new android application project which cannot have any issues in xml files.
When i created the new project it didn't came with the R.java file. I tried cleaning and building with different combinations.It still doesn't work.
I am using eclipse Helios
Android API 15
Android SDK Manager Revision 22
JDK 7U25
Can any one help me on this please?
I understand you have tried cleaning the project. What I would like you to do is Build the project and check the console for any errors.
The R.java also doesn't gets generated if the your project contains errors and these errors are clearly mentioned in your console.
Have a look and see if you can resolve your problem.
Try the following
Close and Reopen the project
Ensure your project folder has 777 rights
Use a later version of Android, that triggers a clean build
Check Problems tab, sometimes errors are not shown on the project files/folder, but a error shows up in this tab
Check top to see the amount of memory you have left, sometimes OOM screws things up
Please use a more later version 1.5 is like decades old
Try this.
Open the properties of your Project
Go to the Android Build target of your Application
Just change the from the currently checked one to another version(can be anything, but one that is supported to at least the minSDK declared in the Manifest)
Do a clean build, if your Project has no issues like in your resources like hyphens in draw able names,unrecognized strings,missing dimension values etc ... your Project should generate the R package with the R class

Eclipse - Generated file not appearing in project folder [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Auto refresh eclipse project upon folder update
I have been working with Java projects using Eclipse (both Ganymede and Helios). I have noticed that when I generate a file, for instance if I create and write data to a text file, or if I serialize some objects, then although the file is visible if I search outside of eclipse (i.e. using windows explorer or the places on linux) it is not appearing in my project folder.
If I try and import this file into my project, then Eclipse tells me that I can't do this because the file is already in my project structure. So I have to move the file manually outside of this folder using windows explorer etc and then import it into the eclipse project before I can see it.
Is there a way to make these generated files appear automatically? What ias the reason they're not already doing so?
Thanks in advance
right click on the project -> refresh
or press F5
Refresh your Eclispe project (F5).
If you are writing those files programmatically, you might be interested in either Auto refresh as Beau suggested, or, if you can, switch to the Eclipse IO API if you wish tighter integration with Eclipse, which will directly take care of this.

Categories