-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MNG-7118] block HTTP repositories by default
- Loading branch information
Showing
1 changed file
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
907d53a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there an option to disable this feature?
It is currently enabled by default, which can be very frustrating for developers using HTTP repositories.
Such as:
When using the Jetbrains IDEA development tool, the development tool comes bundled with version 3.8.1 of Maven by default.
Its Maven directory is located at:
%userprofile%\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-3\222.3345.16\plugins\maven\lib\maven3\
The user Settings. The XML
%userprofile%\.m2\settings.xml
The maven home Settings. The XML
%maven.home%\conf\settings.xml
Since maven-default-http-blocker is enabled by default and mirror tags are merged, this means that the runtime environment maven-default-http-blocker is enabled by default.
If the user does not actively comment out the
%maven.home%\conf\settings.xml
maven-default-http-blocker configuration, this will cause IDEA to have persistent problems when using the bundled maven.To annotate the configuration in this maven installation directory, this leads to a lot of trouble when using maven bundled with IDEA.
Every time you update the IDEA version, you have to comment out the bound maven global configuration.
Another way is to upgrade nexus support for https.
Can you consider adding a disabled configuration item?
Then you can disable the maven-default-http-blocker feature by mentioning an issue for IDEA?
907d53a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thera are is options
907d53a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not only idea, but also sdk management tools like sdkman ~ unless you don't use http, because mirrors is merged.
907d53a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worth mentioning that it can be disabled on mvn command line by adding -Denforcer.skip=true or make it not failing by -Denforcer.fail=false
907d53a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@slawekjaranowski the problem has nothing to do with Intellij Idea itself, but rather with the fact that some companies are using their own HTTP Nexuses, which are behind VPN, for example. The case from @tonycody was basically describing the situation where the Maven is coming bundled with some tool. It can be Maven Wrapper, for example, who's main idea is to avoid additional configuration on each user's machine and this feature enabled by default is kind of undermining that idea.
907d53a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.