facebook

maven4myeclipse Configuration

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #314344 Reply

    Ritesh Agrawal
    Participant

    After upgrading to 9M2 version I started getting problem with my maven builds. I can’t run the builds by right clicking on pom. The exception is

    Source locator does not exist: org.maven.ide.eclipse.launching.MavenSourceLocator

    The pop up box says ‘Launching Executing clean in ‘—–‘ has encountered a problem followed by the above exception. Please help

    — Already tried to create a new workspace and the problem persist.
    –I am able to do my builds successfully from command prompts.

    #314351 Reply

    Brian Fernandes
    Moderator

    Ritesh,

    1) Could you please paste your .classpath, .project and pom.xml files here please? (or mail them to support@genuitec.com ATTN Brian with a link to this thread)
    2) Could you also include the entire stack trace of the error when you are unable to launch? You can find this in the Error Log.

    Thanks.

    #314353 Reply

    Ritesh Agrawal
    Participant

    .project
    <?xml version=”1.0″ encoding=”UTF-8″?>
    <projectDescription>
    <name>core</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
    <buildCommand>
    <name>org.eclipse.jdt.core.javabuilder</name>
    <arguments>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>org.maven.ide.eclipse.maven2Builder</name>
    <arguments>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder</name>
    <arguments>
    </arguments>
    </buildCommand>
    </buildSpec>
    <natures>
    <nature>com.genuitec.eclipse.ast.deploy.core.deploymentnature</nature>
    <nature>org.eclipse.jdt.core.javanature</nature>
    <nature>org.maven.ide.eclipse.maven2Nature</nature>
    </natures>
    </projectDescription>

    .classpath
    <?xml version=”1.0″ encoding=”UTF-8″?>
    <classpath>
    <classpathentry kind=”src” output=”target/classes” path=”src/main/java”/>
    <classpathentry kind=”src” path=”src/main/resources”/>
    <classpathentry kind=”con” path=”org.eclipse.jdt.launching.JRE_CONTAINER”/>
    <classpathentry kind=”con” path=”org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER”/>
    <classpathentry kind=”output” path=”target/classes”/>
    </classpath>

    Threre is nothing special in pom file. All my pom files are failing. The above exact configuration use to work fine with my previous version which was I think 9M1. I also tried reinstalling the whole thing but got same exact problem.

    Here is the log
    !ENTRY org.eclipse.debug.core 4 5013 2011-02-09 05:13:22.833
    !MESSAGE Source locator does not exist: org.maven.ide.eclipse.launching.MavenSourceLocator

    #314411 Reply

    Brian Fernandes
    Moderator

    Ritesh,

    Thanks for sending us the sample project; we were, however, unable to replicate the problem even with this project.

    1) If you go to Window > Preferences > MyEclipse > Maven4MyEclipse > Maven, is the Maven JDK combo correctly set to point to a JDK?

    2) On your sample project, are you executing any specific goal? Can you suggest one specific goal so we can both test with the same?

    3) Once you execute your build – can you go to Run > Run Configurations and select the configuration you are trying to run from the left hand side. In the tabs, select the “Common” tab and select “Shared file” – specify a convenient path and attempt to Run. This will create a lauch configuration file in the path specified, can you send us that file too?

    #314418 Reply

    Ritesh Agrawal
    Participant

    JDK is pointing to my workspace jdk correctly.
    I am running clean as its simplest. All of them fail though with same error message.
    Attaching the profile as requested. I am running same project which I send you yesterday.

    <?xml version=”1.0″ encoding=”UTF-8″ standalone=”no”?>
    <launchConfiguration type=”org.maven.ide.eclipse.Maven2LaunchConfigurationType”>
    <booleanAttribute key=”M2_DEBUG_OUTPUT” value=”false”/>
    <stringAttribute key=”M2_GOALS” value=””/>
    <booleanAttribute key=”M2_NON_RECURSIVE” value=”false”/>
    <booleanAttribute key=”M2_OFFLINE” value=”false”/>
    <stringAttribute key=”M2_PROFILES” value=””/>
    <listAttribute key=”M2_PROPERTIES”/>
    <stringAttribute key=”M2_RUNTIME” value=”EMBEDDED”/>
    <booleanAttribute key=”M2_SKIP_TESTS” value=”false”/>
    <booleanAttribute key=”M2_UPDATE_SNAPSHOTS” value=”false”/>
    <booleanAttribute key=”M2_WORKSPACE_RESOLUTION” value=”false”/>
    <stringAttribute key=”org.eclipse.jdt.launching.WORKING_DIRECTORY” value=”${workspace_loc:/zz}”/>
    </launchConfiguration>

    #314632 Reply

    Ritesh Agrawal
    Participant

    I am able to get the problem solved by installing the myeclipse directly on my x64 machine from your website. I was not able to get it to work by installing the 9M2 via pulse x64 so this might be a bug or configuration issue. Please verify.

    I am up and running so I am going to stand here.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: maven4myeclipse Configuration

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