如何只构建evosuite的客户端模块

How to only build the client module of evosuite

我正在尝试 运行 Evosuite 客户端模块的测试,但是当我尝试单独编译模块时,maven 无法找到依赖项 (evosuite-运行time)在同一个存储库中,并且在我编译完整的存储库时正确构建。

查看客户端模块的 POM,依赖版本写为 ${project.version} 我假设找不到它来编译.显示为:

[WARNING] Failed to execute goal on project evosuite-client: Could not resolve dependencies for project org.evosuite:evosuite-client:jar:1.0.7-SNAPSHOT: Could not find artifact org.evosuite:evosuite-runtime:jar:1.0.7-SNAPSHOT

...

[ERROR] Failed to execute goal on project evosuite-client: Could not resolve dependencies for project org.evosuite:evosuite-client:jar:1.0.7-SNAPSHOT: Could not find artifact org.evosuite:evosuite-runtime:jar:1.0.7-SNAPSHOT

将版本更改为 1.0.6 时它工作正常,因为该版本在 online maven repository 上可用,但 1.0.7 版本应该在本地即时编译。

这是客户端的模块pom部分

<dependency>
    <groupId>org.evosuite</groupId>
    <artifactId>evosuite-runtime</artifactId>
    <version>${project.version}</version>
</dependency>

以及主项目pom的模块部分

<modules>
    <module>master</module>
    <module>client</module>
    <module>runtime</module>
    <module>plugins</module>
    <module>standalone_runtime</module>
    <module>shaded</module>
    <module>generated</module>
</modules>

有没有人遇到过类似的问题?

原因是运行time包需要在本地安装才能用于编译客户端。仅来自根模块 运行

mvn install

应该就是这样了。