Trying to configure m2eclipse behind proxy - eclipse

I am trying to run m2eclipse on a workstation behind a proxy. I have configured Eclipse and Meven's settings.xml to recognize the proxy.
Yet I still get the following message every time I try and update something:
Unable to update index for central|http://repo1.maven.org/maven2

Configure your eclipse network settings to support the proxy and try.

Related

Configure Maven project to work through proxy

I've managed to configure the proxy settings in Eclipse and Maven, but when I run my application, the application itself can't get through the proxy. Is there a way I can configure the application proxy details as well?
Thanks.

Eclipse and proxy

I run my Eclipse on a Linux computer behind a company proxy. This proxy does not need authentication, it simply needs to be set. But in Eclipse some functionalities can't connect to the Internet. When I check the same URL with e.f. curl and the same proxy settings everything works fine.
I defined the proxy:
in /etc/environment, both http_proxy and https_proxy
in Eclipse in Window / Preferences / Network connection / Manual. For http and https, not for socks
in settings.xml, I can see from the preferences that this file gets applied
Eclipse can connect to the Internet:
in the Marketplace
for update checks and Installation
Eclipse is unable to reach the Internet:
in the "Web Browser" view
in m2e
Any ideas where I missed a special setting ? I do all of this in STS 3.9, which has Eclipse 4.7
I am not sure about the browser view, but m2e/Maven uses proxy settings that are defined in the settings.xml file for Maven.
In Eclipse/STS, you can specify which settings.xml file m2e should use in the preferences for the Maven support.

Run JHipster SpringApplication via eclipse

I'm trying to run the JHipster application via my Eclipse Juno, using jdk 1.7.
The app seems to be loading properly (no console errors), but when i'm trying to reach the server with the client side (or via Postman, by sending a request to the REST servlets in port 8080), it's not responding.
However, when i'm running "mvn spring-boot:run" in the command shell, the server is loaded successfully and is responding to the exact same requests. Also, I managed to run the same command via eclipse with some maven configuration but it seems to be running only the target files (jars) and not the source code. I still haven't been able to run the source code of this app using eclipse in order to properly debug it.
Any suggestions?
Thanks!
So the answer is quite trivial, but since I spent several hours to reach it, it might save some time for others-
Download & install STS IDE.
Import the project as existing Maven project.
Run/Debug the project.
I tried to run it via Eclipse the whole time (wasn't familiar with STS to be honest) and this probably needs some extra configuration (another comment with explanations on eclipse configuration will be much appreciated). Once you work with STS, it's easy.
You should not need STS, just Eclipse with the J2EE stuff.
I've imported the sample jhipster in Eclipse (without STS) as a Maven project and everything was OK, after installing the maven dependencies.
To run the project, run as an application and search for the Application (com.mycompany.myapp.Application)
This app works for me: https://github.com/jhipster/jhipster-sample-app. It is stuck on Boot RC5 which probably means it's a bit old. Maybe Julien can comment on that (or update it)?

Eclipse plugin to SonarQube 4.0 not finding provisioned project or creating new project

I am running the SonarQube plugin with m2e integration inside Eclipse Keplar. I am trying to run with a SonarQube 4.0 standalone server, running from the command-line on a win7 64 box.
When installing and reloading Eclipse the sonar plugin detected m2e and turned on the Sonar "nature" for me, including a project tag. The install also configured the SonarQube Eclipse properties to point to the localhost:9000 server. I can log in to the running server with chrome, and the Eclipse properties has a "test connection" option which passes. I am using empty user and password.
Problem 1: When I try and run SonarQube->Analyze on my project it completes and populates my project with issues. Great, except that this information is not pushed to the server and the start of the console log states:
Retrieve remote issues of project XXXXX...
Project not found on remote SonarQube server [com.company.xxxx:XXXX]
Start SonarQube analysis on XXXX...
INFO: SonarQube Server 4.0
I have tried to provision a project for com.company.xxxx:XXXX, and I have turned the security for provisioning off to act like SonarQube 3, but the project analysis does not get added to the server.
So the plugin can clearly contact the server. I have tried to add the admin credentials to the plugin to get past any permission issues. I have overridden the default maven-generated tag name to something else, and also added provisioning for the new name. I keep getting "Project not found" messages.
Am I missing something? The tutorial on the SonarQube tutorial makes it seem like this is correctly configured, but web searches are not coming up with similar experiences.
This appears to be a result of the Maven integration. Updates are only pushed to the server when running directly against the Maven repository. When running locally the analysis data is compared to the server data to find deltas, but the server data itself is not updated. This actually makes a lot of sense in a team environment, but was a surprise when the SonarQube tutorial calls out Maven integration but not this caveat.
After performing an analysis from the SonarQube server directly against the Maven repo (without Eclipse in the picture at all) the project was created and populated with the data. This data was then available in Eclipse and local analysis would delta against that data (although it would not update it, which also makes sense).

proxy configuration in eclipse

I have problem with proxy in Eclipse 3.7.2 in Ubuntu 12.04. Eclipse is installed from Ubuntu repository.
I have configured HTTP, and HTTPS proxy in Network Preferences and keep SOCKS clear as many people recommends. But eclipse anyway says HTTP Proxy Authentication Required.
Best Regards
Set system-wide proxy settings in Ubuntu network configuration dialog.
In eclipse.ini add the following line: -Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient
In Eclipse in Network Connections set Active Provider to "native".
I doesn't work because I use OpenJDK. If use oracle's java with eclipse proxy configuration in standard dialog works fine.