Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我们有一个多模块项目:
<modules> <module>first</module> <module>second</module> </modules>
哪里second取决于firstthrough dependencies。
second
first
dependencies
如果我运行mvn cleanpackage,maven 或反应器是否会将任何模块放入本地仓库?
mvn clean
package
答案是不。
这是 Maven生命周期阶段
正如你所看到的,package来之前install,所以install不会被执行 - 没有任何东西会去你的本地仓库,除非它已经在那里。
install
完整的错误信息:
error: conversion from 'void' to non-scalar type 'std::vector<std::basic_string<char, std::char_traits<cha