facebook

maven dependency problem

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

    Michael Stacey
    Participant

    I have a maven project that builds fine from the command line and in glassfish, but when I load it into MyEclipse, I get hundreds of errors “<obj> cannot be resolved to a type”. MyE can’t seem to find the dependencies.

    I’ve tried updating dependencies from the MyEclipse menu entry, running mvn eclipse:eclipse from the command line, etc.

    #308581 Reply

    Hi stacey11,

    Can you give some more information to investigate your issue?
    1) What version of ME are you using? And how did you install it? Is it using off-line installer or using Pulse?
    2) Is the system where ME is installed have internet connection? In order to get Maven repository, the system needs internet to download.
    3) Are the check boxes in Maven preference page checked adjacent to “Download Repository index updates on startup”, “Download Artifacts Sources” and “Download Artifact Javadoc”. If not, can you check them and try creating a web project with Maven support? This may take few minutes to download Maven repository which depends on the Internet band width.
    4) Can you send a screen shot of your Maven preference page. Go to “Windows–>Preference–>MyEclipse–>Maven4MyEclipse–>Maven” and select Maven.
    5) Can you send me the screen shot of the error message?

    Please try these and let me know whether your issue is resolved.

    Thanks,
    Chakri Vedula.

    #308584 Reply

    Michael Stacey
    Participant

    The problem is that the ME maven setup does not see a dependency. In the main pom:

      <modules>
          <module>lco-model</module>
          <module>lco-web</module>
      </modules>
       <dependencyManagement>
       ...
          <dependency>
             <groupId>com.lexi</groupId>
             <artifactId>lexidao</artifactId>
             <version>5.4</version>
        </dependency>
       ...
    </dependencyManagement>

    In the lco-web module pom:

      <dependcncies>
        <dependency>
          <groupId>com.lexi</groupId>
          <artifactId>lexidao</artifactId>
        </dependency>
        ...
       </dependencies>

    As to your other questions:

    Installed using PULSE: 8.5 version 2.0.0.000000002

    #308659 Reply

    Brian Fernandes
    Moderator

    stacey,

    What type of project is this – how did you create it? Just as a test, can you create a MyEclipse Web Project, (enable Maven support) and add in your dependencies there? Do you see them being resolved or do you hit similar errors?

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: maven dependency problem

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