Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
stacey11
Post subject: maven dependency problem  PostPosted: May 21, 2010 - 07:17 PM
Veteran Member
Veteran Member


Joined: Apr 30, 2004
Posts: 70

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.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-chakri
Post subject: RE: maven dependency problem  PostPosted: May 24, 2010 - 12:32 PM
Registered Member
Registered Member


Joined: Apr 05, 2010
Posts: 68

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.
 
 View user's profile Send private message  
Reply with quote Back to top
stacey11
Post subject:   PostPosted: May 24, 2010 - 01:53 PM
Veteran Member
Veteran Member


Joined: Apr 30, 2004
Posts: 70

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

Code:
  <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:
Code:
  <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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Support-Brian
Post subject:   PostPosted: May 27, 2010 - 03:42 AM
Moderator
Moderator


Joined: Aug 21, 2004
Posts: 2281

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?

_________________
Brian
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits