Installation for maven in eclipse Mars - maven

As i am working in MNC company, we need to install maven in my eclipse.but Eclipse MarketPlace & Install New Software is blocked in my Firewall.
And also tried : windows-->Properties-->Advanced System Setting (this also blocked)
Can u please help any one to install maven.
Thanks

You cannot simply install maven in offline mode. It has a lot of dependencies and their dependencies. This will become a very tedious task to do manually.
Consider these options:
If you can connect to internet through other means, like using a
proxy, try configuring proxy to install maven. See Configuring a
proxy.
Better talk with your network IT team, they will sort it out for you by providing some exceptional access on 8080/80 ports

Well you can try it out and set the proxy from your company in eclipse and try again. Maybe you have no network configuration in eclipse so the Firewall blocks everything.

Related

How to enable maven to download repository from central repository (Macbook M1 + IntelliJ)?

I installed JDK and Intellij. I am able to run plain projects but when i import maven project or make a new maven project, I get error. The probelm is maven is not able to download jars from central repository. I am using macbook pro (M1), I tried it on a windows system, it worked fine without any additional settings, I also tried on my friend's Macbook(intel) ,It worked normally but in my system i get error. .jars are not being downloaded in .m2 folder.
Please see the error below.
Click here for error that i am getting
All settings are default, which are working on other mac systems and windows system.
You have the wrong MavenCentral URL.
This is probably an error in the settings.xml.
Changing Network worked for me.
Maven was not able to download jars as it was not able to connect to the repository. Previously when I tried to access the repository using the browser, I was able to do so and I concluded that the error was due to some wrong configuration.
Using terminal I tried to ping the repository and I wasn't able to do so. The actual problem is not known yet, because if there was error in my router configuration then i would not have been able to access it via intellij on windows system, i was ablr to do so. It seems the problem lies between my system settings and how it interacts with the router.
In my case using mobile network as hotspot worked for me.

WSO2 Integration Studio - cannot configure proxy

I am working with WSO2 Integration Studio 6.5.0 and encountered mysterious behavior when trying to configure proxy. On one of the computers everything works fine, permitting to add new mediators to the canvas.
The same version in Integration Studio, configured with the same version of JDK (10.0), used on another computer does not permit to add mediators to the canvas.
I have verified the identity of the Eclipse, Java and system configuration to the possible extent and could not find any differences.
I will need to make the development environment available for a wider group of developers, so being able to port it to other computers is important.
I shall appreciate any hypotheses and recommendations.
Resolved - just add option:
-Dswt.autoScale=100
to IntegratioStudio.ini.

Sonarqube server with or without internet connection

I´m new with sonar and I have started to define my environment and requirements for a first installation.
My question is, really the server need to have a internet connection? or only is used for install plugins and updates?.
Thanks to all.
An uplink to the Internet definitely is not a requirement for SonarQube. If available then it'll be used by the SonarQube Update Center, otherwise you can just install/upgrade plugins manually.

nexus on tomcat stops responding - alternative to this repository manager

Last year I got virtual server for my server needs, configuration is not great, but things work without problem... Few months ago I installed Nexus Repository manager and after that I have daily problem with tomcat... I now restart machine every night, but still it seems that nexus is unavailable most of time.
I am working on OS project and we need to have repository manager (RM) available to host all our stuff and also all libraries our project needs...
I have currently 3 options (how to solve this problem):
Downgrading maven version to 1.6 (or at least some that is stable and doesn't need so much resources)
Using artifactory (their package seems to be the same size as nexus, but I don't know if it will be better - resource wise)
Using archiva (no idea how stable this is and how good it is)
I am thinking about going with option 3, I just don't know if this is right solution. I am sure some of you have your own RM running, what would you recommend? Do you have perhaps any other options? If I use option 1, which version would you recomend...
Thanks in advance,
Andy
By "downgrading Maven version to 1.6" I assume you're referring to the Java version, as if you're using such an old Nexus, then it doesn't shock me that you're having problems. Upgrade your Java to 1.7.x, as well as your Nexus to the latest one.
Archiva and Artifactory are always options, but I don't think the problem is in Nexus itself, but rather your setup (and you haven't mentioned anything about it).
What version of Java, Nexus, Tomcat are you using?
Also, by "OS project", I assume you mean "OSS" (open source) project. If so, you can use Sonatype's OSS hosting. I've described how to set up an OSS project (using Github, BuildHive and Maven Central) here. You can also just skip to using Maven Central directly, checking here. I think this would be a better option for you, if you're not familiar enough with managing your own repository manager.
I would suggest to run Nexus with the native jetty as supplied by the default download bundle instead of on tomcat. This will give you better performance and also better support.
Of course if you can get all libraries into the Central Repository via OSSRH it would be even easier since you could get by without maintaining a repository manager altogether.

compiling with maven and nexus stuck on downloading artifacts

we are using here nexus 1.9.2.4 and maven 2.2.1 and on one pc (and only that one) when we try to compile our code using maven, it get stuck on downloading jars.
for example it'll be stuck on:
Downloading: http://mainserver:8081/nexus/content/groups/public/org/codehaus/mojo/javascript/javascript-maven-plugin/1.0-alpha-1-SNAPSHOT/javascript-maven-plugin-1.0-alpha-1-20090530.211438-7.jar
17/54K
and won't continue at all. tried using maven 3.0.4, but with the same result.
the machine runs windows 7.
any advise will be appreciated
This appears to be a bug related to using Maven on Java 7 and 64bit Windows. I have been experiencing similar problems.
The maven bug report and some discussion can be found here:
http://jira.codehaus.org/browse/MNG-5162
Workaround documented here:
https://cwiki.apache.org/confluence/display/MAVEN/ConnectException
Add -Djava.net.preferIPv4Stack=true to MAVEN_OPTS
Maven really needs to have some kind of support for mirrors and failsafes for the qurkeyness of the internet. Really, not everyone is going to be able to have a peered connection with the Oracle and Apache repositories. Every internet connection is going to drop a packet here and there, the "get a new ISP" response from Maven fans wouldn't help even if it were an option.
I've been staring at a 400k download go nowhere for about 10 minutes. I've noticed it gets stuck on the same files every time I wipe my repo too (bad sector maybe?). Which is a complete pita since it doesn't seem I can specify mirrors for it (short of hacking a hosts file). If you're a Maven project leader, look to Aptitude for ideas on what Maven could be.
EDIT:
I found a solution to my Maven problem here.
https://jira.codehaus.org/browse/MNG-5162
Under Ubuntu 13.10 simply...
sudo gedit /etc/environment
Add
MAVEN_OPTS="-Djava.net.preferIPv4Stack=true"
Save
Close
Reload terminal.

Resources