Is it possible in Eclipse to see the full repository path associated with a project?
This is a bit trivial information so I would expect it would be available somewhere but I can't find it.
So for Subversion I can of course go to the command line and do svn info but I would expect that this information is also available in Eclipse. This is the most trivial but also the most essential information about a resource.
Right-click on the project or file and click properties. Then select the "Subversion" section from the left.
First of all, you have a Subversion plugin installed in Eclipse, right? Otherwise just add one, and everything comes up automatically.
Please have a look at the following preferences afterwards:
Team -> SVN -> Label decorations: There you can configure what is shown directly besides the project nodes in the project explorer. The available variables to configure what exactly is shown depend on whether you use the Subclipse or the Subversive plugin.
General -> Appearance -> Label decorations: There you globally enable/disable label decorations.
Related
I created a new simple Maven project in a new Workspace.
When I open the pom.xml's Dependencies view in Eclipse editor, and I choose Add.. dependency, there's no search results no matter what search criteria I input in the search fields:
It instantly give me, for example, Results for 'spring' (0).
In my other workspace, with my existing projects I don't have this problem.
Is there a way to fix that ?
Eclipse artifact searching depends on repository's index file. It seems you did not download the index file.
Go to Window -> Prefrences -> Maven and check "Download repository index updates on start". Restart Eclipse and then look at the progress view. An index file should be downloading.
After downloading completely, artifact searching will be ready to use.
UPDATE
You also need to rebuild your Maven repository index in 'maven repository view'.
In this view , open 'Global Repositories', right-click 'central', check 'Full Index Enable',
and then, click 'Rebuild Index' in the same menu.
A 66M index file will be downloaded.
In your eclipse, go to Windows -> Preferences -> Maven
Tick the option "Download repository index updates on startup". You may want to restart the eclipse.
Also go to Windows -> Show view -> Other -> Maven -> Maven repositories
On Maven repositories panel, Expand Global repositories then Right click on Central repositories and check "Full index enabled" option and then click on "Rebuild index".
You can get this result if you are inside a corporate proxy and the new project isn't pointing to the correct settings.xml file with the proxy credentials.
You can also get this if you are using Maven proxy (Nexus, for example) and the index into the proxy is messed up somehow. I don't know a way to describe how to fix this. Fool around with it or call the one who set up the Maven proxy.
You can also get this if the new workspace hasn't yet downloaded the index either from Maven central or from the proxy. (This is the best one as you just have to wait a while and it will work itself out.)
For me for this issue worked to:
remove ~/.m2
enable "Full Index Enabled" in maven repository view on central repository
"Rebuild Index" on central maven repository
After eclipse restart everything worked well.
The maven add dependency is actually from the maven indexes. If the indexes is up to date, the result should be from there.
If you go to the maven repository, then select global repository, you should see a central ... tab, and select that, there should be a list of folders, and you should be able to see all the indexes from there. If not, then it means you didn't get the full index, then you can right click that and enable full index.
Another thing I annoyed me most is even I did everything, it still not showing anything when I type "spring". This is actually where I did wrong. If you just type some additional text "springframework", BOOM, the result is there.
I have the same problem. None of the options suggested above worked for me. However I find, that if I lets say manually add groupid/artifact/version for org.springframework.spring-core version 4.3.4.RELEASE and save the pom.xml, the dependencies download automatically and the search works for the jars already present in the repository.
However if I now search for org.springframework.spring-context , which isnt in the current dependencies, this search still doesn't work.
Use https://search.maven.org/ manually with the prefix fc: to search for class names. Both Netbeans and Eclipse seem to be too stupid to use that search interface and the gigabytes of downloaded repository indexes seem to not contain any class information. Total waste of disk space. Those IDE projects are so badly maintained lately, I wish they would move development to GitHub.
It is neccesary to provide Group Id and Artifact Id to download the jar file you need. If you want to search it just use * , * for these fields.
In Eclipse I have exported code formatting, cleanup, import orders etc to files and checked them into svn.
This is useful for my team so that they can all use the same setup.
However, I can't find a way to do the same for Compiler options. There are quite a few useful settings that aren't switched on by default and its error prone for everyone to change them manually.
I know that I can use FindBugs (and we do through CI) but the Eclipse compiler options are better integrated and faster.
The best way to share all of those settings is to use Project-specific settings. Open the Project properties and select the various sections that you want to configure (for example, Java Compiler, then select the option Enable project specific settings.
Any settings you configure this way are stored in the project in a folder named .settings. Check that folder in to source control along with the .classpath and .project files, and whenever the project is checked out Eclipse will automatically apply the settings. Workspace settings are overridden by project-specific settings, so using this technique it doesn't matter how other workspaces or users have their settings configured.
The answer of #E-Riz is perfectly correct. If you find that you need to synchronize more than the listed settings for your team members in the future, then you should also have a look at Googles workspace mechanic, which allows to automatically apply any set of preferences to a workspace and to check during each start if the local preferences are still valid for the shared setup.
I have quite a few Java projects on Eclipse and i use different SVN repositories.
When a project is Shared, i would like to know which SVN repository it uses. (appended in front of the project name?...)
Is there a simple way to do it?
NOTE: I use the "Package Explorer" View.
If you are using SVN plugin then go to windows -> preferences -> Team -> SVN ->Label Decorations
In the text tab, for project format add variable 'url_short' that should do.
Also, you might need to enable 'SVN' in General>Appearance>Label Decorations
I use the subversive plugin for eclipse and it's shown by default.
I noticed that I had a project named RemoteSystemTempFiles which I never have created. After googling it seems to be plugin feature on eclipse, but didn't got any other idea of it.
Can any one please give me a better idea, of what could I have done and bit explanation on this folder? and also if its not harmful to my other projects!
If you want to remove the RemoteSystemsTempFiles, just go under Window -> Preferences -> General -> Startup and Shutdown and uncheck "RSE UI". Then you can remove the folder and eclipse won't recreate it.
You can delete it if you wish, it doesn't do any harm to other projects.
It is created by the remote systems explorer that comes with eclipse.
In Window->preferences type 'remote'. Click on remote systems view and uncheck the box that says 'reopen remote systems view to previous state'.
Eclipse already adds the .metadata folder - why does it add extra clutter?
If you're still seeing unwanted results in RemoteSystemsTempFiles when searching for a resource (e.g. CTRL+SHIFT+R), you can manually show the Eclipse resource in the Project Explorer and remove it...
Project Explorer view > Customize View... > Filters > Uncheck "RSE Internal Projects" > OK > find it in the Project Explorer tree > expand it > remove old folders.
You'll need to remove the Remote System Explorer End-User Runtime package.
Help > Installation Details > Installed Software and scroll down until you see it.
It has several sub-packages, all of which are removed altogether with their parent package.
I've been struggling with this folder for some time now, since NO solution I've tested so far worked..
Fortunately, today I found the solution that solves this issue:
from eclipse\plugins folder remove all the (org.eclipse.rse.*.jar) files (or backup them for your confort).
This are the ones responsable for the creation of this folder.
Eclipse works perfectly without them (I do not use any functionality from those packages).
Enjoy!
I would like to add that there might be situations in which you actually do not have the RSE UI plug-ins installed. However, the RemoteSystemTempFiles will still appear in your search results :-(
Example: For instance you have used an earlier version of Eclipse, including the RSE UI plug-ins. Later you have installed a newer version, probably to a different folder, but reusing the old workspace (via conversion). This time you have not installed the RSE UI plug-ins so your IDE has no option about this damn thing (which in fact is a very nice tool while working on Remote Systems).
However, despite the fact it doesn't have the plug-ins installed, Eclipse will still update/use that old/existent RemoteSystemTempFiles repository/container/whatever and thus it will always appear in your Search Results. Pretty annoying, I know!
The solution is quite simple:
In only 2 steps: install the plug-in then disable it.
select Help -> Install New Software, then choose the "http://download.eclipse.org/releases/[your-version-here]", then enter remote in the filter box.
search for the Remote System Explorer End-User Runtime & co. Probably the plug-ins could be found within the General Purpose Tools group, but this group may change from one edition/platform to other
install it/them then restart your IDE.
After it reopens select Window -> Preferences then select the General -> Startup and Shutdown and uncheck the RSE UI. Now it is disabled even in Search Results. Additionally you may select Window -> Preferences then Remote Systems -> File Cache and click Clear Cached Files.
That would do the trick - hopefully ;-)
I had a similar issue when using the Javascript perspective. By default on the left side it has a 'Script Explorer' instead of a 'Project Explorer'. It seems it was by default showing the files in the workspace instead of just the projects. I imagine it is the same with the PHP perspective.
I had a similar issue using PHP Explorer perspective. I always had the problem that Eclipse could not save project metadata. I selected the "filters" to uncheck RSE Temporary Project. Once it appeared in the tree view, I right click to delete it.
Then I can check again to keep same initial config.
Easiest way to get rid of these files is remove them physically....
go to ../../eclipse-workspace/RemoteSystemsTempFiles and remove from there..
In fact, I find it quite useful during development, especially if I'm working on a project that has configurations, templates and properties files that are located outside of my project and I have no intention to include them in the package.
if you open the .project of RemoteSystemsTempFiles you can link a couple of external folders that you might want to work on and not ship or version.(look at the link tag)
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>RemoteSystemsTempFiles</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
<nature>org.eclipse.rse.ui.remoteSystemsTempNature</nature>
</natures>
<linkedResources>
<link>
<name>CONFIG</name>
<type>2</type>
<location>C:/CONFIG</location>
</link>
</linkedResources>
</projectDescription>
I am trying to set up my dev environment and I got SVN running with Eclipse on my mac (with Subclipse). However, when I click on a file I've changed and go to Compare With -> Latest From Repository, I noticed I was getting (what I think is) a sub-par diff tool.
So, I went to Preferences -> Team -> SVN -> Diff/Merge to configure an external diff tool (called "DiffMerge"). However, no matter what I put in the "External" field and the "Parameters" field, I cannot get the DiffMerge tool to work.
For example, I tried "/Applications/DiffMerge" in the External field (I put the executable directly in the Applications folder for now) and made the parameters: "${base}" "${yours}". However, when I return to my modified file and hit compare with -> Lates from repository, I still get the same built-in diff tool.
Any ideas or resources you could point me to would be greatly appreciated (I've been hunting around stackoverflow myself for answers but to no avail).
I started using Mac recently and I faced the same problem. As suggested by Chris I got it working for DeltaWalker.
Steps :
1. Install BeyondCVS plugin with svn. This will ensure that BeyondCompare is added under Eclipse -> Preferences -> External Tools.
Open Eclipse -> Preferences -> External Tools -> Beyond Compare.
In the "Path To Beyond Compare" manually enter the installation folder for Delta Walker which on my machine is "/Applications/DeltaWalker.app/Contents/MacOS/DeltaWalker"
I beleive DiffMerge is a .app is it not? In that case i think you would have to give the path to actual binary which should be something like: /Applications/DiffMerge.app/Contents/MacOS/DiffMerge. If you right click on the app in Finder an do "Show Contents" it shoudl allow you to browse it like the regular directory it is... Or you can navigate into it from the command line and find the bianary you need.
Just out of curiosity whats worng with Subclipse's built in tool? IMO its the best Diff/Merge on OSX - but maybe im missing something.
I am using the BeyondCVS plugin with SVN. Despite its name, it works both Subclipse and Subversive. And it will launch comparison apps other than BeyondCompare, (I've used WinMerge), so it may work with DiffMerge on the Mac.
I was able to get this to work after some experimentation. You need to trick Subclipse into finding the right file to open.
Open finder and navigate to DiffMerge.app
Right click > "Show Package Contents"
Navigate to Contents/MacOS/DiffMerge
Right click > "Make Alias"
Drag and Drop the "DiffMerge alias" file to your home folder
In Eclipse, select the alias file as the external diff program
Set the parameters to "-m -t1=Theirs -t2=Merged -t3=Mine -r=${merged} ${theirs} ${base} ${yours}"