因此,我将一个 Repo 从团队领导的工作空间复制到我的工作空间中。字面上使用unix CP。
现在每当我跑步时mvn clean install
,它将编译好的 jar 安装到他的工作空间中。
我已经检查了存储库中的 pom.xml,它没有明确定义目标位置。
我也检查了我的printenv
。任何环境变量中都没有提及我的 TL 工作空间。我的 TL 工作空间的位置在哪里?
在 .m2 存储库中有一个 settings.xml,通常包含一个路径,因为您刚刚复制了它,所以您肯定会在那里找到他的路径
- Windows:C:\Users\USERNAME.m2\settings.xml
- Linux:/home/用户名/.m2/settings.xml
文件中有一个“localRepository”标签(检查它)
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>SomePath/.m2/repository</localRepository>
<interactiveMode>true</interactiveMode>
<offline>false</offline>
...
</settings>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)