Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
laurilehtinen
Post subject: Adding a dependency from a private repository  PostPosted: Sep 26, 2008 - 10:02 PM



Joined: Sep 19, 2008
Posts: 4

I have recently installed 7.0M2 and I'm evaluating the maven support in it.

We have a private repository where we keep all the jars our projects depend on. The url and username/password for that are configured in maven's settings.xml. Using maven from the command line, it works just fine.

I have added the maven nature to my existing projects, but when I right click on any of them and navigate to Maven4MyEclipse > Add Dependency, the dialog that pops up does not seem to find any jars from our repository - only stuff I have in my local one.

I have pointed both user and global settings to the only settings.xml I have, where our repository is configured to act as the "central" repository.

Is this by design? If not, any tips on how to get this working?

Thanks
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject: RE: Adding a dependency from a private repository  PostPosted: Sep 30, 2008 - 04:46 PM
Moderator
Moderator


Joined: Jan 06, 2004
Posts: 23307

This should work as expected, can you walk me through what you did?

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
laurilehtinen
Post subject: Re: RE: Adding a dependency from a private repository  PostPosted: Sep 30, 2008 - 08:47 PM



Joined: Sep 19, 2008
Posts: 4

support-rkalla wrote:
This should work as expected, can you walk me through what you did?


I tried it again to provide you the exact steps, and now it is working fine. As far as I know, I haven't changed anything. Can this be due to some delay in the indexing of the repository? Does it search the repository on the fly as one types the name of the artifact in the dialog textfield? If not, how often is the index updated, and can you force an update of the repository index?

Thanks
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject: RE: Re: RE: Adding a dependency from a private repository  PostPosted: Oct 07, 2008 - 05:26 PM
Moderator
Moderator


Joined: Jan 06, 2004
Posts: 23307

Ahh yea it's very possible the original index was downloading, and yes it does refresh the index each time the IDE starts up if you haven't unchecked the default behavior to do so.

Under Window > Prefs > MyEclipse > Maven4MyEclipse, the 5th checkbox down you can set this behavior.

_________________
Riyad
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