Where is speciffication about eclipse project upgrade operation? - eclipse

I have a project in my eclipse workspace. After eclipse is started and workspace checked popups a window "Project Upgrade" which says that one of mine projects is
... created with older release of Eclipse and/or related plugins.
And does propose me to upgrade my project.
I want to know what exactly does "project upgrade", which files it touches and what exact changes will provide to them. Is it documented somewhere? I didn't find any useful information in eclipse help.
I'm using eclipse helios. But I want to know if is it somewhere some place with change log of "project structure" through eclipse versions.

Related

Cannot use Subclipse after installing

I have installed Subclipse in Eclipse EE Luna.
This is what my installation details look like :
Going on past experience, I would now expect a silo icon to appear next to all of my files as they are locally all part of a SVN directory structure.
Also when I right click a file or folder I expect lots of SVN options. All I see is this :
Which leads me to believe that is not switched on? not working maybe?
Does anyone know what I need to do to get it working? Other SVN tools immediately synch up with my projects.
(The neverending Eclipse configuration nightmare continues....)
You get that context menu for 'Team' if the current project is not being shared.
So right click on the Project and use 'Team > Share Project...' to set up the project in SVN.
Subclipse cannot automatically connect to projects that existed in the workspace before you installed Subclipse. For those projects, you have to use Team > Share Project. Subclipse will recognize that it is a SVN working copy and just "connect it".
That said, your option is grayed out. That means these projects are already "connected" to a Team provider as far as Eclipse is concerned. However, since there are no Team options on the menu, that means the team provider is likely not installed.
So my conclusion is that you had these projects linked to the Subversive plugin, not Subclipse. You will have to install that plugin so you can use Team > Disconnect ... or you need to delete these projects and then re-import them to the workspace.

subclipse not showing "share project" option on project context menu in eclipse

Within eclipse, with Subclipse installed, if I right click a project and select "team" there are normally 2 options:
apply patch
share project
Once you have shared project you get the full Subclipse menu from "team"
One project however only has one option - apply patch. If I close the project I see both options but the share project option is grayed out.
I have other projects where this is not happening.
What could be special about this project to stop me getting the share project option? Is there another path to the share project function I could use?
Regards
Solve this problem with these steps:
Verify that you can update using TortoiseSVN (this will guarantee that your .svn is not corrupt)
Delete all your projects that have this problem, but in the delete dialog, do not delete the project contents!
Select File -> Import -> Existing projects into Workspace.
Select your projects folder or your workspace folder.
Subeclipse should now detect and connect your projects automatically, without need to select 'Share Project' for each one of them.
This is usually the case when the directory containing the project is not properly under version control (bad or corrupted .svn).
So:
can you execute SVN commands in a shell a the root of your project?
where are your .project and .classpath files (in the eclipse workspace or at the root directory of your project?)
If you upgraded your Eclipse recently, make sure you're still using the same SVN plugins... :)
In my case, I upgraded my Eclipse and accidentally installed Subversive instead of Subclipse. The existing .svn directory of the project contained data in the format expected by Subclipse, and so Subversive got confused (e.g. but not showing the "Share Project" option).
Close Project and Re-Open project has worked for me.
I have the same problem after emergency-migrating (again!) from Subversive to Subclipse.
Old .svn entries are all there but Subclipse won't pick them up.
I can successfully commit using an external tool, in this case TortoiseSVN, but in Eclipse, I just see normal Java projects that cannot be shared (because of stale .svn entries I suspect).
The only solution I see is to commit everything you want to keep with an external tool, then freshly check out your projects into a new workspace and copy over any missing pieces from your old workspace.
Try to select prespective as java instead of j2ee and then restart as eclipse .
This works for me.
Delete the file:
<ECLIPSE_WS>\.metadata\.plugins\org.eclipse.core.resources\.projects\<PROJECT_NAME>\.indexes\properties.index
And the Share Project option appears!
I had the exactly same situation with Yaniv above.
If you upgraded your Eclipse recently, make sure you're still using
the same SVN plugins... :)
In my case, I upgraded my Eclipse and accidentally installed
Subversive instead of Subclipse. The existing .svn directory of the
project contained data in the format expected by Subclipse, and so
Subversive got confused (e.g. but not showing the "Share Project"
option).
My solution is like below:
Exported the current project in the new workspace into .war file.
Double-checked the current project is in the svn repository.
Removed the project in the new workspace completely once I was sure that I have the exported .war file and svn repository so that I will be able to import the project again.
Imported the project from svn, and checked out the project from the svn.
(Or, you can import the project from the .war file and you will be able to Share Project)
-> It worked well with the Subversive which is installed in the new workspace.
Please double check if you were using: Subversive or Subclipse?
It is likely that you have opened an old project with a newer Eclipse installation, where the software to be used may not be the one used previously, for example:
Subclipse instead of Subversive
Subversive instead of Subclipse
In my case after a fresh install of "Eclipse IDE for PHP Developers"
Version: 2018-09 (4.9.0)
Build id: 20180917-1800
while I needed to make some modifications to an ancient SVN tracked project.
I had Subclipse instead of Subversive (so simple yet you may be up for a spin).
Credit to the answer from Yaniv, he had installed the software the other way around - same issue.

