Skip to content

Commit

Permalink
doc: idea maven proxy settings.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysunxiao committed Dec 13, 2024
1 parent c147070 commit 159200c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/idea/idea-set-up.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ See the License for the specific language governing permissions and limitations
- idea代理设置
![Image text](../image/idea/idea-proxy.jpg)

- maven需要设置代理,把当前目录中的settings.xml复制到.m2文件夹下,settings.xml中配置了proxy网络代理
![Image text](../image/idea/maven-settings-config.png)

- maven代理设置(非全局),-DproxySet=true -DproxyHost=127.0.0.1 -DproxyPort=10809
![Image text](../image/idea/idea-proxy-maven.jpg)

Expand Down
16 changes: 16 additions & 0 deletions doc/idea/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 http://maven.apache.org/xsd/settings-1.2.0.xsd">

<proxies>
<proxy>
<id>my-maven-proxy-config</id>
<active>true</active>
<protocol>http</protocol>
<host>127.0.0.1</host>
<port>10808</port>
</proxy>
</proxies>

</settings>
Binary file added doc/image/idea/maven-settings-config.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 159200c

Please sign in to comment.