- This topic has 10 replies, 3 voices, and was last updated 14 years, 5 months ago by Ram.
-
AuthorPosts
-
afieldenMemberI’m using the 30 trial version of myEclipse.
I have a problem when trying to rebuild the indexes for my maven repositories. I see the following information messages in the log, and the connection to the maven repository times outThe HTTP proxy is enabled in the preferences but disabled in the system settings System property http.proxyPort has been set to 8080 by an external source. This value will be overwritten using the values from the preferences System property http.proxyHost has been set to xx.xx.xx.xx by an external source. This value will be overwritten using the values from the preferences
What I have tried so far:-
1. Setting the proxy host/port in the Eclipse network preferences
2. Setting the proxy host/port using -DproxyHost=hhhh -DproxyPort=xx.xx.xx.xx
3. Setting the proxy host/port in the Windows 7 Internet connection settingsI don’t understand why the HTTP proxy is disabled in the “system settings”. How do I enable it?
afieldenMemberGot a bit further with this problem, but the repository index still fails to update. I have this exception
java.io.IOException: Authorization exception retrieving nexus-maven-repository-index.properties at org.sonatype.nexus.index.updater.DefaultIndexUpdater$WagonFetcher.retrieve(DefaultIndexUpdater.java:681) at org.sonatype.nexus.index.updater.AbstractResourceFetcher.retrieve(AbstractResourceFetcher.java:22) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.downloadIndexProperties(DefaultIndexUpdater.java:493) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.access$100(DefaultIndexUpdater.java:74) at org.sonatype.nexus.index.updater.DefaultIndexUpdater$IndexAdaptor.setProperties(DefaultIndexUpdater.java:780) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:954) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:138) at org.maven.ide.eclipse.internal.index.NexusIndexManager.updateRemoteIndex(NexusIndexManager.java:1060) at org.maven.ide.eclipse.internal.index.NexusIndexManager.updateIndex(NexusIndexManager.java:1013) at org.maven.ide.eclipse.internal.index.NexusIndexManager$1.run(NexusIndexManager.java:624) at org.maven.ide.eclipse.internal.index.IndexUpdaterJob.run(IndexUpdaterJob.java:71) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Is it possibly related to this m2Eclipse problem https://issues.sonatype.org/browse/MNGECLIPSE-2149
afieldenMemberI’ve tried the command line Maven tools to download and install artifacts from the remote repository. This works, so I know my proxy details in settings.xml are correct.
I get the above exception and stack trace when I use the m2Eclipse plugin.
Has anyone used the m2Eclipse plugin (or Maven4MyEclipse) with an internet proxy recently?
Would appreciate any help or advice!
afieldenMemberLooks like this issue https://issues.sonatype.org/browse/MNGECLIPSE-1520
It may not be fixed in the latest version of m2Eclipse (0.10.0), and is also causing a problem for maven4Eclipse
RamMemberI have escalated the issue to our Dev team member, they’ll get back to you on this.
Thanks,
Support-Ram.
Tom ParryParticipantI am also getting similar error – unable to update index for central | http://repo1.maven.org.maven2
I cannot get to the org.sonatype.nexus.index.updater… behind the proxy.
java.io.IOException: Transfer for nexus-maven-repository-index.properties failed; Transfer error: Connection timed out: no further information at org.sonatype.nexus.index.updater.DefaultIndexUpdater$WagonFetcher.retrieve(DefaultIndexUpdater.java:693) at org.sonatype.nexus.index.updater.AbstractResourceFetcher.retrieve(AbstractResourceFetcher.java:22) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.downloadIndexProperties(DefaultIndexUpdater.java:493) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.access$100(DefaultIndexUpdater.java:74) at org.sonatype.nexus.index.updater.DefaultIndexUpdater$IndexAdaptor.setProperties(DefaultIndexUpdater.java:780) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:954) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:138) at org.maven.ide.eclipse.internal.index.NexusIndexManager.updateRemoteIndex(NexusIndexManager.java:1060) at org.maven.ide.eclipse.internal.index.NexusIndexManager.updateIndex(NexusIndexManager.java:1013) at org.maven.ide.eclipse.internal.index.NexusIndexManager$1.run(NexusIndexManager.java:624) at org.maven.ide.eclipse.internal.index.IndexUpdaterJob.run(IndexUpdaterJob.java:71) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
afieldenMember@support-ram wrote:
I have escalated the issue to our Dev team member, they’ll get back to you on this.
Thanks,
Support-Ram.Hi Ram,
Thanks for escalating the problem. Any response from dev on this?
afieldenMember@tparry wrote:
I am also getting similar error – unable to update index for central | http://repo1.maven.org.maven2
I cannot get to the org.sonatype.nexus.index.updater… behind the proxy.
java.io.IOException: Transfer for nexus-maven-repository-index.properties failed; Transfer error: Connection timed out: no further information at org.sonatype.nexus.index.updater.DefaultIndexUpdater$WagonFetcher.retrieve(DefaultIndexUpdater.java:693) at org.sonatype.nexus.index.updater.AbstractResourceFetcher.retrieve(AbstractResourceFetcher.java:22) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.downloadIndexProperties(DefaultIndexUpdater.java:493) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.access$100(DefaultIndexUpdater.java:74) at org.sonatype.nexus.index.updater.DefaultIndexUpdater$IndexAdaptor.setProperties(DefaultIndexUpdater.java:780) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:954) at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:138) at org.maven.ide.eclipse.internal.index.NexusIndexManager.updateRemoteIndex(NexusIndexManager.java:1060) at org.maven.ide.eclipse.internal.index.NexusIndexManager.updateIndex(NexusIndexManager.java:1013) at org.maven.ide.eclipse.internal.index.NexusIndexManager$1.run(NexusIndexManager.java:624) at org.maven.ide.eclipse.internal.index.IndexUpdaterJob.run(IndexUpdaterJob.java:71) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
If you’re behind a fiewall you can pretty much forget about using Maven4MyEclipse to download stuff from remote repositories, as it will not use the login credentials for the proxy as specified in your settings.xml. This is a known bug in the m2eclipse plugin, which obviously affects Maven4MyEclipse.
The workaround is to use the maven command line tools outside Eclipse to contact any remote repository and download your required artifacts.
RamMemberCan you please answer few queries for me to get to the root cause?
1. Can you copy and paste your installation details? Open MyEclipse IDE, from menu options click on MyEclipse > Installation Summary > Installation Details.
2.Can you please send the Screenshot of Windows>preferences>General>Network connections
3. Did you setup proxy host/port in the MyEclipse network preferences.
4.Did you install m2eclipse separately? If so, please remove the installation of m2eclipse and install ME because ME will have its own version of m2eclipse, so 2 m2eclipse versions may clash.
After uninstalling m2eclipse, If the problem still persists, please try re-installing ME from Pulse.
To re-install from pulse follow the steps:
a) Run pulse-explorer.exe file from Start Menu–>Programs–>Pulse–>Pulse Explorer or open pulse explorer manually from ~Genuitec > Pulse Explorer > pulse-explorer.exe
b) Login with your credentials or anonymously.
c) From the dropdown select “Galileo”
d) Under my profiles right click on MyEclipse 8.5 and select “Re-Install” option from the context menu.
Let me know whether the problem is resolved or not.If you still continue with the problem then please send the steps to reproduce the problem.
You can send a mail to support@genuitec.com. Please add ATTN: RAM in the subject and refer to this thread.
afieldenMember@support-ram wrote:
Can you please answer few queries for me to get to the root cause?
1. Can you copy and paste your installation details? Open MyEclipse IDE, from menu options click on MyEclipse > Installation Summary > Installation Details.
2.Can you please send the Screenshot of Windows>preferences>General>Network connections
3. Did you setup proxy host/port in the MyEclipse network preferences.
4.Did you install m2eclipse separately? If so, please remove the installation of m2eclipse and install ME because ME will have its own version of m2eclipse, so 2 m2eclipse versions may clash.
After uninstalling m2eclipse, If the problem still persists, please try re-installing ME from Pulse.
To re-install from pulse follow the steps:
a) Run pulse-explorer.exe file from Start Menu–>Programs–>Pulse–>Pulse Explorer or open pulse explorer manually from ~Genuitec > Pulse Explorer > pulse-explorer.exe
b) Login with your credentials or anonymously.
c) From the dropdown select “Galileo”
d) Under my profiles right click on MyEclipse 8.5 and select “Re-Install” option from the context menu.
Let me know whether the problem is resolved or not.If you still continue with the problem then please send the steps to reproduce the problem.
You can send a mail to support@genuitec.com. Please add ATTN: RAM in the subject and refer to this thread.No I’m not using m2Eclipse.
Yes I’ve been through all the proxy setup procedures.Problem should be easy to reproduce – just use MyEclipse on a network which is behind a firewall and try to download artifacts from the central maven repository.
RamMemberafielden,
Thank you for bringing this to our notice. I am able to reproduce the same at my end. I have filed a PR for the dev team.
-
AuthorPosts