PowerShell and Maven
06/01/2015
2 分钟可看完
本文内容
I'm not normally a big PowerShell user, but the new version in the Windows 10 beta is pretty nice. It has some new tricks like coloring various bits of syntax and stuff like that. Also, it defaults to something that looks like a cmd.exe prompt.
Anyway, I've been using it recently instead of cmd.exe, but I did run accross a peculiar behavior when using Maven to build out some Java projects. Namely that you must enclose any -Dparameter=valuestatements in double quotes or you get errors.
For example:
mvn archetype:generate "-DarchetypeArtifactId=maven-archetype-quickstart" "-DgroupId=com.microsoft.example" "-DartifactId=EventCorrelation" "-DinteractiveMode=false".
Figured this might be useful to some of you.
-enjoy
Larry
本文探讨了在Windows 10 Beta版中PowerShell的新特性,并介绍了使用PowerShell进行Maven项目的构建时需要注意的特殊行为。例如,在使用-D参数时需要将参数值用双引号括起来以避免错误。
1047

被折叠的 条评论
为什么被折叠?



