简体   繁体   English

我如何查看我的文档settings.xml(Maven)

[英]How can i see my document settings.xml (maven)

I'm trying to see my informations (username & url) in settings.xml but there is no document in my folder .m2, I try to display it with ls -la but nothing to do. 我正在尝试在settings.xml中查看我的信息(用户名和url),但是我的文件夹.m2中没有文档,我尝试使用ls -la显示它,但无济于事。 How can we get those informations? 我们如何获得这些信息?

Maven will not automatically create the user settings.xml if it does not exist. 如果不存在,Maven不会自动创建用户settings.xml。 If there are any settings you want to configure with non-default values, you'll have to create it yourself based on the examples in https://maven.apache.org/settings.html . 如果要使用非默认值配置任何设置,则必须根据https://maven.apache.org/settings.html中的示例自行创建

If you want to see the current values which Maven uses see here: Maven: Overview for the values of Maven properties . 如果要查看Maven使用的当前值,请参见此处: Maven:Maven属性值的概述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM