- This topic has 13 replies, 4 voices, and was last updated 12 years, 10 months ago by support-tony.
-
AuthorPosts
-
tim5901ParticipantI have created a Maven project in MyEclipse then shared it into a Subversion repository.
I deleted the project from my workspace and tried to bring it back in from Subversion.
The project comes into the workspace fine but it is not recognized as a Maven project.
How do I get MyEclipse to recognize it as a Maven project?I am using MyEclipse Bling 10.0
support-swapnaModeratortim5901,
Sorry that you are seeing this issue with MyEclipse.
1) Can you clarify if you have checked out the project using the import wizard: Maven4MyEclipse->Check out Maven Projects from SCM.
2) Take a look at this FAQ to install the SCM connector :
https://www.genuitec.com/forums/topic/maven-how-to-install-maven-scm-connectors/Let us know how this works for you.
tim5901ParticipantI tried following the directions on the link provided in the last email. I copied the Subclipse repository link into site URL and then tried to expand the contents of the site. I received an error “Unable to read repository at https://repository.sonatype.org/content/sites/forge-sites/m2eclipse-subclipse/0.13.0/N/0.13.0.201107071330”
support-swapnaModeratortim5901 ,
Sorry that you are seeing this issue.
Can you please clarify if you have set up the proxy ?
Please recheck the same.
tim5901ParticipantI am not certain what you mean by “proxy”. There is no mention of a “proxy” on the page you refered me to (https://www.genuitec.com/forums/topic/maven-how-to-install-maven-scm-connectors/). I have not been able to successfully add the site in Browse Software.
I followed the directions given in the second paragraph of that page.
1. I went into MyEclipse Configuration Center.
2. I clicked on the “Software Tab”
3. I clicked the linke “Add Site”
4. In the resulting dialog I entered a name to identify the site and the URL for Subclipse update site.
5. I clicked “OK”
6. I waited for the site to appear in the “Personal Sites” section of “Browse Software”
7. I fully expanded the site.At this point I received the error “Unable to read repository at https://repository.sonatype.org/content/sites/forge-sites/m2eclipse-subclipse/0.13.0/N/0.13.0.201107071330/content.xml”
support-swapnaModeratortim5901 ,
1) Are you behind a proxy/firewall ? If you are not sure about it, you can check with your systems department on the same.
2) If you are behind the proxy, you will need to set the same at window > preferences > general > network settings. Take a look at this link which explains how to configure proxy in Eclipse : http://www.mkyong.com/web-development/how-to-configure-proxy-settings-in-eclipse/
3) Clear the contents of the .log file which is located at <workspace dir>/.metadata/.log. Replicate the issue and paste the contents of the .log file here for us to investigate further.
tim5901ParticipantI have attached the contents of the log file.
Looks to me like it can’t find a file called p2.index. I tried the same link in my browser and could not find the file either.
Attachments:
You must be logged in to view attached files.
support-tonyKeymasterTim,
I’m not sure that the files normally searched for by eclipse, in an update site, can be browsed in a browser. However, I can confirm that the site can be reached and can be added as an update site in the MyEclipse Configuration Center. Maybe there was a problem at the update site when you tried it. Could you remove the update site (as mentioned in the FAQ) and then re-add it?
Note that the second repository URL that you posted as part of the error message you got, is not the correct URL (it had an extra “/content.xml” appended), though the first similar message that you posted did have the correct URL.
Please let us know how this works.
Udo HeldParticipantJust wondering. Did you try to use http instead of https for your site url?
I once had problems with using a https url and http just worked fine.
Kind regards
clavis_uhe
support-tonyKeymasterThanks for that, clavis.
I believe both http and https will work on this site, though https is the one given when using the m2eclipse plugin to provide the update site links on eclipse, and the one I used to check that it was working.
So, Tim, you might like to try http, instead of https, though I can’t think why one would work for you but not the other.
tim5901ParticipantThanks Clavis, changing to http worked. So now I can see the Maven SCM handler for Subclipse.
So back to following the directions in the first link Tony gave me. I double-click on the Maven SCM handler for Subclispe but now I get a message box that says “Maven SCM handler for Subclipse is already part of personal software for MyEclipse Bling Edition 10”.
I take this to mean that it is already installed. But I still do not have an option that will let me check out from Subversion a Maven project that was created in MyEclipse.
Help?
tim5901ParticipantSorry, it was actually Swapna that gave me the first link.
tim5901ParticipantWow, that took a while.
Even though it gave me the message window suggesting that it was already installed the SCM handler finally appeared in the Software Updates Available window. So I applied it. And after a real long time (it took forever) the update was applied. After restarting MyEclipse I tried to checkout a Maven project from SVN and there it was “Check out as Maven Project…”
So in summarization.
1. Follow the instructions at https://www.genuitec.com/forums/topic/maven-how-to-install-maven-scm-connectors/
but use HTTP not HTTPS.
2. Ignore the message box about it being part of MyEclipse Bling Edtion 10.
3. Wait a long time until it appears in the Software Updates Available window.
4. Again wait a long time until it gets installed (took a half-hour for me).
5. Restart MyEclipse and give it a try.Thanks for all the help.
support-tonyKeymastertim,
Sorry for the problems you’ve seen. I’m glad you sorted it by using http, instead of https, and have added a note to the FAQ as a result. Thanks for posting the summary.
The updates can be slow sometimes and one does need to be patient!
-
AuthorPosts