首页 \ 问答 \ Maven:如何做并行构建?(Maven: how to do parallel builds?)

Maven:如何做并行构建?(Maven: how to do parallel builds?)

当您在多核/多CPU机器上构建maven时,通常可以并行构建不同的子项目。 有没有办法使用maven? 有没有这个插件吗?


When you build with maven on a multicore / multi-CPU machine it would often be possible to build different subprojects in parallel. Is there a way to do this with maven? Is there a plugin for this / whatever?


原文:https://stackoverflow.com/questions/581465
更新时间:2023-05-27 22:05

最满意答案

import shutil
shutil.rmtree("dir-you-want-to-remove")

import shutil
shutil.rmtree("dir-you-want-to-remove")

相关问答

更多
  • import shutil shutil.rmtree("dir-you-want-to-remove") import shutil shutil.rmtree("dir-you-want-to-remove")
  • RMDIR或RD如果您使用经典的命令提示符(cmd.exe): rd /s /q "path" 如果您正在使用PowerShell,可以使用Remove-Item (这是别名为del , erase , rd , ri , rm和rmdir ),并且可以使用-Recurse参数来短-r rd -r "path" RMDIR or RD if you are using the classic Command Prompt (cmd.exe): rd /s /q "path" If you are us ...
  • 听起来像NTFS的一个功能,请参阅Microsoft Suppport : 此文件处于称为挂起删除的状态。 此文件已被删除,但仍有句柄可供使用。 在更新索引之前,NTFS将等待此文件的所有句柄都关闭。 但是,如果尝试访问该文件,NTFS将拒绝该尝试。 由于该文件在索引中列出,但实际上已删除,因此您可以查看该文件,但无法访问该文件。 看看这些解决方案,我认为除了等待和重试之外别无其他。 Sounds like a feature of NTFS, see Microsoft Suppport: This fi ...
  • 不,它们没有区别。 您可以在rm (coreutils)的源代码中验证它。 它们是独立的选项,设置这些标志: case 'f': x.interactive = RMI_NEVER; x.ignore_missing_files = true; prompt_once = false; [...] case 'r': case 'R': x.recursive = true; 并且标志在代码中稍后生效。 这是在Linux / unix中解析参数的常用方法。 No. There is no ...
  • 运行git fsck --lost-found : $ mkdir tt $ cd tt $ git init Initialized empty Git repository in ... $ echo I am foo > foo $ echo I am bar > bar $ git add . $ git rm -rf * rm 'bar' rm 'foo' $ git fsck --lost-found notice: HEAD points to an unborn branch (master ...
  • rm -rf dir/* 删除目录中的文件(不删除目录本身)。 请注意 , 隐藏文件不会被删除。 rm -rf dir/ 尾部斜杠表示dir是一个目录。 如果它是一个文件,它将不会被删除。 在你的情况下,这与rm -rf dir相同,但通常它有所不同(见下文) rm -rf dir 在您的情况下,与上面的相同。 通常,诸如rm工具在路径名解析时通常遵循IEEE / OpenGroup标准 ,这意味着dir/等同于dir/. 。 其中一个含义是,如果dir是dir的符号链接rm -rf dir/将删除目录的内 ...
  • 你设法输入了一个unicode“EN DASH”(U + 2013),它被rm识别为普通连字符“ - ”(U + 002D),所以rm认为它是文件名的开头而不是你的参数。 它们看起来很相似,但它们对于一个程序来说并不相同。 要修复它,只需将其擦除并再次输入,确保使用正常的连字符/减号键。 You managed to type a unicode "EN DASH"(U+2013) which is not recognised by rm as a normal hyphen "-"(U+002D) so ...
  • 查看手册页 。 rm删除文件,-rf删除选项: -r 递归删除目录及其内容, -f忽略不存在的文件,永不提示。 Check out the man page. rm removes files and -rf are to options: -r remove directories and their contents recursively, -f ignore nonexistent files, never prompt.
  • 此命令中没有星号要求。 如果要将目录与文件一起删除,也请删除斜杠。 保留斜杠将删除文件,但保留目录。 另请查看此页面上的评论: http : //php.net/manual/en/function.unlink.php There is no need in asterisk in this command. If you want to remove directory together with files, remove the slash as well. Leaving the slash wi ...
  • cache:clear先前创建缓存项目的抹布,并且它还执行缓存预热。 在此之后,由于缓存已经预先填充,应用程序应该加载得非常快。 另一方面, rm -rf只做一部分工作。 当您尝试在此之后第一次加载您的应用程序时,您应该注意到性能影响。 我还想指出另一件事:权限。 例如,如果以root身份登录,并且未通过setfacl (或任何其他方法)设置访问权限,则cache:clear将最有可能创建由root拥有的缓存项目。 这可能是一个问题。 希望这个对你有帮助... cache:clear wipes previ ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)