I have this Linux script inside our server . This script is used for building the Application .
我在我们的服务器中有这个Linux脚本。此脚本用于构建应用程序。
cvs checkout MacMoira
cd MacMoira
mvn clean
mvn install -P MacMoira
exit 0
I did not understand this line "mvn install -P MacMoira" . Could anybody please tell me what is the use of using -P with mvn install .
我不理解这一行“mvn安装-P MacMoira”。谁能告诉我用-P安装mvn有什么用吗?
Thank you very much .
非常感谢。
2 个解决方案
#1
3
-P
specifies a profile in Maven with specific settings (in this case the profile MacMoira
)
-P在Maven中指定具有特定设置的概要文件(在本例中为profile MacMoira)
看:介绍资料
#2
0
when you run mvn --help
it will return this information:
当您运行mvn -help时,它将返回以下信息:
[...]
-P,--activate-profiles <arg> Comma-delimited list of profiles
to activate
[...]
within the maven's pom.xml there are <profiles>
specified, these you can activate using the -P
flag
在maven pom的。xml中有指定的
#1
3
-P
specifies a profile in Maven with specific settings (in this case the profile MacMoira
)
-P在Maven中指定具有特定设置的概要文件(在本例中为profile MacMoira)
看:介绍资料
#2
0
when you run mvn --help
it will return this information:
当您运行mvn -help时,它将返回以下信息:
[...]
-P,--activate-profiles <arg> Comma-delimited list of profiles
to activate
[...]
within the maven's pom.xml there are <profiles>
specified, these you can activate using the -P
flag
在maven pom的。xml中有指定的