facebook

Converting a existing Java Project to a Maven Java Project?

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #309823 Reply

    rbreitling
    Member

    Is there a way to do this?

    #310088 Reply

    Ram
    Member

    rbreitling,

    Sorry for the delayed response.Please follow below steps to migrate from Java Project to Maven Java Project.
    1) Create new folder “src/main/java” using File>New>Folder option
    2) Enable Dependency Management from the context menu of project>M2 MyEclipse Maven
    3) In the 2nd wizard,can add required Dependencies to your project if require.
    4) Move already existing packages under “src” folder to “src/main/java” folder
    5) Run “Maven Install” from the context menu of project, to install the created project in Maven local repository.

    #311953 Reply

    1) There is no context menu project>M2 MyEclipseMaven
    2) I do not want to put my source under src/main/java…. I have been able to modify new projects to use just the plain source folder.

    There should be a single step method to turn a regular project into a Maven Project. One can do it with the Maven For Eclipse plugin, but then there is an error in the project that does not let you check stuff back into CVS (if you have both Maven4MyEclipse and Maven for Eclipse installed.

    Maybe the wonderful folks at MyEclipse can work on this task for the next release.

    Stephen McConnell

    #329961 Reply

    newage144
    Member

    I cannot find the “context menu project>M2 MyEclipseMaven” either. Do I have to install a plugin before that or enable features? Can anyone reply to this post?

    #329968 Reply

    I don’t see too much interest in answering this from ANYONE.

    #330001 Reply

    support-swapna
    Moderator

    mcconnell_stephen,

    Sorry for delayed response.

    From Project explorer window, right click on project to convert > Configure > Convert to Maven Project.
    To be able to see this option, “WTP deprecated” must be enabled in Properties->General->Capabilities->Advanced->MyEclipse Standard Tools.

    Let us know if you see any issues.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Converting a existing Java Project to a Maven Java Project?

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