- This topic has 3 replies, 3 voices, and was last updated 14 years, 5 months ago by Brian Fernandes.
-
AuthorPosts
-
Michael StaceyParticipantI 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.
support-chakriMemberHi 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.
Michael StaceyParticipantThe 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
Brian FernandesModeratorstacey,
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?
-
AuthorPosts