Eclipse Maven is blocked - java

I tried to use Maven on my company's computer. I use the same issue as in stackoverflow another question. I suppose it is the proxy issue. Does anyone know which link I need to ask security to put into white list to use Maven in eclipse?
Thanks
Peter

You need to set the proxy server in eclipse by going to preferences and setting the proxy server your company uses.
If you don't know your proxy server and are using windows run cmd as administrator and execute this command.
netsh winhttp show proxy
If you are using another OS Google is your friend, but you need to set the proxy server in network connections of preferences dialog located in windows -> preferences of eclipse and search for proxy.
Another option is to set proxy in your home directory /.m2.settings.xml here is an exmaple
https://www.mkyong.com/maven/how-to-enable-proxy-setting-in-maven/

Related

Can anyone help me with proxy server set up in setting Dev Eco Environment?

I am newly setting up Dev Eco on my Mac. Can anyone help me with the proxy server set up in setting Dev Eco Environment? Is it an important step for setting up my environment or can I skip it?
if you are behind any firewall/proxy-server/corporate network, you will have to configure proxy settings in DevEco Studio. Otherwise no need to configure proxy settings. Try Accessing remote device from Tools -> DeviceManager or try Gradle sync some third-party dependencies. You should be able to do.
You can do this by following the process below.
For details, you could refer to this document to set up the DevEco Studio development environment.

Why does IntelliJ want to accept incoming network connections?

➠ What feature in IntelliJ is acting as a server to accept incoming connections?
When first running IntelliJ 2017.1.1 I get a dialog box asking permission for incoming network connections.
Do you want the application “java” to accept incoming network connections?
Clicking Deny may limit the application’s behavior. This setting can be changed in the Firewall pane of Security & Privacy preferences.
[Deny] [Allow]
Example of dialog appearing on a fresh install of IntelliJ 2017.2 Ultimate edition, in the New Project wizard, when clicking on the Maven tab.
Why is IntelliJ causing this prompt? I got no such event when running NetBeans.
What exactly is the effect of denying or accepting? I am concerned about letting a Java process accept outside network connections as doing so is a serious security risk.
Possibly related to:
Question: How to bind IntelliJ IDEA random open ports to localhost only?
Issue IDEA-175889: IDE opens random ports on wildcard interface in some configurations
This Question is not about the source of the message. The source is the Apple macOS app-level firewall. You can allow or block an app from listening for incoming network connections. Allowing this is a security risk.
IntelliJ is asking to be added to the list of apps allowed to listen for incoming messages. My Question is, "Why does IntelliJ need to accept incoming network connections?".
Problably it is linked to the below.
If you click on http://localhost:63342/ you should be able to access the built-in server. Which by default should listen only on the local interface.
Open port in range 6942-6992 seems to be linked to SocketLock.java
myServer = BuiltInServer.startNioOrOio(workerCount, 6942, 50, false, handler);
note: Ports 6953, 6969, 6970 are excluded from that range. See BuiltInServer.java
private static final int[] FORBIDDEN_PORTS = {6953, 6969, 6970};
Another open port is linked to a process org.jetbrains.idea.maven.server.RemoteMavenServer
jps -l | grep jetbrains
24628 org.jetbrains.idea.maven.server.RemoteMavenServer
You could find out open port with netstat
on Linux: `netstat -ltupne`
on OSX (something like): nettop -np java
and the related java processes with jps (as show above)
as doing so is a serious security risk.
It isn't, unless you don't trust the specific product. And if you don't trust a product, why are you using it at all?
IntelliJ needs to check its license once in a while, connect to update servers, maven repositories, plugin repositories, external application servers you may want to connect to, ditto with database servers.
Netbeans needs the same, you no doubt just forgot you gave it permission at some point, or it uses an external JVM that you gave permission at some point.

How to set a Java remote developer environment in Eclipse

My friend and me want to explore an Open Source ERP System. We have installed it on a server and we access it by an IP address over Firefox. We're also accessing it over the tools putty (for doing changes like restarting tomcat) , Filezilla (for import export of data), pgAdmin (for accessing the psql db). Now we want to establish a java Eclipse developer environment on both our windows pcs working simultaneously. I need to access, change and commit to the source placed on the server. Every time I commit, I need to deploy the source code with putty.
1) Is there a better way of this way of remote programming? If yes, could you tell me a better way?
2) If not, how can I set this kind of environment in Eclipse (Create an existing project?)
You need configure Jenkins Which will deploy the latest code into remote server
You can use Ansible to automate your deploy

Not able to record in Jmeter after OS reinstallation

I am using Jmeter 2.13 version and with that I used to record many scripts earlier successfully without any issue . Now, my OS has been reinstalled and I am holding Windows 8.1 , 64 bit version.After re installation, I am not able to record HTTPS web applications even though my proxy configuration is correct. After I setup everything in Jmeter, and click on start from work bench and I navigate to the browser try to access the application, it shows "Server not found" message.
However, the scripts which I saved earlier are working fine without any issues. only the new recording is not working.
Help me with the possible solutions.
"Server not found" indicates that browser is unable to access Internet (or intranet).
Most likely you're sitting behind the corporate proxy server and in previous JMeter installation you had these proxy server details specified in system.properties file like:
http.proxyHost=10.20.30.40
http.proxyPort=3128
https.proxyHost=10.20.30.40
https.proxyPort=3128
Double check with your network administrator if this is the case, if yes - take steps from Using JMeter behind a proxy User Manual chapter.
You can also try out JMeter Chrome Extension as an alternative solution - in that case you don't have to worry about proxies and SSL certificates substitution.

How do I configure Eclipse web browser/network settings?

I use an "anonproxy" to bypass network restrictions in some public networks, and somehow eclipse managed to configure itself to use it. Even after I disabled the proxy settings in firefox, eclipse still uses it. When I try to stop the proxy service, eclipse simply pops a message saying the proxy refused connections. How do I remove any proxy settings from eclipse??
If you are speaking about the proxy Eclipse uses to access the web, it's in:
Window -> Preferences -> General -> Network Connections

Categories

Resources