Problem installing Maven plugin (m2eclipse) in Eclipse (Galileo)

I have Eclipse Galileo (for Java EE Developers) installed, and I'm now trying to get the m2eclipse Maven plugin installed as well.
I follow the basic steps described at http://m2eclipse.sonatype.org/installing-m2eclipse.html, and it seems to be installing just fine. However, after restarting Eclipse after the install it doesn't seem to be anywhere. I should for instance have the ability to create a new maven project, but when the new-project wizard opens, there is no folder for Maven (I also cannot find any reference to it in the context menus of the existing projects I have).
When I click at Help > About Eclipse > Installation Details, I find "Maven Integration for Eclipse (Required)" in the tab "Installed Software", yet another thing pointing towards a successful installation (but I can't find it under the "Plug-ins" tab, should it be there too?)...
I feel like I'm just missing something very obvious, but right now I just don't see it...
I managed to find the answer to this myself:
I had put the Eclipse installation folder under c:\Program Files\, but when I moved it directly under c:\ instead, the plug-in installation worked just as it should. I assume that is because Eclipse wasn't allowed to write to its own installation folder (but I didn't get the usual question from Windows that something was trying to access Program Files either...).
In one way I feel like I should be a bit ashamed that I didn't think of this before. On the other hand though, there could have been some reasonable error message stating that something failed during the plug-in installation...
Well, I hope this at least helps somebody else as well :)
Did you check the m2eclipse installation requirements?
In particular, you need WTP.
"Maven integration for Eclipse" (core feature) and optional "Maven POM Editor" feature depend on the "Eclipse XML Editors and Tools" feature from WST
"Maven integration for WTP" feature provides Maven project configuration for WTP
Did you have a previous version of m2eclipse installed? Did you uninstall it before to install the latest version? Just in case, does the following note applies to you?
Note about 0.9.8 Workspace Incompatibility: If you are using
m2eclipse 0.10.0 with a workspace that
contains projects created under
m2eclipse 0.9.8, you must remove the
workspaceState.ser file. The
workspaceState.ser file is located
within the workspace directory in
$workspacedir/.metadata/.plugins/org.maven.ide.eclipse/workspaceState.ser.
If you remove this file, m2eclipse
0.10.0 will regenerate it as needed.
In my case, uninstalling the previous m2eclipse version didn't work and I had to start with a fresh Eclipse install (maybe try this also).
Regarding the plugin tab, this is what I have (to confirm that you should definitely find something):
alt text http://www.imagebanana.com/img/84h6mw8z/screenshot_008.png
Note that I also installed some extras from m2eclipse Extras Update Site: http://m2eclipse.sonatype.org/sites/m2e-extras
I was able to solve this problem by going into Program Files, right click on the eclipse.exe file and select "Run as administrator". When I restarted Eclipse it said I had no plugins installs so I reinstalled and my problems were solved.
PROBLEM SOLVED
I had this same problem and I used the following software site:
["M2Eclipse - http://download.eclipse.org/technology/m2e/releases/1.0] (without square brackets) to download the M2Eclipse plugin in Eclipse 3.7.0 (Indigo). For more information refer this.
To solve the problem of 'not getting Maven plugin running in eclipse' , it can be solved by altering admin rights to the .m2 folder . Right click on .m2 folder and go to network sharing. give all rights to all users. Restart eclipse and maven options will start to appear in Eclipse.

How do i remove m2eclipse from my eclipse installation?

I don't need m2eclipse to work properly, I just need to remove m2eclipse for now and let eclipse behave normally. how do i do this?
Two solutions:
Remove the plugin through the list of installed plugins
(the illustrations are from the blog post "Install Eclipse UI Form Editor" written by Albert ATTARD):
The "about eclipse" menu will give you access to the list of installed Software:
You can click on the right application (m2eclipse for you, Jiglo in this example), and click uninstall, and restart eclipse.
A safer solution would be first to install a new fresh copy of Eclipse, and add your existing plugins (except m2eclipse): if that fails, you still have your previous Eclipse installation untouched.
after doing what VonC suggested, goto the directory eclipse\plugins and search anything with m2e and remove it from the directory
also do the same for the eclipse\features directory.
then you won't be seeing any of the m2e things again.
i would have used m2e if it had a command line feature similar to
"mvn eclipse:clean" and "mvn eclipse:eclipse"
sadly their both incompatible with each other..
right now all i needed are those two command lines to get me up and running with eclipse just to browse and edit the code, etc..

SVN not working in Eclipse

One day I pressed in Eclipse Help -> Check for Updates (and I learnt that I should Never Ever update a software which works fine.)
Then in a project that I used with SVN the whole submenu of "Team" and the little icons that showed that some files weren't commited, they all dissapeared.
I tried everything:
revert from Instalation History tab
uninstall from Installed Software tab
replaced the folder eclipse in Program Files with a new one downloaded from eclipse website and tried to install again
searched how to install it on the net
But in none of the cases above if I press Ctrl+N There is no SVN group;
If i right click on a project and select Team -> Share project, a window with CVS appears, but no SVN.
If I choose File -> Import I can't find SVN anywhere.
If I go to Help -> About Eclipse -> Instalation details I see at Instalation History in 25.06.2009, 09:59:08 GMT+03:00 (when SVN worked)
Eclipse IDE for Java EE Developers 1.2.0.20090621-0820
Subclipse (Required) 1.6.2
Subversion JavaHL Native Library Adapter (Required) 1.6.3
SVNKit Library 1.3.0.5847
In the Installed Software tab I have now installed
Eclipse IDE for Java EE Developers 1.2.0.20090621-0820 epp.package.jee
Subclipse (Required) 1.6.5 org.tigris.subversion.subclipse.feature.group
Subversion JavaHL Native Library Adapter (Required) 1.6.6 org.tigris.subversion.clientadapter.javahl.feature.feature.group
SVNKit Library 1.3.1.6109 org.tmatesoft.svnkit.feature.group
How can I make SVN to work?
Where does eclipse store its files, because when I changed the eclipse directory with a new one all my stuff was there (the ones that I installed with no success: SVN, Subversive, Subclipse, SVNKit, ...)
Subversive is my favorite SVN implementation in Eclipse because it works better than the others and it integrates neatly into the UI.
I suggest you follow these steps:
Download the most recent version of Eclipse (currently Galileo) and extract it to your desired installation location
Prior to running Eclipse, make sure you delete (or rename/relocate) your default workspace (under Windows this is workspace in your user directory)
Install the Subversive SVN Team Provider (as instructed by the Eclipse incubation website) using Eclipse's software installer:
Choose Help, then Install New Software...
Create a new download location and specify the following download URL: http://download.eclipse.org/releases/galileo
Locate Collaboration, expand it, then check Subversive SVN Team Provider (Incubation)
Proceed through the installation and accept the TOS
Restart Eclipse and Subversive should prompt you to select a SVN Connector. Reading the symptoms you describe, it sounds like you don't have a connector installed, or it isn't communicating with your team provider. The Polarion website has a guide for choosing the connector best suited for you.
If you aren't prompted to install a connector, you can always do so from the preferences screen:
If the above doesn't work for you, it seems that your workspace isn't cleaned out. Locate your default workspace and try getting things working without any projects before you continue.
You could then also try deleting the .eclipse directory in your user directory. And starting over from step 3.
The problem I had was that svn icons where not showing in the package explorer.
The solution for me was to delete the .metadata folder in the workspace folder (which will reset all your workspace including preferences and repository configurations)
After that all the icons appeared.
I had same issue when SVN connector was not able to connect SVN repository in Eclipse.
Then, I do the following step's :-
Right click on Project under Eclipse.
Go to Team -> share Project.
It's working :)
I found a problem related to installing plugins here. I also could not get the SVN stuff to show up in the preferences because of some bug with the software updater updating the Mylin plugins. You'll likely have to get your Eclipse installation straightened out first and you can do this by just using a new workspace. You don't have to blow away the .metadata folder if you point Eclipse temporarily at a new workspace folder. When the Eclipse installation is clean, you can start installing plugins again, but make sure to uncheck the box labeled Contact all update sites during install to find required software
Eclipse uses local SVN libraries that are part of an installed plugin for SVN support, be it SVNkit or JavaHL. Netbeans uses SVN libraries that are installed independently.
I have had this happen before with Eclipse and the various SVN plugins that it supports. The SVN plugin, for some reason, sometimes looses the SVN connection. Your best bet is to simply delete the project and re-check it out of svn. If you have changes that need to be committed you can use the command line.
Another problem you may have is that your plugin and your repository are out of sync in terms of version numbers. I have had problems before using a plugin designed for svn 1.6.x and a repository that was still at svn 1.4 or 1.5.
Just delete all projects from eclipse and Re-Import the all projects again.
It is working for me.
Just try it
If you want to completely start over with eclipse, you need to delete your workspace as well (the path you see when you first start eclipse). Just re-installing the eclipse files and pointing to the same default workspace will not change anything for you.
Your best bet is to remove eclipse and your workspace and start over because you probably inadvertently broke some other parts of the plug in while you were trying to fix your initial problem.
Even if you install everything as it is said, Subversive and SVN Connector (svnkit 1.x.x), in the project you may not see svn working. In my case I had to remove the project from workspace and import it again. Then it appears. (Refresh, clean did not worked).