 |
|
 |
 |
|
 |
 |
| Author |
Message |
|
|
Post subject: maven dependency problem
Posted: May 21, 2010 - 07:17 PM
|
|
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. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: maven dependency problem
Posted: May 24, 2010 - 12:32 PM
|
|
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. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 24, 2010 - 01:53 PM
|
|
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 |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 27, 2010 - 03:42 AM
|
|
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
|
| |
|
|
|
 |
|
|
| |
|
|
 |
|
 |
|
|
|
 |