Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] Authentication when importing project

This seems to be m2e-wtp specific, which I don't know much about, sorry.
 
--
Regards,
Igor
 
 
On Mon, May 11, 2015, at 09:31 AM, Philippe Riand wrote:
I also have another question: after importing the projects, it seems that some of the dependencies are not properly handled by Eclipse. This is is very strange as it concerns a WAR and a JAR dependency. At runtime, the WAR cannot load a class in the jar dependency, while the Deployment Assembly since up-to-date. If I execute a Maven Update on the projects, either manually or programmatically after the import, then it works.
It is hard for me to share this code, but it you’re willing to look at it, I can definitively share my screen.
 
Phil.
 
On May 9, 2015, at 9:05 PM, Igor Fedorenko <igor@xxxxxxxxxxxxxx> wrote:
 
No, you do not need to do anything special to access password protected repositories. m2e is expected to use credentials from settings.xml and either download artifacts or fail downloads, never show authentication popup.
 
There was a bug 440273 [1] in m2e 1.5.x, which explains unexpected auth popup, but I can't tell why m2e does not use provided credentials.
 
I suggest you try latest m2e 1.6 milestone build, which at least has the fix for bug 440273. If there is still a problem with authentication, I will need to understand better your network setup: protocol type, whether http proxy is involved, kind of authentication used, etc.
 
 
--
Regards,
Igor
 
 
On Sat, May 9, 2015, at 02:37 PM, Philippe Riand wrote:
I followed Igor advises for importing projects into the workspace (http://dev.eclipse.org/mhonarc/lists/m2e-users/msg05077.html). The import by itself works, thanks Igor!
 
Now, these projects rely on private maven repo that is password protected. The url/user/password are defined in .m2/settings.xml within a profile that is made active.
When I create/import the projects within an environment that already have all the dependencies in its local maven repo, it works like a charm. But if it doesn’t have these dependencies local, it prompts me for a user/pwd for every single dependency it tries to download, from the same repo. On the other hand, if I create the projects, do not import them using the aforementioned api, but then import them using the import dialog, then it works (the dependencies are downloaded and it doesn’t prompt me)
 
Question: is there a credential manager to setup before calling the import API? It sees the active profile because it tries to reach the server, but it doesn’t use the credentials from settings.xml.
_______________________________________________
m2e-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
 
_______________________________________________
m2e-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-dev
 
_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-dev
 

Back to the top