facebook

Checkout Maven Project from SVN

  1. MyEclipse IDE
  2.  > 
  3. WebSphere Development
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #322412 Reply

    tim5901
    Participant

    I 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

    #322417 Reply

    support-swapna
    Moderator

    tim5901,

    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.

    #322429 Reply

    tim5901
    Participant

    I 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”

    #322453 Reply

    support-swapna
    Moderator

    tim5901 ,

    Sorry that you are seeing this issue.
    Can you please clarify if you have set up the proxy ?
    Please recheck the same.

    #322467 Reply

    tim5901
    Participant

    I 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”

    #322493 Reply

    support-swapna
    Moderator

    tim5901 ,

    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.

    #322505 Reply

    tim5901
    Participant

    I 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.
    #322550 Reply

    support-tony
    Keymaster

    Tim,

    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.

    #322562 Reply

    Udo Held
    Participant

    Just 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

    #322587 Reply

    support-tony
    Keymaster

    Thanks 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.

    #322617 Reply

    tim5901
    Participant

    Thanks 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?

    #322618 Reply

    tim5901
    Participant

    Sorry, it was actually Swapna that gave me the first link.

    #322619 Reply

    tim5901
    Participant

    Wow, 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.

    #322646 Reply

    support-tony
    Keymaster

    tim,

    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!

Viewing 14 posts - 1 through 14 (of 14 total)
Reply To: Checkout Maven Project from SVN

You must be logged in to post in the forum log in