Darth Bolek

+ Follow
since Feb 16, 2015
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Darth Bolek

In my company access to Maven Central is blocked. There is internal Nexus repository accessible via https (it is not Maven Central mirror)

Half of the issue with https I resolved using VM arguments (Window->Preferences->Java->Installed JRE->Edit->default VM arguments)
-Djavax.net.ssl.trustStore=h:\tools\dev\maven_ca_store\trust.jks -Djavax.net.ssl.trustStorePassword=passwd123
But this is working only for/during deployment to Nexus.

Issue is that M2E GUI seems to be unaware of https repository and it is not resolving dependencies.
Configuration attempts (Window->Preferences->Maven->Archetypes->Add Remote Catalog->Verify) with https url fail with "Remote catalog is empty". I can browse it in browser, it is not empty.
When I try url with http (another temp Nexus) it is working OK.
I tried also defining mirror in user settings.xml file with no luck.
I tried adding VM argument: -DarchetypeCatalog=https://<server>/nexus/content/groups/public with no luck.

I tried all of above with embedded and external maven (3.2.5) installation with the same result - no matter what I do GUI does not want to read dependencies from https repository.

When using maven from command line with argument:
it is working OK.

I am using Win-32 Eclipse 4.4.0 (with included M2E 1.5.0), JRE 1.7_60, Nexus 2.9.1

Is it possible to configure M2E with only one repository (not Maven Central) accessible only via https?
9 years ago