settings-offline.xml 950 B

1234567891011121314151617
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. 观澜 · Java 后端离线构建设置(可移植版)。
  4. 背景:目标机/本机可能没有外网,Maven Central 不可达;构件来自"用户本地仓"。
  5. 用法:mvn -s app_backEnd/backend-java/settings-offline.xml -o compile
  6. ★ 仓里只允许出现 ${user.home} 这类**可移植**写法 —— 不许写死某台机器的盘符路径。
  7. 若构件放在别处(例如内网 Nexus 或 D:\repo),用环境变量覆盖:
  8. set GUANLAN_MVN_SETTINGS=D:\somewhere\settings.xml 然后跑 build_offline.py
  9. -->
  10. <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  11. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  12. xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
  13. <localRepository>${user.home}/.m2/repository</localRepository>
  14. <offline>true</offline>
  15. </settings>